public override void onAction() { GuiEditorPrefsDlgGridSlider GuiEditorPrefsDlgGridSlider = "GuiEditorPrefsDlgGridSlider"; float value = this.getValue().AsFloat(); if (value < fGlobal["$GuiEditor::minGridSize"]) { value = fGlobal["$GuiEditor::minGridSize"]; this.setValue(value.AsString()); } GuiEditorPrefsDlgGridSlider.setValue(value.AsString()); }
public override void onAction() { GuiEditorPrefsDlgGridSlider GuiEditorPrefsDlgGridSlider = "GuiEditorPrefsDlgGridSlider"; GuiEditorPrefsDlgGridSlider.setValue(sGlobal["$GuiEditor::defaultGridSize"]); }