Jump to content
Sign in to follow this  

adicionar comando Botao

Recommended Posts

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
                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))
        elif gelen==8:
            #import interfaceModule
            #import efsunbot
            #if interfaceModule.Botacik == 0:
            #    self.ac_bot5.Ac()
            #    interfaceModule.Botacik=1
            #    self.ac_bot5.__del__()
            #    interfaceModule.Botacik=0
            pyScrLoader = ui.PythonScriptLoader()
            pyScrLoader.LoadScriptFile(self, "efsunbot.py")
        elif gelen==9:
        elif gelen==10:
            if constInfo.AUTO_PICK_UP == 0:
                chat.AppendChat(chat.CHAT_TYPE_INFO, "Sistema automatico de rodar itens ativado.")
                chat.AppendChat(chat.CHAT_TYPE_INFO, "O sistema automatico de rodar adds desativado.")
        elif gelen==14:
            if constInfo.arayuzkoray == 0:
                gameInfo.SYSTEMS_WINDOW_KAPAT = 1
        elif gelen==16:
            import translate
            translate.panelisle = 1

    def OnEfsunBotDialog(self,gelen):
        if gelen==3:
        if gelen==1:
            pyScrLoader = ui.PythonScriptLoader()
            pyScrLoader.LoadScriptFile(self, "efsunbot.py")
            import frozengame
            if not constInfo.eigenmod:
                constInfo.eigenmod = 1

    def OnUpdate(self):
        global SYSTEMS_WINDOW
        if gameInfo.SYSTEMS_WINDOW_KAPAT==1:

qero substituir o comando do botao para outro comando de outro boot.

Share this post

Link to post
Share on other sites

aqui esta o antigo e o novo sei que tem diferenças mais qeria saber se tem como adaptar o novo no antigo ?

Please login or register to see this attachment.

  • Like 2

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.

Our website is made possible by displaying online advertisements to our visitors.
Please consider supporting us by disabling your ad blocker.
You will be able to see content when you disable your adblocker and enable javascript.