forked from metin-server/m2dev-client
@@ -43,7 +43,6 @@ TWO_HANDED_WEAPON_ATT_SPEED_DECREASE_VALUE = 0
|
|||||||
HAIR_COLOR_ENABLE = 1
|
HAIR_COLOR_ENABLE = 1
|
||||||
ARMOR_SPECULAR_ENABLE = 1
|
ARMOR_SPECULAR_ENABLE = 1
|
||||||
WEAPON_SPECULAR_ENABLE = 1
|
WEAPON_SPECULAR_ENABLE = 1
|
||||||
SEQUENCE_PACKET_ENABLE = 1
|
|
||||||
KEEP_ACCOUNT_CONNETION_ENABLE = 1
|
KEEP_ACCOUNT_CONNETION_ENABLE = 1
|
||||||
MINIMAP_POSITIONINFO_ENABLE = 0
|
MINIMAP_POSITIONINFO_ENABLE = 0
|
||||||
CONVERT_EMPIRE_LANGUAGE_ENABLE = 0
|
CONVERT_EMPIRE_LANGUAGE_ENABLE = 0
|
||||||
|
|||||||
@@ -565,9 +565,6 @@ class LoginWindow(ui.ScriptWindow):
|
|||||||
|
|
||||||
def Connect(self, id, pwd):
|
def Connect(self, id, pwd):
|
||||||
|
|
||||||
if constInfo.SEQUENCE_PACKET_ENABLE:
|
|
||||||
net.SetPacketSequenceMode()
|
|
||||||
|
|
||||||
if IsLoginDelay():
|
if IsLoginDelay():
|
||||||
loginDelay = GetLoginDelay()
|
loginDelay = GetLoginDelay()
|
||||||
self.connectingDialog = ConnectingDialog()
|
self.connectingDialog = ConnectingDialog()
|
||||||
|
|||||||
@@ -85,7 +85,6 @@ class MainStream(object):
|
|||||||
net.SetHandler(self)
|
net.SetHandler(self)
|
||||||
net.SetTCPRecvBufferSize(128*1024)
|
net.SetTCPRecvBufferSize(128*1024)
|
||||||
net.SetTCPSendBufferSize(4096)
|
net.SetTCPSendBufferSize(4096)
|
||||||
net.SetUDPRecvBufferSize(4096)
|
|
||||||
|
|
||||||
self.id=""
|
self.id=""
|
||||||
self.pwd=""
|
self.pwd=""
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import localeInfo
|
|||||||
import constInfo
|
import constInfo
|
||||||
import chrmgr
|
import chrmgr
|
||||||
import player
|
import player
|
||||||
import uiPrivateShopBuilder # ±èÁØÈ£
|
import uiPrivateShopBuilder # <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||||
import interfaceModule # ±èÁØÈ£
|
import interfaceModule # <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||||
|
|
||||||
blockMode = 0
|
blockMode = 0
|
||||||
viewChatMode = 0
|
viewChatMode = 0
|
||||||
@@ -85,6 +85,7 @@ class OptionDialog(ui.ScriptWindow):
|
|||||||
import exception
|
import exception
|
||||||
exception.Abort("OptionDialog.__Load_BindObject")
|
exception.Abort("OptionDialog.__Load_BindObject")
|
||||||
|
|
||||||
|
def __Load(self):
|
||||||
self.__Load_LoadScript("uiscript/gameoptiondialog.py")
|
self.__Load_LoadScript("uiscript/gameoptiondialog.py")
|
||||||
|
|
||||||
self.__Load_BindObject()
|
self.__Load_BindObject()
|
||||||
@@ -312,16 +313,6 @@ class OptionDialog(ui.ScriptWindow):
|
|||||||
def OnChangePKMode(self):
|
def OnChangePKMode(self):
|
||||||
self.__RefreshPVPButtonList()
|
self.__RefreshPVPButtonList()
|
||||||
|
|
||||||
def OnCloseInputDialog(self):
|
|
||||||
self.inputDialog.Close()
|
|
||||||
self.inputDialog = None
|
|
||||||
return True
|
|
||||||
|
|
||||||
def OnCloseQuestionDialog(self):
|
|
||||||
self.questionDialog.Close()
|
|
||||||
self.questionDialog = None
|
|
||||||
return True
|
|
||||||
|
|
||||||
def OnPressEscapeKey(self):
|
def OnPressEscapeKey(self):
|
||||||
self.Close()
|
self.Close()
|
||||||
return True
|
return True
|
||||||
|
|||||||
@@ -7,8 +7,6 @@ import messenger
|
|||||||
import localeInfo
|
import localeInfo
|
||||||
import constInfo
|
import constInfo
|
||||||
import uiToolTip
|
import uiToolTip
|
||||||
import uiGameOption
|
|
||||||
|
|
||||||
import uiCommon
|
import uiCommon
|
||||||
from _weakref import proxy
|
from _weakref import proxy
|
||||||
|
|
||||||
@@ -381,11 +379,6 @@ class MessengerWindow(ui.ScriptWindow):
|
|||||||
self.addFriendButton.SetEvent(ui.__mem_func__(self.OnPressAddFriendButton))
|
self.addFriendButton.SetEvent(ui.__mem_func__(self.OnPressAddFriendButton))
|
||||||
self.guildButton.SetEvent(ui.__mem_func__(self.OnPressGuildButton))
|
self.guildButton.SetEvent(ui.__mem_func__(self.OnPressGuildButton))
|
||||||
|
|
||||||
self.addFriendButton.SetPosition(-60, 30)
|
|
||||||
self.whisperButton.SetPosition(-20, 30)
|
|
||||||
self.removeButton.SetPosition(20, 30)
|
|
||||||
self.guildButton.SetPosition(60, 30)
|
|
||||||
|
|
||||||
self.whisperButton.Disable()
|
self.whisperButton.Disable()
|
||||||
self.removeButton.Disable()
|
self.removeButton.Disable()
|
||||||
|
|
||||||
@@ -506,11 +499,6 @@ class MessengerWindow(ui.ScriptWindow):
|
|||||||
def SetGuildButtonEvent(self, event):
|
def SetGuildButtonEvent(self, event):
|
||||||
self.guildButtonEvent=event
|
self.guildButtonEvent=event
|
||||||
|
|
||||||
def OnCloseInputDialog(self):
|
|
||||||
self.inputDialog.Close()
|
|
||||||
self.inputDialog = None
|
|
||||||
return True
|
|
||||||
|
|
||||||
def OnPressGuildButton(self):
|
def OnPressGuildButton(self):
|
||||||
self.guildButtonEvent()
|
self.guildButtonEvent()
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ class OptionDialog(ui.ScriptWindow):
|
|||||||
try:
|
try:
|
||||||
pyScriptLoader = ui.PythonScriptLoader()
|
pyScriptLoader = ui.PythonScriptLoader()
|
||||||
pyScriptLoader.LoadScriptFile(self, "uiscript/optiondialog.py")
|
pyScriptLoader.LoadScriptFile(self, "uiscript/optiondialog.py")
|
||||||
|
|
||||||
except:
|
except:
|
||||||
import exception
|
import exception
|
||||||
exception.Abort("OptionDialog.__LoadDialog.LoadObject")
|
exception.Abort("OptionDialog.__LoadDialog.LoadObject")
|
||||||
@@ -71,7 +70,6 @@ class OptionDialog(ui.ScriptWindow):
|
|||||||
self.blockButtonList.append(GetObject("block_guild_button"))
|
self.blockButtonList.append(GetObject("block_guild_button"))
|
||||||
self.blockButtonList.append(GetObject("block_whisper_button"))
|
self.blockButtonList.append(GetObject("block_whisper_button"))
|
||||||
self.blockButtonList.append(GetObject("block_friend_button"))
|
self.blockButtonList.append(GetObject("block_friend_button"))
|
||||||
|
|
||||||
except:
|
except:
|
||||||
import exception
|
import exception
|
||||||
exception.Abort("OptionDialog.__LoadDialog.BindObject")
|
exception.Abort("OptionDialog.__LoadDialog.BindObject")
|
||||||
@@ -275,16 +273,6 @@ class OptionDialog(ui.ScriptWindow):
|
|||||||
snd.SetSoundVolume(pos)
|
snd.SetSoundVolume(pos)
|
||||||
systemSetting.SetSoundVolume(pos)
|
systemSetting.SetSoundVolume(pos)
|
||||||
|
|
||||||
def OnCloseInputDialog(self):
|
|
||||||
self.inputDialog.Close()
|
|
||||||
self.inputDialog = None
|
|
||||||
return True
|
|
||||||
|
|
||||||
def OnCloseQuestionDialog(self):
|
|
||||||
self.questionDialog.Close()
|
|
||||||
self.questionDialog = None
|
|
||||||
return True
|
|
||||||
|
|
||||||
def OnPressEscapeKey(self):
|
def OnPressEscapeKey(self):
|
||||||
self.Close()
|
self.Close()
|
||||||
return True
|
return True
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import uiScriptLocale
|
import uiScriptLocale
|
||||||
|
|
||||||
BUTTON_START_X_POS = -60
|
BUTTON_START_X_POS = -60
|
||||||
BUTTON_X_STEP = 30
|
BUTTON_X_STEP = 40
|
||||||
|
|
||||||
window = {
|
window = {
|
||||||
"name" : "MessengerWindow",
|
"name" : "MessengerWindow",
|
||||||
@@ -74,7 +74,6 @@ window = {
|
|||||||
"down_image" : "d:/ymir work/ui/game/windows/messenger_whisper_03.sub",
|
"down_image" : "d:/ymir work/ui/game/windows/messenger_whisper_03.sub",
|
||||||
"disable_image" : "d:/ymir work/ui/game/windows/messenger_whisper_04.sub",
|
"disable_image" : "d:/ymir work/ui/game/windows/messenger_whisper_04.sub",
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"name" : "RemoveButton",
|
"name" : "RemoveButton",
|
||||||
"type" : "button",
|
"type" : "button",
|
||||||
|
|||||||
Reference in New Issue
Block a user