- Oct 9, 2017
- 2,631
- 3,171
I have my HUD almost set up and one of the imagebutton calls in a function to skip time. It all works as intended except that it doesn't reflect the changes to the hud until I unhover from the button. Do I need to add something else to the code for it to change regardless of the mouse position?
Python:
screen hud():
modal False
if Day == 0:
add "monday"
if Day == 1:
add "tuesday"
if Day == 2:
add "wednesday"
if Day == 3:
add "thursday"
if Day == 4:
add "friday"
if Day == 5:
add "saturday"
if Day == 6:
add "sunday"
if TimeOfDay == 0:
add "dawn"
if TimeOfDay == 1:
add "morning"
if TimeOfDay == 2:
add "afternoon"
if TimeOfDay == 3:
add "evening"
if TimeOfDay == 4:
add "night"
imagebutton auto "home_map_%s":
focus_mask True
hovered SetVariable("screen_tooltip", "Homestead Map")
unhovered SetVariable("screen_tooltip", "")
action Show("homestead_map"), Hide("hud")
imagebutton auto "area_map_%s":
focus_mask True
hovered SetVariable("screen_tooltip", "Area Map")
unhovered SetVariable("screen_tooltip", "")
action Show("area_map"), Hide("hud")
imagebutton auto "stats_button_%s":
focus_mask True
hovered SetVariable("screen_tooltip", "Characters")
unhovered SetVariable("screen_tooltip", "")
action Show("characters"), Hide("hud")
imagebutton auto "notes_button_%s":
focus_mask True
hovered SetVariable("screen_tooltip", "Journal")
unhovered SetVariable("screen_tooltip", "")
action Show("journal"), Hide("hud")
imagebutton auto "skip_time_%s":
focus_mask True
hovered SetVariable("screen_tooltip", "Skip Time")
unhovered SetVariable("screen_tooltip", "")
action skiptime