public void AddProperties(PropertyOwner owner) { _comboAddConfirm = new TextBoxConfirmAction(); _addButton = new Button("PropertyPanelComboAddBTNTX", OverlayOption.NORMAL, DrawPriority.NORMAL); _remButton = new Button("PropertyPanelComboDelBTNTX", OverlayOption.NORMAL, DrawPriority.NORMAL); Properties.Add(_comboAddConfirm, new Point(55, 555)); _comboAddConfirm.Initialize(); _addButton.Initialize(); _addButton.Initialize(); _comboAddConfirm.AddButton(_addButton, 4); _comboAddConfirm.AddButton(_remButton, 4); _comboAddConfirm.Show(); AddEvents(); }
void AddPanelProperties() { ///////////////////////////////////// Default Panel Properties //////////////////////////////////////////////////// ////////////////////////////////////////////// Start //////////////////////////////////////////////////////////////// _grid = new CheckBox("PropertyPanelCheckboxTX", OverlayOption.CHECKBOX, DrawPriority.LOW); _free = new CheckBox("PropertyPanelCheckboxTX", OverlayOption.CHECKBOX, DrawPriority.LOW); _vertical = new CheckBox("PropertyPanelCheckboxTX", OverlayOption.CHECKBOX, DrawPriority.LOW); _horizontal = new CheckBox("PropertyPanelCheckboxTX", OverlayOption.CHECKBOX, DrawPriority.LOW); _search = new TextBox("PropertyPanelTextboxTX", "PropertyPanelTextboxPointerTX", TextBoxType.TEXT, DrawPriority.HIGHEST); _events = new ComboBox("PropertyPanelEvtCBTX", "PropertyPanelEvtCBBGTX", DrawPriority.LOWEST); _showhide = new CheckBox("PropertyPanelCheckboxTX", OverlayOption.CHECKBOX, DrawPriority.HIGHEST); _locker = new CheckBox("PropertyPanelCheckboxTX", OverlayOption.CHECKBOX, DrawPriority.HIGHEST); _onClickConfirm = new TextBoxConfirmAction(); _onOverConfirm = new TextBoxConfirmAction(); _onOutConfirm = new TextBoxConfirmAction(); _onClickConfirm.Priority = DrawPriority.LOWEST; _onOverConfirm.Priority = DrawPriority.LOWEST; _onOutConfirm.Priority = DrawPriority.LOWEST; _onOverConfirm.Initialize(); _onClickConfirm.Initialize(); _onOutConfirm.Initialize(); _okClickConfirm = new Button("TextboxPickerConfirmTX", OverlayOption.NORMAL, DrawPriority.LOWEST); _cancelClickConfirm = new Button("TextboxPickerCancelTX", OverlayOption.NORMAL, DrawPriority.LOWEST); _okOverConfirm = new Button("TextboxPickerConfirmTX", OverlayOption.NORMAL, DrawPriority.LOWEST); _cancelOverConfirm = new Button("TextboxPickerCancelTX", OverlayOption.NORMAL, DrawPriority.LOWEST); _okOutConfirm = new Button("TextboxPickerConfirmTX", OverlayOption.NORMAL, DrawPriority.LOWEST); _cancelOutConfirm = new Button("TextboxPickerCancelTX", OverlayOption.NORMAL, DrawPriority.LOWEST); _showhideLb = new Label("Show/Hide:"); _lockLb = new Label("Lock:"); _showhideLb.TextFont = Singleton.Font.GetFont(FontManager.FontType.LUCIDA_CONSOLE); _lockLb.TextFont = Singleton.Font.GetFont(FontManager.FontType.LUCIDA_CONSOLE); _lockerTooltip = new ToolTip(_locker); _lockerTooltip.Initialize(); _lockerTooltip.Text = "Tick this option\nTo lock the Item in place,\nAnd enable live actions\n(scale, show/hide etc)!"; _properties.Add(_grid, new Point(141, 38)); _properties.Add(_free, new Point(182, 38)); _properties.Add(_vertical, new Point(226, 38)); _properties.Add(_horizontal, new Point(275, 38)); _properties.Add(_search, new Point(4, 55)); _showhideLb.Setup(); _lockLb.Setup(); _properties.Add(_onClickConfirm, new Point(-100, 140)); _properties.Add(_onOverConfirm, new Point(-100, 170)); _properties.Add(_onOutConfirm, new Point(-100, 195)); _properties.Add(_events, new Point(171, 118)); int lbWidth = (int)_showhideLb.TextSize.X; _properties.Add(_showhideLb, new Point(168 - lbWidth, 488)); _properties.Add(_showhide, new Point(171, 488)); lbWidth = (int)_lockLb.TextSize.X; _properties.Add(_lockLb, new Point(168 - lbWidth, 339)); _properties.Add(_locker, new Point(171, 339)); _layoutCBG.AddRange(_grid, _free, _vertical, _horizontal); ////////////////////////////////////////////// End //////////////////////////////////////////////////////////////// Initialize(); _events.AddName("Mouse Events", Color.White, Singleton.Font.GetFont(FontManager.FontType.GEORGIA)); _okClickConfirm.Initialize(); _cancelClickConfirm.Initialize(); _okOverConfirm.Initialize(); _cancelOverConfirm.Initialize(); _okOutConfirm.Initialize(); _cancelOutConfirm.Initialize(); _okClickConfirm.Setup(); _cancelClickConfirm.Setup(); _okOverConfirm.Setup(); _cancelOverConfirm.Setup(); _okOutConfirm.Setup(); _cancelOutConfirm.Setup(); _onClickConfirm.AddButton(_okClickConfirm); _onClickConfirm.AddButton(_cancelClickConfirm); _onOverConfirm.AddButton(_okOverConfirm); _onOverConfirm.AddButton(_cancelOverConfirm); _onOutConfirm.AddButton(_okOutConfirm); _onOutConfirm.AddButton(_cancelOutConfirm); _onClickConfirm.Hide(); _onOverConfirm.Hide(); _onOutConfirm.Hide(); }