Page 1 of 1

[Twinsen][1.1.27] Disabling side menu leaves right_side_frame stub.

Posted: Tue Mar 16, 2021 9:44 pm
by eradicator
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.
right_side_frame_stub.png
right_side_frame_stub.png (184.78 KiB) Viewed 3730 times


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
When something is selected manually or by script the stub vanishes when the selection is updated back to "nil" one tick later.

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
But this doesn't help in my usecase because i also need to disable 'update_entity_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
Example mod (you have to drag the screenshot menu away after opening it.)

Re: [1.1.27] Disabling side menu leaves right_side_frame stub.

Posted: Wed Mar 17, 2021 8:03 am
by ickputzdirwech
The same is true if you disable all mod GUI buttons in the top left corner.

Re: [1.1.27] Disabling side menu leaves right_side_frame stub.

Posted: Wed Mar 17, 2021 1:39 pm
by Twinsen
Fixed in Version: 1.1.28
Thanks for the report.

ickputzdirwech wrote: Wed Mar 17, 2021 8:03 am The same is true if you disable all mod GUI buttons in the top left corner.
Please create a separate detailed report.

Re: [1.1.27] Disabling side menu leaves right_side_frame stub.

Posted: Wed Mar 17, 2021 8:24 pm
by eradicator
Twinsen wrote: Wed Mar 17, 2021 1:39 pm Fixed in Version: 1.1.28
Thanks for the report.
Nice. Was half expecting it to go to the minor-issues grave :p.

Re: [Twinsen][1.1.27] Disabling side menu leaves right_side_frame stub.

Posted: Fri Mar 19, 2021 1:24 am
by NotRexButCaesar
This will be very nice for the trainsaver mod