-
Notifications
You must be signed in to change notification settings - Fork 12
Hello, world!
Vlad edited this page Dec 19, 2017
·
26 revisions
Пример Python скрипта (mod_example.py) для вывода текста 'Hello, world!':
from gambiter import g_guiFlash
from gambiter.flash import COMPONENT_TYPE
props = {'x': 100, 'y': 100, 'text': 'Hello, world!', 'tooltip': 'Hello, world!'}
g_guiFlash.createComponent('labelAlias', COMPONENT_TYPE.LABEL, props)
g_guiFlash.updateComponent('labelAlias', {'drag': True, 'border': True})
Скомпилируйте данный код и поместите полученный скрипт mod_example.pyс в папку '..\World_of_Tanks\res_mods\0.x.x\scripts\client\gui\mods', где 0.x.x - версия клиента.
© 2017-2019, GambitER