Skip to content

Commit 6c7b15b

Browse files
committed
Fixed UI not updating CP after recruiting operatives
Added delayed (1s) update code to change the CP text label to the closing 'action' of the operatives dialog EXIT button. Most likely fixes #6
1 parent 14fbd4b commit 6c7b15b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/dialog/operative/operative.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class operativemaingui
3636
y = 18.5 * GUI_GRID_H + GUI_GRID_Y;
3737
w = 5 * GUI_GRID_W;
3838
h = 1 * GUI_GRID_H;
39-
action = "closeDialog 0";
39+
action = "closeDialog 0; [] spawn {sleep 1;ctrlSetText [1000, format[""%1"",commandpointsblu1]]}";
4040
};
4141
class operative_recruit_button: RscButton
4242
{
@@ -341,4 +341,4 @@ class operativemaingui
341341
// GUI EDITOR OUTPUT END
342342
////////////////////////////////////////////////////////
343343
};
344-
};
344+
};

0 commit comments

Comments
 (0)