-
Content Count
67 -
Joined
-
Days Won
2
Everything posted by goofy67
-
Патч 9.10 и куда пропал из gui WindowsManager.pyc ?
goofy67 replied to KACTET's topic in ActionScript & Python
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') -
Solved it: TestWindow.py (modified example from post #2):
-
Just downloaded and installed 9.10 Test Client: from gui.WindowsManager import g_windowsManager Get an error: No module named WindowsManager Any ideas?
-
What's wrong with my code?
-
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.
-
So it's useless. Sad.
-
Большое спасибо за вашу помощь! 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?
-
Me again... Is there a way to add a scrollbar to Dropdownmenu?
-
Thank you very much. This is exactly what I was looking for.
-
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?
-
def _First(msg): global data if data == 'online': SystemMessages.pushMessage(msg, SystemMessages.SM_TYPE.Warning)
-
Спасибо!
-
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?
-
[0.9.12] FreeCam - свободная камера в ангаре
goofy67 replied to TopGuns's topic in Mods and Software
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. -
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'-ангар. Любые намеки?
-
It was a mistake, should be 'normal' by default.
-
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': Вот и все.