Jump to content

New login interface how to make channel switcher working?


Recommended Posts

Hi i found here new login interface which i really like - interface its working when i put it in my client. But channel switcher is not working. At the old interface it works. It only need to change intrologin.py, so i guess there is the problem.

This is my old intrologin.py -- https://pastebin.com/jgti94rY

This is new intrologin.py https://pastebin.com/PFqNtwT9

How can i make it work? When i paste to the new intrologin the 

Spoiler

def __LoadChannelInfo(self):

try:

file=old_open("channel.inf")

lines=file.readlines()

 

if len(lines)>0:

tokens=lines[0].split()

 

selServerID=int(tokens[0])

if app.ENABLE_CHANNEL_SWITCHER:

if(int(tokens[1]) <= constInfo.CHANNELS):

selChannelID=int(tokens[1])

else:

selChannelID=1

else:

selChannelID=int(tokens[1])

 

if len(tokens) == 3:

regionID = int(tokens[2])

 

return regionID, selServerID, selChannelID

 

except:

print "LoginWindow.__LoadChannelInfo - OpenError"

return -1, -1, -1

 

to class LoginWindow(ui.ScriptWindow): its not working. When i add new class like the old one class ConnectingDialog(ui.ScriptWindow): its not working too. Can anybody help me please? 🙂

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.