Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
kenguru74

Принципы отработки обработчиков событий GUI

Помогите разобраться - почему прописка своего скрипта в конфиг дисплея гира не хочет работать? Надо препроцессить как и скрипт handleGear?

	onLoad = "setMousePosition [0.5, 0.5];_this call fn_gearMenuChecks; call player_gearSyncLoad; [] spawn object_monitorGear; call gear_ui_init; call ui_gear_sound; if (isNil('IGUI_GEAR_activeFilter')) then { IGUI_GEAR_activeFilter = 0;}; private ['_dummy']; _dummy = [_this,'initDialog'] call compile preprocessFile	'\z\addons\dayz_code\system\handleGear.sqf'; _dummy = [_this,'onLoad'] execVM	'\z\addons\dayz_code\system\handleGear.sqf'; _dummy;";

Мой встроенный код:

call player_gearSyncLoad; 

 

Там он не работает.

 

Встроенный в handleGear в event onLoad - работает, но ровно каждый второй раз (насколько показали тесты, ~ 40 раз, что уже можно считать статистикой)

Edited by kenguru74 (see edit history)

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Пишут, что 

User Interface Event handlers allow you to automatically monitor and then execute custom code upon particular UI events being triggered.

и

onLoad    Display and all controls are created, but no action on any is taken

 

Ранее синхрон гира висел только на 

	onUnload = "call player_gearSyncUnload; call dayz_forceSave;";

Где он и поныне здравствует и отлично (а главное - каждое закрытие инвентаря!!) работает..

 

WTF - как говорится?

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

  • Similar Content

    • By volchara
      Доброго времени суток уважаемые Гуру... Вопрос собственно вот в чем....
       
      Как в Gui редакторе сделать круглый прогресс бар... Всяких остряков прошу Лесом....
       
       
    • By Spunkeed
      Добрый вечер. Помогите сделать полоску худа, так сказать резиновой. Т.е, она расширялась или сужалась в зависимости от значений показателей. Заранее спасибо.
       
       
    • By STRAYDER
      Всем привет. Мне нужна помощь по интерфейсу в DayZ Epoch. Я использую модифицирующий DayZ_Code и на нем стоит старый Gui. Подскажите как можно подключить новый и чтобы он в БД сохранялся. Буду очень благодарен. В коде ковырятся умею, но уже 2 день не могу его заставить работать.
  • Our picks

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
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.