Set_skin_offset for Label/Buttons

Reylon Member Posts: 23 Member
edited May 2022 in Scripting Workshop


How could it be done?

I have a label with one large png. When a button is clicked the label should move its view.

if($Home_Controls_Panel_Home_Expansion = 1)
  set_skin_offset(1000 * $Skin_Display)


I think this is much better solution.

set_control_par(get_ui_id($Skin_Display), $CONTROL_PAR_PICTURE_STATE, 3+ $Home_Controls_Panel_Home_Expansion)

You can just rise the number and it will change the image and align it without the correct px number...

Back To Top