- Mesaj
- 185
- Çözümler
- 6
- Beğeni
- 115
- Puan
- 759
- Ticaret Puanı
- 0
İyi günler hocam gece gündüz sistemi ekledim oyun seçeneklerine fakat oyuna girdikten sonra tıkladığım gibi oyun seçeneklerine oyundan atıyor sistem seçeneklerinede eklemeyi denedim yine aynı şekil oyundan atıyor çözümü var mıdır ne yapmalıyım
Python:
import ui
import snd
import systemSetting
import net
import chat
import app
import localeInfo
import constInfo
import chrmgr
import player
import uiPrivateShopBuilder # ±èÁØÈ£
import interfaceModule # ±èÁØÈ£
import background
if app.ENABLE_MELEY_LAIR_DUNGEON:
import background
blockMode = 0
viewChatMode = 0
MOBILE = False
if localeInfo.IsYMIR():
MOBILE = True
class OptionDialog(ui.ScriptWindow):
def __init__(self):
ui.ScriptWindow.__init__(self)
self.__Initialize()
self.__Load()
self.RefreshViewChat()
self.RefreshAlwaysShowName()
self.RefreshShowDamage()
self.RefreshShowSalesText()
self.RefreshShowNightText()
self.RefreshPickitem()
def __del__(self):
ui.ScriptWindow.__del__(self)
print " -------------------------------------- DELETE GAME OPTION DIALOG"
def __Initialize(self):
self.titleBar = 0
self.nameColorModeButtonList = []
self.viewTargetBoardButtonList = []
self.pvpModeButtonDict = {}
self.blockButtonList = []
self.viewChatButtonList = []
self.alwaysShowNameButtonList = []
self.showDamageButtonList = []
self.showsalesTextButtonList = []
self.showNightButtonList = []
self.autopickitem = []
def Destroy(self):
self.ClearDictionary()
self.__Initialize()
print " -------------------------------------- DESTROY GAME OPTION DIALOG"
def __Load_LoadScript(self, fileName):
try:
pyScriptLoader = ui.PythonScriptLoader()
pyScriptLoader.LoadScriptFile(self, fileName)
except:
import exception
exception.Abort("OptionDialog.__Load_LoadScript")
def __Load_BindObject(self):
try:
GetObject = self.GetChild
self.titleBar = GetObject("titlebar")
self.nameColorModeButtonList.append(GetObject("name_color_normal"))
self.nameColorModeButtonList.append(GetObject("name_color_empire"))
self.viewTargetBoardButtonList.append(GetObject("target_board_no_view"))
self.viewTargetBoardButtonList.append(GetObject("target_board_view"))
self.pvpModeButtonDict[player.PK_MODE_PEACE] = GetObject("pvp_peace")
self.pvpModeButtonDict[player.PK_MODE_REVENGE] = GetObject("pvp_revenge")
self.pvpModeButtonDict[player.PK_MODE_GUILD] = GetObject("pvp_guild")
self.pvpModeButtonDict[player.PK_MODE_FREE] = GetObject("pvp_free")
self.blockButtonList.append(GetObject("block_exchange_button"))
self.blockButtonList.append(GetObject("block_party_button"))
self.blockButtonList.append(GetObject("block_guild_button"))
self.blockButtonList.append(GetObject("block_whisper_button"))
self.blockButtonList.append(GetObject("block_friend_button"))
self.blockButtonList.append(GetObject("block_party_request_button"))
self.viewChatButtonList.append(GetObject("view_chat_on_button"))
self.viewChatButtonList.append(GetObject("view_chat_off_button"))
self.alwaysShowNameButtonList.append(GetObject("always_show_name_on_button"))
self.alwaysShowNameButtonList.append(GetObject("always_show_name_off_button"))
self.showDamageButtonList.append(GetObject("show_damage_on_button"))
self.showDamageButtonList.append(GetObject("show_damage_off_button"))
self.showsalesTextButtonList.append(GetObject("salestext_on_button"))
self.showsalesTextButtonList.append(GetObject("salestext_off_button"))
self.showNightButtonList.append(GetObject("showNight_on_button"))
self.showNightButtonList.append(GetObject("showNight_off_button"))
self.autopickitem.append(GetObject("auto_pick_item_on"))
self.autopickitem.append(GetObject("auto_pick_item_off"))
global MOBILE
if MOBILE:
self.inputMobileButton = GetObject("input_mobile_button")
self.deleteMobileButton = GetObject("delete_mobile_button")
except:
import exception
exception.Abort("OptionDialog.__Load_BindObject")
def __Load(self):
global MOBILE
if MOBILE:
self.__Load_LoadScript("uiscript/gameoptiondialog_formobile.py")
else:
self.__Load_LoadScript("uiscript/gameoptiondialog.py")
self.__Load_BindObject()
self.SetCenterPosition()
self.titleBar.SetCloseEvent(ui.__mem_func__(self.Close))
self.nameColorModeButtonList[0].SAFE_SetEvent(self.__OnClickNameColorModeNormalButton)
self.nameColorModeButtonList[1].SAFE_SetEvent(self.__OnClickNameColorModeEmpireButton)
self.viewTargetBoardButtonList[0].SAFE_SetEvent(self.__OnClickTargetBoardViewButton)
self.viewTargetBoardButtonList[1].SAFE_SetEvent(self.__OnClickTargetBoardNoViewButton)
self.pvpModeButtonDict[player.PK_MODE_PEACE].SAFE_SetEvent(self.__OnClickPvPModePeaceButton)
self.pvpModeButtonDict[player.PK_MODE_REVENGE].SAFE_SetEvent(self.__OnClickPvPModeRevengeButton)
self.pvpModeButtonDict[player.PK_MODE_GUILD].SAFE_SetEvent(self.__OnClickPvPModeGuildButton)
self.pvpModeButtonDict[player.PK_MODE_FREE].SAFE_SetEvent(self.__OnClickPvPModeFreeButton)
self.blockButtonList[0].SetToggleUpEvent(self.__OnClickBlockExchangeButton)
self.blockButtonList[1].SetToggleUpEvent(self.__OnClickBlockPartyButton)
self.blockButtonList[2].SetToggleUpEvent(self.__OnClickBlockGuildButton)
self.blockButtonList[3].SetToggleUpEvent(self.__OnClickBlockWhisperButton)
self.blockButtonList[4].SetToggleUpEvent(self.__OnClickBlockFriendButton)
self.blockButtonList[5].SetToggleUpEvent(self.__OnClickBlockPartyRequest)
self.blockButtonList[0].SetToggleDownEvent(self.__OnClickBlockExchangeButton)
self.blockButtonList[1].SetToggleDownEvent(self.__OnClickBlockPartyButton)
self.blockButtonList[2].SetToggleDownEvent(self.__OnClickBlockGuildButton)
self.blockButtonList[3].SetToggleDownEvent(self.__OnClickBlockWhisperButton)
self.blockButtonList[4].SetToggleDownEvent(self.__OnClickBlockFriendButton)
self.blockButtonList[5].SetToggleDownEvent(self.__OnClickBlockPartyRequest)
self.viewChatButtonList[0].SAFE_SetEvent(self.__OnClickViewChatOnButton)
self.viewChatButtonList[1].SAFE_SetEvent(self.__OnClickViewChatOffButton)
self.alwaysShowNameButtonList[0].SAFE_SetEvent(self.__OnClickAlwaysShowNameOnButton)
self.alwaysShowNameButtonList[1].SAFE_SetEvent(self.__OnClickAlwaysShowNameOffButton)
self.showDamageButtonList[0].SAFE_SetEvent(self.__OnClickShowDamageOnButton)
self.showDamageButtonList[1].SAFE_SetEvent(self.__OnClickShowDamageOffButton)
self.showsalesTextButtonList[0].SAFE_SetEvent(self.__OnClickSalesTextOnButton)
self.showsalesTextButtonList[1].SAFE_SetEvent(self.__OnClickSalesTextOffButton)
self.showNightButtonList[0].SAFE_SetEvent(self.__OnClickShowNightOnButton)
self.showNightButtonList[1].SAFE_SetEvent(self.__OnClickShowNightOffButton)
self.autopickitem[0].SAFE_SetEvent(self.__OnClickPickitemOnButton)
self.autopickitem[1].SAFE_SetEvent(self.__OnClickPickitemOffButton)
self.__ClickRadioButton(self.nameColorModeButtonList, constInfo.GET_CHRNAME_COLOR_INDEX())
self.__ClickRadioButton(self.viewTargetBoardButtonList, constInfo.GET_VIEW_OTHER_EMPIRE_PLAYER_TARGET_BOARD())
self.__SetPeacePKMode()
#global MOBILE
if MOBILE:
self.inputMobileButton.SetEvent(ui.__mem_func__(self.__OnChangeMobilePhoneNumber))
self.deleteMobileButton.SetEvent(ui.__mem_func__(self.__OnDeleteMobilePhoneNumber))
def __ClickRadioButton(self, buttonList, buttonIndex):
try:
selButton=buttonList[buttonIndex]
except IndexError:
return
for eachButton in buttonList:
eachButton.SetUp()
selButton.Down()
def __SetNameColorMode(self, index):
constInfo.SET_CHRNAME_COLOR_INDEX(index)
self.__ClickRadioButton(self.nameColorModeButtonList, index)
def __SetTargetBoardViewMode(self, flag):
constInfo.SET_VIEW_OTHER_EMPIRE_PLAYER_TARGET_BOARD(flag)
self.__ClickRadioButton(self.viewTargetBoardButtonList, flag)
def __OnClickNameColorModeNormalButton(self):
self.__SetNameColorMode(0)
def __OnClickNameColorModeEmpireButton(self):
self.__SetNameColorMode(1)
def __OnClickTargetBoardViewButton(self):
self.__SetTargetBoardViewMode(0)
def __OnClickTargetBoardNoViewButton(self):
self.__SetTargetBoardViewMode(1)
def __OnClickCameraModeShortButton(self):
self.__SetCameraMode(0)
def __OnClickCameraModeLongButton(self):
self.__SetCameraMode(1)
def __OnClickFogModeLevel0Button(self):
self.__SetFogLevel(0)
def __OnClickFogModeLevel1Button(self):
self.__SetFogLevel(1)
def __OnClickFogModeLevel2Button(self):
self.__SetFogLevel(2)
def __OnClickBlockExchangeButton(self):
self.RefreshBlock()
global blockMode
net.SendChatPacket("/setblockmode " + str(blockMode ^ player.BLOCK_EXCHANGE))
def __OnClickBlockPartyButton(self):
self.RefreshBlock()
global blockMode
net.SendChatPacket("/setblockmode " + str(blockMode ^ player.BLOCK_PARTY))
def __OnClickBlockGuildButton(self):
self.RefreshBlock()
global blockMode
net.SendChatPacket("/setblockmode " + str(blockMode ^ player.BLOCK_GUILD))
def __OnClickBlockWhisperButton(self):
self.RefreshBlock()
global blockMode
net.SendChatPacket("/setblockmode " + str(blockMode ^ player.BLOCK_WHISPER))
def __OnClickBlockFriendButton(self):
self.RefreshBlock()
global blockMode
net.SendChatPacket("/setblockmode " + str(blockMode ^ player.BLOCK_FRIEND))
def __OnClickBlockPartyRequest(self):
self.RefreshBlock()
global blockMode
net.SendChatPacket("/setblockmode " + str(blockMode ^ player.BLOCK_PARTY_REQUEST))
def __OnClickViewChatOnButton(self):
global viewChatMode
viewChatMode = 1
systemSetting.SetViewChatFlag(viewChatMode)
self.RefreshViewChat()
def __OnClickViewChatOffButton(self):
global viewChatMode
viewChatMode = 0
systemSetting.SetViewChatFlag(viewChatMode)
self.RefreshViewChat()
def __OnClickAlwaysShowNameOnButton(self):
systemSetting.SetAlwaysShowNameFlag(True)
self.RefreshAlwaysShowName()
def __OnClickAlwaysShowNameOffButton(self):
systemSetting.SetAlwaysShowNameFlag(False)
self.RefreshAlwaysShowName()
def __OnClickShowDamageOnButton(self):
systemSetting.SetShowDamageFlag(True)
self.RefreshShowDamage()
def __OnClickShowDamageOffButton(self):
systemSetting.SetShowDamageFlag(False)
self.RefreshShowDamage()
def __OnClickSalesTextOnButton(self):
systemSetting.SetShowSalesTextFlag(True)
self.RefreshShowSalesText()
uiPrivateShopBuilder.UpdateADBoard()
def __OnClickSalesTextOffButton(self):
systemSetting.SetShowSalesTextFlag(False)
self.RefreshShowSalesText()
def __OnClickShowNightOnButton(self):
background.RegisterEnvironmentData(1, constInfo.ENVIRONMENT_NIGHT)
background.SetEnvironmentData(1)
constInfo.Night = 1
self.RefreshShowNightText()
def __OnClickShowNightOffButton(self):
background.SetEnvironmentData(0)
constInfo.Night = 0
self.RefreshShowNightText()
def __OnClickPickitemOnButton(self):
constInfo.auto_pick_item = 0
chat.AppendChat(chat.CHAT_TYPE_INFO, "<Sistem> Otomatik yang ve item toplama sistemi başlatıldı.")
self.RefreshPickitem()
def __OnClickPickitemOffButton(self):
constInfo.auto_pick_item = 1
chat.AppendChat(chat.CHAT_TYPE_INFO, "<Sistem> Otomatik yang ve item toplama sistemi kapatıldı.")
self.RefreshPickitem()
def RefreshPickitem(self):
if constInfo.auto_pick_item == 0:
self.autopickitem[0].Down()
self.autopickitem[1].SetUp()
else:
self.autopickitem[0].SetUp()
self.autopickitem[1].Down()
def __CheckPvPProtectedLevelPlayer(self):
if player.GetStatus(player.LEVEL)<constInfo.PVPMODE_PROTECTED_LEVEL:
self.__SetPeacePKMode()
chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.OPTION_PVPMODE_PROTECT % (constInfo.PVPMODE_PROTECTED_LEVEL))
return 1
return 0
def __SetPKMode(self, mode):
for btn in self.pvpModeButtonDict.values():
btn.SetUp()
if self.pvpModeButtonDict.has_key(mode):
self.pvpModeButtonDict[mode].Down()
def __SetPeacePKMode(self):
self.__SetPKMode(player.PK_MODE_PEACE)
def __RefreshPVPButtonList(self):
self.__SetPKMode(player.GetPKMode())
if app.ENABLE_MELEY_LAIR_DUNGEON:
def setMeleyMap(self):
mapName = background.GetCurrentMapName()
if mapName == "metin2_map_n_flame_dragon":
if player.GetGuildID() != 0 and player.GetPKMode() != player.PK_MODE_GUILD:
for btn in self.pvpModeButtonDict.values():
btn.SetUp()
net.SendChatPacket("/pkmode 4", chat.CHAT_TYPE_TALKING)
self.pvpModeButtonDict[player.PK_MODE_GUILD].Down()
def isMeleyMap(self, button):
mapName = background.GetCurrentMapName()
if mapName == "metin2_map_n_flame_dragon":
if self.pvpModeButtonDict[button]:
self.pvpModeButtonDict[button].SetUp()
chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.CANNOT_CHANGE_FIGHT_MODE)
return 1
return 0
def __OnClickPvPModePeaceButton(self):
if self.__CheckPvPProtectedLevelPlayer():
return
self.__RefreshPVPButtonList()
if constInfo.PVPMODE_ENABLE:
net.SendChatPacket("/pkmode 0", chat.CHAT_TYPE_TALKING)
else:
chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.OPTION_PVPMODE_NOT_SUPPORT)
if app.ENABLE_MELEY_LAIR_DUNGEON:
if self.isMeleyMap(player.PK_MODE_PEACE):
return
def __OnClickPvPModeRevengeButton(self):
if self.__CheckPvPProtectedLevelPlayer():
return
self.__RefreshPVPButtonList()
if constInfo.PVPMODE_ENABLE:
net.SendChatPacket("/pkmode 1", chat.CHAT_TYPE_TALKING)
else:
chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.OPTION_PVPMODE_NOT_SUPPORT)
if app.ENABLE_MELEY_LAIR_DUNGEON:
if self.isMeleyMap(player.PK_MODE_REVENGE):
return
def __OnClickPvPModeFreeButton(self):
if self.__CheckPvPProtectedLevelPlayer():
return
self.__RefreshPVPButtonList()
if constInfo.PVPMODE_ENABLE:
net.SendChatPacket("/pkmode 2", chat.CHAT_TYPE_TALKING)
else:
chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.OPTION_PVPMODE_NOT_SUPPORT)
if app.ENABLE_MELEY_LAIR_DUNGEON:
if self.isMeleyMap(player.PK_MODE_FREE):
return
def __OnClickPvPModeGuildButton(self):
if self.__CheckPvPProtectedLevelPlayer():
return
self.__RefreshPVPButtonList()
if 0 == player.GetGuildID():
chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.OPTION_PVPMODE_CANNOT_SET_GUILD_MODE)
return
if constInfo.PVPMODE_ENABLE:
net.SendChatPacket("/pkmode 4", chat.CHAT_TYPE_TALKING)
else:
chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.OPTION_PVPMODE_NOT_SUPPORT)
if app.ENABLE_MELEY_LAIR_DUNGEON:
if self.isMeleyMap(player.PK_MODE_GUILD):
return
def OnChangePKMode(self):
self.__RefreshPVPButtonList()
def __OnChangeMobilePhoneNumber(self):
global MOBILE
if not MOBILE:
return
import uiCommon
inputDialog = uiCommon.InputDialog()
inputDialog.SetTitle(localeInfo.MESSENGER_INPUT_MOBILE_PHONE_NUMBER_TITLE)
inputDialog.SetMaxLength(13)
inputDialog.SetAcceptEvent(ui.__mem_func__(self.OnInputMobilePhoneNumber))
inputDialog.SetCancelEvent(ui.__mem_func__(self.OnCloseInputDialog))
inputDialog.Open()
self.inputDialog = inputDialog
def __OnDeleteMobilePhoneNumber(self):
global MOBILE
if not MOBILE:
return
import uiCommon
questionDialog = uiCommon.QuestionDialog()
questionDialog.SetText(localeInfo.MESSENGER_DO_YOU_DELETE_PHONE_NUMBER)
questionDialog.SetAcceptEvent(ui.__mem_func__(self.OnDeleteMobile))
questionDialog.SetCancelEvent(ui.__mem_func__(self.OnCloseQuestionDialog))
questionDialog.Open()
self.questionDialog = questionDialog
def OnInputMobilePhoneNumber(self):
global MOBILE
if not MOBILE:
return
text = self.inputDialog.GetText()
if not text:
return
text.replace('-', '')
net.SendChatPacket("/mobile " + text)
self.OnCloseInputDialog()
return True
def OnInputMobileAuthorityCode(self):
global MOBILE
if not MOBILE:
return
text = self.inputDialog.GetText()
net.SendChatPacket("/mobile_auth " + text)
self.OnCloseInputDialog()
return True
def OnDeleteMobile(self):
global MOBILE
if not MOBILE:
return
net.SendChatPacket("/mobile")
self.OnCloseQuestionDialog()
return True
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):
self.Close()
return True
def RefreshMobile(self):
global MOBILE
if not MOBILE:
return
if player.HasMobilePhoneNumber():
self.inputMobileButton.Hide()
self.deleteMobileButton.Show()
else:
self.inputMobileButton.Show()
self.deleteMobileButton.Hide()
def OnMobileAuthority(self):
global MOBILE
if not MOBILE:
return
import uiCommon
inputDialog = uiCommon.InputDialogWithDescription()
inputDialog.SetTitle(localeInfo.MESSENGER_INPUT_MOBILE_AUTHORITY_TITLE)
inputDialog.SetDescription(localeInfo.MESSENGER_INPUT_MOBILE_AUTHORITY_DESCRIPTION)
inputDialog.SetAcceptEvent(ui.__mem_func__(self.OnInputMobileAuthorityCode))
inputDialog.SetCancelEvent(ui.__mem_func__(self.OnCloseInputDialog))
inputDialog.SetMaxLength(4)
inputDialog.SetBoardWidth(310)
inputDialog.Open()
self.inputDialog = inputDialog
def RefreshBlock(self):
global blockMode
for i in xrange(len(self.blockButtonList)):
if 0 != (blockMode & (1 << i)):
self.blockButtonList[i].Down()
else:
self.blockButtonList[i].SetUp()
def RefreshViewChat(self):
if systemSetting.IsViewChat():
self.viewChatButtonList[0].Down()
self.viewChatButtonList[1].SetUp()
else:
self.viewChatButtonList[0].SetUp()
self.viewChatButtonList[1].Down()
def RefreshAlwaysShowName(self):
if systemSetting.IsAlwaysShowName():
self.alwaysShowNameButtonList[0].Down()
self.alwaysShowNameButtonList[1].SetUp()
else:
self.alwaysShowNameButtonList[0].SetUp()
self.alwaysShowNameButtonList[1].Down()
def RefreshShowDamage(self):
if systemSetting.IsShowDamage():
self.showDamageButtonList[0].Down()
self.showDamageButtonList[1].SetUp()
else:
self.showDamageButtonList[0].SetUp()
self.showDamageButtonList[1].Down()
def RefreshShowSalesText(self):
if systemSetting.IsShowSalesText():
self.showsalesTextButtonList[0].Down()
self.showsalesTextButtonList[1].SetUp()
else:
self.showsalesTextButtonList[0].SetUp()
self.showsalesTextButtonList[1].Down()
def RefreshShowNightText(self):
if constInfo.Night == 1:
self.showNightButtonList[0].Down()
self.showNightButtonList[1].SetUp()
else:
self.showNightButtonList[0].SetUp()
self.showNightButtonList[1].Down()
def OnBlockMode(self, mode):
global blockMode
blockMode = mode
self.RefreshBlock()
def Show(self):
self.RefreshMobile()
self.RefreshBlock()
ui.ScriptWindow.Show(self)
if app.ENABLE_MELEY_LAIR_DUNGEON:
self.setMeleyMap()
def Close(self):
self.Hide()
Kod:
0209 18:15:00272 :: Traceback (most recent call last):
0209 18:15:00272 :: File "<string>", line 1, in <module>
0209 18:15:00273 :: File "system.py", line 137, in __pack_import
0209 18:15:00274 :: ImportError
0209 18:15:00274 :: :
0209 18:15:00274 :: No module named xd
0209 18:15:00274 ::
0209 18:15:08798 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/buff/buff_item6.mse) Error
0209 18:15:08798 :: CInstanceBase::RegisterEffect(eEftType=283, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/buff/buff_item6.mse, isCache=1) - Error
0209 18:15:08799 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/buff/buff_item7.mse) Error
0209 18:15:08799 :: CInstanceBase::RegisterEffect(eEftType=284, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/buff/buff_item7.mse, isCache=1) - Error
0209 18:15:21766 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/common/effect/armor/acc_01.mse) Error
0209 18:15:21766 :: CInstanceBase::RegisterEffect(eEftType=251, c_szEftAttachBone=Bip01, c_szEftName=d:/ymir work/pc/common/effect/armor/acc_01.mse, isCache=0) - Error
0209 18:15:33119 :: CSoundManager::PlayMusic - Failed to load stream sound : BGM/destan.mp3
0209 18:16:36491 :: Failed to load script file : uiscript/gameoptiondialog.py
0209 18:16:36495 ::
ui.py(line:2969) LoadScriptFile
system.py(line:192) execfile
system.py(line:161) Run
system.py(line:177) __LoadTextFile__
LoadScriptFile!!!!!!!!!!!!!! - <type 'exceptions.SyntaxError'>:EOL while scanning string literal (uiscript/gameoptiondialog.py, line 511)
0209 18:16:36496 :: ============================================================================================================
0209 18:16:36496 :: Abort!!!!
0209 18:16:36500 ::
uiGameOption.py(line:63) __Load_LoadScript
ui.py(line:2986) LoadScriptFile
exception.py(line:36) Abort
OptionDialog.__Load_LoadScript - <type 'exceptions.SystemExit'>:
0209 18:16:36500 :: ============================================================================================================
0209 18:16:36500 :: Abort!!!!
Python:
import uiScriptLocale
ROOT_PATH = "d:/ymir work/ui/public/"
TEMPORARY_X = +14
BUTTON_TEMPORARY_X = 5
PVP_X = -10
LINE_LABEL_X = 30
LINE_DATA_X = 90
LINE_STEP = 0
SMALL_BUTTON_WIDTH = 45
MIDDLE_BUTTON_WIDTH = 65
window = {
"name" : "GameOptionDialog",
"style" : ("movable", "float",),
"x" : 0,
"y" : 0,
"width" : 300,
"height" : 25*8+11,
"children" :
(
{
"name" : "board",
"type" : "board",
"x" : 0,
"y" : 0,
"width" : 300,
"height" : 25*8+11,
"children" :
(
## Title
{
"name" : "titlebar",
"type" : "titlebar",
"style" : ("attach",),
"x" : 8,
"y" : 8,
"width" : 284,
"color" : "gray",
"children" :
(
{ "name":"titlename", "type":"text", "x":0, "y":3,
"text" : uiScriptLocale.GAMEOPTION_TITLE,
"horizontal_align":"center", "text_horizontal_align":"center" },
),
},
## 이름색
{
"name" : "name_color",
"type" : "text",
"x" : LINE_LABEL_X,
"y" : 40+2,
"text" : uiScriptLocale.OPTION_NAME_COLOR,
},
{
"name" : "name_color_normal",
"type" : "radio_button",
"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*0,
"y" : 40,
"text" : uiScriptLocale.OPTION_NAME_COLOR_NORMAL,
"default_image" : ROOT_PATH + "Middle_Button_01.sub",
"over_image" : ROOT_PATH + "Middle_Button_02.sub",
"down_image" : ROOT_PATH + "Middle_Button_03.sub",
},
{
"name" : "name_color_empire",
"type" : "radio_button",
"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*1,
"y" : 40,
"text" : uiScriptLocale.OPTION_NAME_COLOR_EMPIRE,
"default_image" : ROOT_PATH + "Middle_Button_01.sub",
"over_image" : ROOT_PATH + "Middle_Button_02.sub",
"down_image" : ROOT_PATH + "Middle_Button_03.sub",
},
## 타겟창
{
"name" : "target_board",
"type" : "text",
"x" : LINE_LABEL_X,
"y" : 65+2,
"text" : uiScriptLocale.OPTION_TARGET_BOARD,
},
{
"name" : "target_board_no_view",
"type" : "radio_button",
"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*0,
"y" : 65,
"text" : uiScriptLocale.OPTION_TARGET_BOARD_NO_VIEW,
"default_image" : ROOT_PATH + "Middle_Button_01.sub",
"over_image" : ROOT_PATH + "Middle_Button_02.sub",
"down_image" : ROOT_PATH + "Middle_Button_03.sub",
},
{
"name" : "target_board_view",
"type" : "radio_button",
"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*1,
"y" : 65,
"text" : uiScriptLocale.OPTION_TARGET_BOARD_VIEW,
"default_image" : ROOT_PATH + "Middle_Button_01.sub",
"over_image" : ROOT_PATH + "Middle_Button_02.sub",
"down_image" : ROOT_PATH + "Middle_Button_03.sub",
},
## PvP Mode
{
"name" : "pvp_mode",
"type" : "text",
"x" : LINE_LABEL_X,
"y" : 90+2,
"text" : uiScriptLocale.OPTION_PVPMODE,
},
{
"name" : "pvp_peace",
"type" : "radio_button",
"x" : LINE_DATA_X+SMALL_BUTTON_WIDTH*0,
"y" : 90,
"text" : uiScriptLocale.OPTION_PVPMODE_PEACE,
"tooltip_text" : uiScriptLocale.OPTION_PVPMODE_PEACE_TOOLTIP,
"default_image" : ROOT_PATH + "small_Button_01.sub",
"over_image" : ROOT_PATH + "small_Button_02.sub",
"down_image" : ROOT_PATH + "small_Button_03.sub",
},
{
"name" : "pvp_revenge",
"type" : "radio_button",
"x" : LINE_DATA_X+SMALL_BUTTON_WIDTH*1,
"y" : 90,
"text" : uiScriptLocale.OPTION_PVPMODE_REVENGE,
"tooltip_text" : uiScriptLocale.OPTION_PVPMODE_REVENGE_TOOLTIP,
"default_image" : ROOT_PATH + "small_Button_01.sub",
"over_image" : ROOT_PATH + "small_Button_02.sub",
"down_image" : ROOT_PATH + "small_Button_03.sub",
},
{
"name" : "pvp_guild",
"type" : "radio_button",
"x" : LINE_DATA_X+SMALL_BUTTON_WIDTH*2,
"y" : 90,
"text" : uiScriptLocale.OPTION_PVPMODE_GUILD,
"tooltip_text" : uiScriptLocale.OPTION_PVPMODE_GUILD_TOOLTIP,
"default_image" : ROOT_PATH + "small_Button_01.sub",
"over_image" : ROOT_PATH + "small_Button_02.sub",
"down_image" : ROOT_PATH + "small_Button_03.sub",
},
{
"name" : "pvp_free",
"type" : "radio_button",
"x" : LINE_DATA_X+SMALL_BUTTON_WIDTH*3,
"y" : 90,
"text" : uiScriptLocale.OPTION_PVPMODE_FREE,
"tooltip_text" : uiScriptLocale.OPTION_PVPMODE_FREE_TOOLTIP,
"default_image" : ROOT_PATH + "small_Button_01.sub",
"over_image" : ROOT_PATH + "small_Button_02.sub",
"down_image" : ROOT_PATH + "small_Button_03.sub",
},
## Block
{
"name" : "block",
"type" : "text",
"x" : LINE_LABEL_X,
"y" : 115+2,
"text" : uiScriptLocale.OPTION_BLOCK,
},
{
"name" : "block_exchange_button",
"type" : "toggle_button",
"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*0,
"y" : 115,
"text" : uiScriptLocale.OPTION_BLOCK_EXCHANGE,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
{
"name" : "block_party_button",
"type" : "toggle_button",
"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*1,
"y" : 115,
"text" : uiScriptLocale.OPTION_BLOCK_PARTY,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
{
"name" : "block_guild_button",
"type" : "toggle_button",
"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*2,
"y" : 115,
"text" : uiScriptLocale.OPTION_BLOCK_GUILD,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
{
"name" : "block_whisper_button",
"type" : "toggle_button",
"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*0,
"y" : 140,
"text" : uiScriptLocale.OPTION_BLOCK_WHISPER,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
{
"name" : "block_friend_button",
"type" : "toggle_button",
"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*1,
"y" : 140,
"text" : uiScriptLocale.OPTION_BLOCK_FRIEND,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
{
"name" : "block_party_request_button",
"type" : "toggle_button",
"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH*2,
"y" : 140,
"text" : uiScriptLocale.OPTION_BLOCK_PARTY_REQUEST,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
## Chat
{
"name" : "chat",
"type" : "text",
"x" : LINE_LABEL_X,
"y" : 165+2,
"text" : uiScriptLocale.OPTION_VIEW_CHAT,
},
{
"name" : "view_chat_on_button",
"type" : "radio_button",
"x" : LINE_DATA_X,
"y" : 165,
"text" : uiScriptLocale.OPTION_VIEW_CHAT_ON,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
{
"name" : "view_chat_off_button",
"type" : "radio_button",
"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH,
"y" : 165,
"text" : uiScriptLocale.OPTION_VIEW_CHAT_OFF,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
## Always Show Name
{
"name" : "always_show_name",
"type" : "text",
"x" : LINE_LABEL_X,
"y" : 190+2,
"text" : uiScriptLocale.OPTION_ALWAYS_SHOW_NAME,
},
{
"name" : "always_show_name_on_button",
"type" : "radio_button",
"x" : LINE_DATA_X,
"y" : 190,
"text" : uiScriptLocale.OPTION_ALWAYS_SHOW_NAME_ON,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
{
"name" : "always_show_name_off_button",
"type" : "radio_button",
"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH,
"y" : 190,
"text" : uiScriptLocale.OPTION_ALWAYS_SHOW_NAME_OFF,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
{
"name" : "showNight_on_off",
"type" : "text",
"x" : LINE_LABEL_X,
"y" : 265+2,
"text" : "Hava Ayarı",
},
{
"name" : "showNight_on_button",
"type" : "radio_button",
"x" : LINE_DATA_X,
"y" : 265,
"text" : "Gece",
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
{
"name" : "showNight_off_button",
"type" : "radio_button",
"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH,
"y" : 265,
"text" : "Gunduz",
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
## Effect On/Off
{
"name" : "effect_on_off",
"type" : "text",
"x" : LINE_LABEL_X,
"y" : 215+2,
"text" : uiScriptLocale.OPTION_EFFECT,
},
{
"name" : "show_damage_on_button",
"type" : "radio_button",
"x" : LINE_DATA_X,
"y" : 215,
"text" : uiScriptLocale.OPTION_VIEW_CHAT_ON,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
{
"name" : "show_damage_off_button",
"type" : "radio_button",
"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH,
"y" : 215,
"text" : uiScriptLocale.OPTION_VIEW_CHAT_OFF,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
## 판매문구
{
"name" : "salestext_on_off",
"type" : "text",
"x" : LINE_LABEL_X,
"y" : 240+2,
"text" : uiScriptLocale.OPTION_SALESTEXT,
},
{
"name" : "salestext_on_button",
"type" : "radio_button",
"x" : LINE_DATA_X,
"y" : 240,
"text" : uiScriptLocale.OPTION_SALESTEXT_VIEW_ON,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
{
"name" : "salestext_off_button",
"type" : "radio_button",
"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH,
"y" : 240,
"text" : uiScriptLocale.OPTION_SALESTEXT_VIEW_OFF,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
{
"name" : "item_toplama",
"type" : "text",
"x" : LINE_LABEL_X,
"y" : 265+2,
"text" : "Oto Toplama",
},
{
"name" : "auto_pick_item_on",
"type" : "radio_button",
"x" : LINE_DATA_X,
"y" : 265,
"text" : "A汚k",
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
{
"name" : "auto_pick_item_off",
"type" : "radio_button",
"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH,
"y" : 265,
"text" : "Kapal?,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
),
},
),
}
En son bir moderatör tarafından düzenlenmiş: