Page 1 of 1

[Rseding] [1.1.36] gui_type.bonus not actualized when changing Force bonuses

Posted: Tue Aug 03, 2021 2:01 am
by Hanakocz
Hello,
If you have Bonuses Gui opened and bonuses for your force change their values, the Gui won't get updated to new values.
Currently the update of values happens only when research changes (research finished or unresearched, including changes via command), or when closing and reopening the Gui. Changing Surfaces also updates the Gui, as that closes and reopens it.
Tried methods of changing values:
- Editor interface to change properties of force
- Commands or script to change properties (e.q. /c game.forces.player.set_ammo_damage_modifier('bullet', 1) )
- force.reset_technology_effects()


Proposed fix: call update function on this gui when command successfully changes the values of shown bonuses, or when values gets saved in Editor interface, so they actualize same as when research finishes.

Re: [Rseding] [1.1.36] gui_type.bonus not actualized when changing Force bonuses

Posted: Tue Mar 26, 2024 6:03 pm
by Rseding91
Thanks for the report. This is now fixed for 2.0.