trample Posted December 4, 2017 Share Posted December 4, 2017 boas dentro da pasta root Uienventori essiste uma janela queria saber se ela essecuta o botao que tem na interface ? if gelen==6: import constInfo import uifastequip self.uuifastequipDlg = uifastequip.changeequip() if constInfo.FAST_EQUIP == 0: constInfo.FAST_EQUIP = 1 self.uuifastequipDlg.Show() else: constInfo.FAST_EQUIP = 0 #elif gelen==7: # self.EfsunBotDialog = uiCommon.QuestionDialogEfsun() # self.EfsunBotDialog.SetText("O que voce quer usar?") # self.EfsunBotDialog.SetAcceptText("Bot de Rodar Origens") # self.EfsunBotDialog.SetCancelText("Outro Boot") # self.EfsunBotDialog.SetCancel2Text("Fechar") # self.EfsunBotDialog.SetAcceptEvent(lambda arg=TRUE: self.OnEfsunBotDialog(1)) # self.EfsunBotDialog.SetCancelEvent(lambda arg=FALSE: self.OnEfsunBotDialog(2)) # self.EfsunBotDialog.Open() # self.EfsunBotDialog.SetCancel2Event(lambda arg=FALSE: self.OnEfsunBotDialog(3)) #self.EfsunBotDialog.Close() #gameInfo.SYSTEMS_PAKET1=1 elif gelen==8: #import interfaceModule #import efsunbot #self.ac_bot5=efsunbot.NewM2Bot() #if interfaceModule.Botacik == 0: # self.ac_bot5.Ac() # interfaceModule.Botacik=1 #else: # self.ac_bot5.__del__() # interfaceModule.Botacik=0 pyScrLoader = ui.PythonScriptLoader() pyScrLoader.LoadScriptFile(self, "efsunbot.py") #gameInfo.SYSTEMS_PAKET2=1 elif gelen==9: net.SendChatPacket("/click_safebox") elif gelen==10: if constInfo.AUTO_PICK_UP == 0: constInfo.AUTO_PICK_UP=1 chat.AppendChat(chat.CHAT_TYPE_INFO, "Sistema automatico de rodar itens ativado.") else: constInfo.AUTO_PICK_UP=0 chat.AppendChat(chat.CHAT_TYPE_INFO, "O sistema automatico de rodar adds desativado.") elif gelen==14: gameInfo.SYSTEMS_PAKET4=1 if constInfo.arayuzkoray == 0: gameInfo.SYSTEMS_WINDOW_KAPAT = 1 elif gelen==16: import translate translate.panelisle = 1 def OnEfsunBotDialog(self,gelen): if gelen==3: self.EfsunBotDialog.Close() return self.EfsunBotDialog.Close() if gelen==1: pyScrLoader = ui.PythonScriptLoader() pyScrLoader.LoadScriptFile(self, "efsunbot.py") else: import frozengame if not constInfo.eigenmod: execfile('eigenmods.py',{}) constInfo.eigenmod = 1 def OnUpdate(self): global SYSTEMS_WINDOW self.AdjustPositionAndSize() if gameInfo.SYSTEMS_WINDOW_KAPAT==1: self.Close() gameInfo.SYSTEMS_WINDOW_KAPAT=0 qero substituir o comando do botao para outro comando de outro boot. Link to comment Share on other sites More sharing options...
trample Posted December 5, 2017 Author Share Posted December 5, 2017 aqui esta o antigo e o novo sei que tem diferenças mais qeria saber se tem como adaptar o novo no antigo ? Hidden Content Give reaction to this post to see the hidden content. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now