What's new

Cannot make label persistent

Maestromike

New Member
Hi guys, I cannot get a label in this simplified script to be persistent, if anyone could possibly point to my error?

declare ui_label $Blabel(1,1)
set_text($Blabel, "B")
set_control_par(get_ui_id($Blabel),$CONTROL_PAR_Z_LAYER,1)
hide_part($Blabel, $HIDE_PART_BG )
move_control_px($Blabel, 74,229)
make_persistent($Blabel)
make_persistent_var($Blabel)

...when I update the label with set_text() it works fine, but then reverts to initial state when saving/reloading.

Thanks for your help.
 
Top Bottom