1
0
Fork 0

Pass node in the config hash instead of as an argument

This commit is contained in:
TheFGFSEagle 2023-02-03 22:57:18 +01:00 committed by James Turner
parent 06dc27d631
commit a5f2e19c12

View file

@ -57,7 +57,7 @@ var WidgetsFactoryDialog = {
m.checkbox_right = gui.widgets.CheckBox.new(m.tabsContent, style, {"label-position": "left"})
.setText("Checkbox with text on the left side");
m.tab_1.addItem(m.checkbox_right);
m.property_checkbox = gui.widgets.PropertyCheckBox.new(props.globals.getNode("/controls/lighting/nav-lights"), m.tabsContent, style, {})
m.property_checkbox = gui.widgets.PropertyCheckBox.new(m.tabsContent, style, {"node": props.globals.getNode("/controls/lighting/nav-lights")})
.setText("Nav lights");
m.tab_1.addItem(m.property_checkbox);