nojanath / SublimeKSP

Fork of Nils Liberg's SublimeKSP plugin. See README for details.
GNU General Public License v3.0
87 stars 18 forks source link

Add get_ui_id() for -> shorthand when parent_panel #335

Closed JackWilliams-FractureSounds closed 1 year ago

JackWilliams-FractureSounds commented 1 year ago

delay_settings_panel -> parent_panel := delay_panel Should compile to: set_control_par(get_ui_id(delay_settings_panel), CONTROL_PAR_PARENT_PANEL, get_ui_id(delay_settings))

Currently not adding get_ui_id() for the last arg in set_control_par

mkruselj commented 1 year ago

Do we even have knowledge that delay_settings is a ui_panel, or is it just considered a variable internally?

JackWilliams-FractureSounds commented 1 year ago

Yes, sorry. so:

declare ui_panel delay_panel
declare ui_label delay_settings_label
delay_settings_label -> parent_panel := delay_panel