only show tooltips when window in focus

This commit is contained in:
Kartik K. Agaram 2024-05-19 22:27:19 -07:00
parent e848a890ef
commit b5b5234613
3 changed files with 7 additions and 1 deletions

View File

@ -25,5 +25,7 @@ on.draw = function()
end
draw_menu()
draw_next_frames_of_animations()
draw_button_tooltips(Global_state)
if Window_in_focus then
draw_button_tooltips(Global_state)
end
end

1
0177-Window_in_focus Normal file
View File

@ -0,0 +1 @@
Window_focus = true

3
0178-on.focus Normal file
View File

@ -0,0 +1,3 @@
on.focus = function(in_focus)
Window_in_focus = in_focus
end