Jump to content
Korean Random

goofy67

User
  • Content Count

    67
  • Joined

  • Days Won

    2

Everything posted by goofy67

  1. In 9.10 it looks like this: from gui.app_loader import g_appLoader def showMessageOnPanel(panel, key, msgText, color): if g_appLoader.getDefBattleApp() is not None and panel in ('VehicleErrorsPanel', 'VehicleMessagesPanel', 'PlayerMessagesPanel'): g_appLoader.getDefBattleApp().call('battle.' + panel + '.ShowMessage', [key, msgText, color]) return showMessageOnPanel('PlayerMessagesPanel', 0, 'this is example text', 'green')
  2. Solved it: TestWindow.py (modified example from post #2):
  3. Just downloaded and installed 9.10 Test Client: from gui.WindowsManager import g_windowsManager Get an error: No module named WindowsManager Any ideas?
  4. What's wrong with my code?
  5. import gui.ClientHangarSpace as chs from gui.ClientHangarSpace import ClientHangarSpace from Account import PlayerAccount chs._DEFAULT_HANGAR_SPACE_PATH_BASIC = "spaces/hangar_premium_15aug" old_onBecomePlayer = PlayerAccount.onBecomePlayer def new_onBecomePlayer(self): old_onBecomePlayer(self) ClientHangarSpace() PlayerAccount.onBecomePlayer = new_onBecomePlayer Does not work with activated Event-Hangar.
  6. Большое спасибо за вашу помощь! The code above adds a scrollbar, indeed. (Tried "Scrollbar" before, didn't work....) I get working up- and down-buttons, but trying to move the small slider-button just moves to top of list. Forgot something?
  7. Me again... Is there a way to add a scrollbar to Dropdownmenu?
  8. Thank you very much. This is exactly what I was looking for.
  9. Another question: I managed to get Buttons and Checkboxes to work and sending results back to python. Fine to this point. But how can I add dropdown-menus and radiobuttons? This: this.ddownMenu = (this as UIComponent).addChild(App.utils.classFactory.getComponent("DropdownMenu", DropdownMenu, { x: 10, y: 100, width: 200 } )) as DropdownMenu; adds an empty dropdown-menu, but how do I add values?
  10. def _First(msg): global data if data == 'online': SystemMessages.pushMessage(msg, SystemMessages.SM_TYPE.Warning)
  11. I am following this thread with much interest, but I have one question: How do I get a wg.swc? I know it is possible to "build" one, but: How?
  12. That's why I'm obfuscating and protecting the HangMan-Script now. Everyone is stealing code, not even make an effort to name the initial author... BTW: This feature will be enabled in next HangMan-Update again.
  13. goofy67

    DEL

    I need a little help from you: I'm searching for a replacement of this sign (see picture) for the russian version of 'Fury'-hangar. Any hints? Google: Мне нужно немного помощи от вас: Я ищу для замены этого знака (см рисунок) для русской версии 'Fury'-ангар. Любые намеки?
  14. goofy67

    DEL

    It was a mistake, should be 'normal' by default.
  15. Is it allowed to post in english here? Just change the lines in python-scripts from if swf == 'Application.swf': to if swf == 'lobby.swf': That's it. Перевод Google: Разве это разрешено оставлять в английском здесь? Просто измените строки В Python-скриптов с if swf == 'Application.swf': для if swf == 'lobby.swf': Вот и все.
×
×
  • Create New...