protected GameObject SkyboxButton(StandardPanel panel, GameObject parent, string buttonText, string skybox) { SkyboxButtonFactory factory = Undoable.AddComponent <SkyboxButtonFactory>(disposable); SetToggleButtonValues(factory, panel, parent); factory.buttonText = buttonText; factory.skybox = skybox; factory.skyboxManager = skyboxManager; return(GenerateToggleButtonAndSetPosition(factory)); }
private void CreateUnsavedPanel(GameObject parent) { toolsPanelInstance = Panel(parent, "UnsavedPanelInstance"); toolsPanel = toolsPanelInstance.GetComponent <StandardPanel>(); GameObject column = Column(toolsPanelInstance); LabelRow(column, "You have unsaved changes."); LabelRow(column, "Do you want to save the changes?"); ButtonRow(column); }
protected void ButtonByKey(StandardPanel panel, GameObject parent, Key key) { switch (key.type) { case KeyType.Key: KeyboardButton(panel, parent, keyProfile, key.value); break; case KeyType.Wide: KeyboardButton(panel, parent, wideKeyProfile, key.value); break; case KeyType.Space: KeyboardSpaceButton(panel, parent, key.value); break; case KeyType.ShiftLock: KeyboardShiftLockButton(panel, parent, key.value, key.on); break; case KeyType.ABC: KeyboardABCButton(panel, parent, key.value); break; case KeyType.NumLock: KeyboardNumLockButton(panel, parent, key.value); break; case KeyType.Symbol: KeyboardSymbolButton(panel, parent, key.value); break; case KeyType.Return: KeyboardReturnButton(panel, parent, key.value); break; case KeyType.Backspace: KeyboardBackspaceButton(panel, parent, key.value); break; case KeyType.Done: KeyboardDoneButton(panel, parent, key.value); break; case KeyType.Spacer: ButtonSpacer(parent, key.width); break; default: Debug.Log("unhandled key type=" + key.type); break; } }
protected GameObject ColorPicker(StandardPanel panel, GameObject parent) { ButtonProfile profile = Defaults.GetMomentaryButtonProfile(momentaryButtonProfile); ExampleColorPickerFactory factory = Undoable.AddComponent <ExampleColorPickerFactory>(disposable); factory.parent = parent; factory.colorPickerProfile = Defaults.GetProfile(colorPickerProfile); GameObject colorPicker = factory.Generate(); colorPicker.transform.localPosition = new Vector3(0, 0, profile.labelZ); return(colorPicker); }
private void CreateSettingsPanel(GameObject parent) { settingsPanelInstance = Panel(parent, "SettingsPanelInstance"); settingsPanel = settingsPanelInstance.GetComponent <StandardPanel>(); GameObject column = Column(settingsPanelInstance); LabelRow(column, "Settings"); SnapsRow(column); AlignmentToolsRow(column); TracingRow(column); LabelRow(column, "Fill Color"); ColorPickerRow(column); LabelRow(column, "Skybox"); SkyboxRow(column); }
protected void SetKeyboardToggleButtonValues(KeyboardToggleButtonFactory factory, StandardPanel panel, GameObject parent) { SetButtonValues(factory, panel, parent); factory.keyboard = keyboard; }
protected virtual void PanelHeader(StandardPanel panel, GameObject parent) { CurrentPathRow(parent); }
protected override void PanelHeader(StandardPanel panel, GameObject parent) { SaveAsButtonRow(parent); CurrentPathRow(parent); }