I have been trying to disable the withdraw and auto resolve button in the prebattle scroll button to no avail.
Success has been in flashing the fight button, which means that I got the name of the ui element right, but no luck with disabling the button
Works:
Doesn't work (buttons still enabled):Code:declare_counter hist_schlacht monitor_event ScrollOpened ScrollOpened prebattle_scroll if I_CompareCounter hist_schlacht = 1 campaign_wait 1 disable_cursor ui_flash_start prebattle_fight_button campaign_wait 3 select_ui_element prebattle_fight_button simulate_mouse_click lclick_down simulate_mouse_click lclick_up end_if enable_cursor set_counter hist_schlacht 0 end_monitor
I haven't bothered to make a monitor with enable_ui because of it. And those other two buttons don't want to flash either. If I put the prebattle_fight_button in the second monitor and use disable_ui with it, then it doesn't work either, hence my remark: does 'disable_ui' actually work?Code:declare_counter hist_schlacht monitor_event ScrollOpened ScrollOpened prebattle_scroll if I_CompareCounter hist_schlacht = 1 campaign_wait 1 disable_cursor disable_ui prebattle_withdraw_button disable_ui prebattle_auto_resolve_button end_if set_counter hist_schlacht 0 end_monitor







































Reply With Quote







