[Twinsen][1.1.27] Disabling side menu leaves right_side_frame stub.
Posted: Tue Mar 16, 2021 9:44 pm
What?
When all three parts of the side menu are disabled via game_view_settings there's still a small bit of frame left. Presumably from the mouse-over entity-tooltip frame.
Reproduction
1) Have nothing selected.
2) Use this code:
When something is selected manually or by script the stub vanishes when the selection is updated back to "nil" one tick later.
But this doesn't help in my usecase because i also need to disable 'update_entity_selection'.
Example mod (you have to drag the screenshot menu away after opening it.)
When all three parts of the side menu are disabled via game_view_settings there's still a small bit of frame left. Presumably from the mouse-over entity-tooltip frame.
Reproduction
1) Have nothing selected.
2) Use this code:
Code: Select all
/c
local x = false
local p = game.player
for _,v in pairs{'show_minimap','show_research_info','show_side_menu'} do
p.game_view_settings[v] = x
end
Code: Select all
/c
local x = false
local p = game.player
for _,v in pairs{'show_minimap','show_research_info','show_side_menu'} do
p.game_view_settings[v] = x
end
p.selected = p.character -- example selection
Code: Select all
/c
local x = false
local p = game.player
for _,v in pairs{'show_minimap','show_research_info','show_side_menu','update_entity_selection'} do
p.game_view_settings[v] = x
end
p.selected = p.character
p.selected = nil -- doesn't work, stub still visible