Jump to content

breaak

Inactive Member
  • Posts

    14
  • Joined

  • Last visited

  • Feedback

    0%

About breaak

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

breaak's Achievements

Contributor

Contributor (5/16)

  • Collaborator Rare
  • Dedicated
  • First Post
  • Conversation Starter
  • One Year In

Recent Badges

0

Reputation

  1. is there any way to change shortcut because middle button doesnt work on my mouse
  2. How can I move the camera in an absolute way? I’m using World Editor Remix, but when I zoom it always stays focused on the Sura character, and I don’t know why.
  3. yes the error still
  4. same error
  5. it still doesnt work i told you the problem is on file doesnt recognize the module i should register it i think somewhere
  6. you can see the my post i mentionned it the prboelm i did test.py on same level as game.py it give me the error i dont know if there is some source client thing because i didnt touch at all source only client file
  7. i did it i jsut didnt mentionne it. let say i just imported anything custom python file will not work
  8. i m using Ava2 metiN2 file when i try to create a simple button step i do /uiscript/uiscript import uiscriptlocale window = { "name":"SimpleBonusWindow", "style":("movable","float","attach"), "x":300, "y":200, "width":200, "height":100, "children": [ { "name":"close_button", "type":"button", "x":170, "y":0, "text":"X" }, { "name":"example_button", "type":"button", "x": 60, "y": 40, "text":"Show HP" }, ], } then /root import ui import wndMgr import localeInfo import item import player import chat class CustomBtnWindow(ui.ScriptWindow): def __init__(self): super(CustomBtnWindow, self).__init__() self.bonusList = [] def LoadWindow(self): pyScrLoader = ui.PythonScriptLoader() pyScrLoader.LoadScriptFile(self, "UIScript/CustomBtn.py") self.btnClose = self.GetChild("close_button") self.btnClose.SetEvent(ui.__mem_func__(self.Close)) self.btnExample = self.GetChild("example_button") self.btnExample.SetEvent(ui.__mem_func__(self.OnExampleClick)) def OnExampleClick(self): # For demo: fetch a stat and display in chat stat = player.GetStatus(item.APPLY_MAX_HP) chat.AppendChat(chat.CHAT_TYPE_INFO, "Max HP: %d" % stat) def OnPressEscapeKey(self): self.Close() return True def Close(self): wndMgr.Hide(self.hWnd) /root/interfacemodule.py def __MakeButton(self): self.Btn = uiCustomBtn.CustomButton() self.Btn.LoadWindow() # self.Btn.Hide() def MakeInterface(self): self.__MakeButton() 0730 12:41:15592 :: networkModule.py(line:188) SetSelectCharacterPhase system.py(line:177) __hybrid_import system.py(line:142) _process_result introSelect.py(line:18) <module> system.py(line:177) __hybrid_import system.py(line:142) _process_result uiInventory.py(line:23) <module> system.py(line:177) __hybrid_import system.py(line:142) _process_result game.py(line:68) <module> system.py(line:177) __hybrid_import system.py(line:142) _process_result interfaceModule.py(line:142) <module> system.py(line:184) __hybrid_import networkModule.SetSelectCharacterPhase - <type 'exceptions.ImportError'>:No module named uiCustomBtn 0730 12:41:15593 :: ============================================================================================================ 0730 12:41:15593 :: Abort!!!! i followed same way as a module called tablebonus where you show bonsu of the character
×
×
  • 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.