We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f40c3d4 commit 0137fb6Copy full SHA for 0137fb6
1 file changed
src/Modules/PartInfoInPAW.cs
@@ -32,6 +32,21 @@ public class ModulePartInfoInPAW: PartModule
32
protected bool InfoUpdated = false;
33
protected bool ShowTWR = true;
34
35
+ private void Start()
36
+ {
37
+ GameEvents.onEditorShipModified.Add(EditorShipModified);
38
+ }
39
+
40
+ private void OnDestroy()
41
42
+ GameEvents.onEditorShipModified.Remove(EditorShipModified);
43
44
45
+ private void EditorShipModified(ShipConstruct construct)
46
47
+ InfoUpdated = false;
48
49
50
public void Update()
51
{
52
if (!InfoUpdated && HighLogic.LoadedSceneIsEditor)
0 commit comments