Yup, UI = bottom stuff. For the pre-battle issue you need to disable the cursor and then script the clicking:
Code:
;--- No Retreat ---
monitor_event ScrollOpened ScrollOpened prebattle_scroll
if I_EventCounter Fight_Battle > 0 ; this counter needs to be set in the previous monitor
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_event_counter Fight_Battle 0
end_monitor
For other disabling I use disable_entire_ui, eg for 'cut scenes' during the campaign:
Code:
disable_save ; start of tour
disable_entire_ui
disable_movie_view
select_ui_element faction_button ;hide other scrolls by showing our own
simulate_mouse_click lclick_up
hide_ui
disable_cursor
disable_shortcuts true
snap_strat_camera 411, 200
zoom_strat_camera 0.5
reveal_tile 407, 196 ; Antiocheia-Margiane
reveal_tile 409, 197 ; Army
campaign_wait 2
reveal_tile 410, 198
campaign_wait 0.2
reveal_tile 411, 199
campaign_wait 0.2
reveal_tile 412, 200
campaign_wait 0.2
reveal_tile 413, 201
campaign_wait 0.2
reveal_tile 414, 202
campaign_wait 0.2
reveal_tile 415, 203
campaign_wait 0.2
reveal_tile 416, 204
campaign_wait 0.2
move sel_exped1, 416, 204
campaign_wait 3
enable_entire_ui
enable_save
show_ui
enable_cursor
disable_shortcuts false ; end of tour