public BiologView(Desktop biologDesktop, IBiologProgress biologData) { biologDesktop.Dock = DockStyle.Fill; Controls.Add(biologDesktop); _biologProgress = biologData; _biologProgress.BiologEntryScanned += _biologProgress_BiologEntryUnlocked; _backgroundTintFrame = (Frame)GetControl("TintFrame"); // Animation stuff _leftSlideFrame = (Frame)GetControl("LeftSlideFrame"); _rightSlideFrame = (Frame)GetControl("RightSlideFrame"); _centerSlideFrame = (Frame)GetControl("CenterSlideFrame"); _topSlideFrame = (Frame)GetControl("TopSlideFrame"); _bottomSlideFrame = (Frame)GetControl("BottomSlideFrame"); _separatorSlideFrame = (Frame)GetControl("SeparatorSlideFrame"); // Database stuff _databaseList = (FlowLayoutFrame)GetControl("Database List"); _databaseList.Controls.Clear(); _databaseList.ForceFlowLayout(); _databaseScrollFrame = (Frame)GetControl("DatabaseScrollFrame"); _databaseScrollFrame.Update += _databaseList_Update; _databaseSlider = (Slider)GetControl("DatabaseSlider"); // Center content pane stuff _centerSlider = (Slider)GetControl("CenterSlider"); _centerSlider.Ease = true; _centerScrollFrame = (Frame)GetControl("Scroll Page"); _centerContentPage = (Frame)GetControl("CenterContent"); _centerScrollFrame.Update += new VoidEvent(_centerScrollPage_Update); _summaryTitle = (Label)GetControl("SummaryHeader"); _summaryLabel = (TextArea)GetControl("SummaryInfo"); _detailLabel = (Label)GetControl("DetailInfo"); // Tags stuff _tagsList = (FlowLayoutFrame)GetControl("Tags"); _tagsList.Controls.Clear(); _scaleLabel = (Label)GetControl("Scale Number"); _scaleFrame = (Frame)GetControl("Scalebar"); // Gallery stuff _galleryImage = (ImageControl)GetControl("Entry"); _navigatorPreviewFrame = (Frame)GetControl("NavigatorPreviewFrame"); _navigatorPreviewFrame.Controls.Clear(); (GetControl("Exit") as Button).MouseClick += (c, s) => { if (ExitButtonPressed != null) { ExitButtonPressed(); } }; _3dPreviewTexture = ResourcesExt.Load <RenderTexture>("Biolog/3DPreviews/Biolog3DPreview"); Initialize(); }
public Inventory() { Resizable = true; Size = new Point(400, 300); Position = new Point(400, 200); Titlebar.Text = "Inventory"; left = new Frame(); left.Size = new Point(50, 50); left.Dock = DockStyle.Left; left.Style = "window"; Controls.Add(left); for (int i = 0; i < 6; i++) { ActionButton slot = new ActionButton(); slot.Size = new Point(40, 40); slot.Dock = DockStyle.Top; slot.Margin = new Squid.Margin(5, 5, 5, 0); left.Controls.Add(slot); } top = new Frame(); top.Size = new Point(58, 58); top.Dock = DockStyle.Top; Controls.Add(top); search = new TextBox(); search.Size = new Point(200, 28); search.Dock = DockStyle.Bottom; search.Style = "textbox"; search.Text = "Search..."; search.Margin = new Squid.Margin(8, 0, 8, 0); search.GotFocus += delegate(Control sender) { search.Text = ""; }; search.LostFocus += delegate(Control sender) { search.Text = "Search..."; }; top.Controls.Add(search); bottom = new Frame(); bottom.Size = new Point(38, 38); bottom.Dock = DockStyle.Bottom; bottom.Style = "border"; bottom.Margin = new Squid.Margin(-1, 0, 0, 0); Controls.Add(bottom); view = new ScrollView(); view.Dock = DockStyle.Fill; view.AllowDrop = true; Controls.Add(view); flow = new FlowLayoutFrame(); flow.FlowDirection = FlowDirection.LeftToRight; flow.HSpacing = flow.VSpacing = 4; flow.AutoSize = Squid.AutoSize.Vertical; flow.Dock = DockStyle.Top; view.Controls.Add(flow); Refresh(); }
public Inventory() { Resizable = true; Size = new Point(400, 300); Position = new Point(400, 200); Titlebar.Text = "Inventory"; _left = new Frame(); _left.Size = new Point(50, 50); _left.Dock = DockStyle.Left; _left.Style = "window"; Controls.Add(_left); for (var i = 0; i < 6; i++) { var slot = new ActionButton(); slot.Size = new Point(40, 40); slot.Dock = DockStyle.Top; slot.Margin = new Margin(5, 5, 5, 0); _left.Controls.Add(slot); } _top = new Frame(); _top.Size = new Point(58, 58); _top.Dock = DockStyle.Top; Controls.Add(_top); _search = new TextBox(); _search.Size = new Point(200, 28); _search.Dock = DockStyle.Bottom; _search.Style = "textbox"; _search.Text = "Search..."; _search.Margin = new Margin(8, 0, 8, 0); _search.GotFocus += delegate { _search.Text = ""; }; _search.LostFocus += delegate { _search.Text = "Search..."; }; _top.Controls.Add(_search); _bottom = new Frame(); _bottom.Size = new Point(38, 38); _bottom.Dock = DockStyle.Bottom; _bottom.Style = "border"; _bottom.Margin = new Margin(-1, 0, 0, 0); Controls.Add(_bottom); _view = new ScrollView(); _view.Dock = DockStyle.Fill; _view.AllowDrop = true; Controls.Add(_view); _flow = new FlowLayoutFrame(); _flow.FlowDirection = FlowDirection.LeftToRight; _flow.HSpacing = _flow.VSpacing = 4; _flow.AutoSize = AutoSize.Vertical; _flow.Dock = DockStyle.Top; _view.Controls.Add(_flow); Refresh(); }
public Inventory() { Resizable = true; Size = new Point(400, 300); Position = new Point(400, 200); Titlebar.Text = "Inventory"; left = new Frame(); left.Size = new Point(50, 50); left.Dock = DockStyle.Left; left.Style = "window"; Controls.Add(left); for (int i = 0; i < 6; i++) { ActionButton slot = new ActionButton(); slot.Size = new Point(40, 40); slot.Dock = DockStyle.Top; slot.Margin = new Squid.Margin(5, 5, 5, 0); left.Controls.Add(slot); } top = new Frame(); top.Size = new Point(58, 58); top.Dock = DockStyle.Top; Controls.Add(top); search = new TextBox(); search.Size = new Point(200, 28); search.Dock = DockStyle.Bottom; search.Style = "textbox"; search.Text = "Search..."; search.Margin = new Squid.Margin(8, 0, 8, 0); search.GotFocus += delegate(Control sender) { search.Text = ""; }; search.LostFocus += delegate(Control sender) { search.Text = "Search..."; }; top.Controls.Add(search); bottom = new Frame(); bottom.Size = new Point(38, 38); bottom.Dock = DockStyle.Bottom; bottom.Style = "border"; bottom.Margin = new Squid.Margin(-1, 0, 0, 0); Controls.Add(bottom); view = new ScrollView(); view.Dock = DockStyle.Fill; view.AllowDrop = true; Controls.Add(view); flow = new FlowLayoutFrame(); flow.FlowDirection = FlowDirection.LeftToRight; flow.HSpacing = flow.VSpacing = 4; flow.AutoSize = Squid.AutoSize.Vertical; flow.Dock = DockStyle.Top; view.Controls.Add(flow); Refresh(); }
public DialogueFrameView(Control dialogueFrame) { dialogueFrame.Dock = DockStyle.Fill; this.Dock = DockStyle.Fill; this.Controls.Add(dialogueFrame); _dialogueFrame = dialogueFrame; _messageTextArea = (TextArea)dialogueFrame.GetControl("Content").GetControl("Message Body"); _titleLabel = (Label)dialogueFrame.GetControl("Top").GetControl("New Message"); _actionButtonsFrame = (FlowLayoutFrame)dialogueFrame.GetControl("Content").GetControl("Action Buttons"); _actionButtonsFrame.Controls.Clear(); Control imageFrame = dialogueFrame.GetControl("Clara"); _dialogueFrame.Visible = false; _messageTextArea.Animation.Custom(TextAnimation()); }
public Skillbook() { Resizable = true; Size = new Point(400, 300); Position = new Point(400, 200); Titlebar.Text = "Skills"; _view = new ScrollView(); _view.Dock = DockStyle.Fill; Controls.Add(_view); _flow = new FlowLayoutFrame(); _flow.FlowDirection = FlowDirection.LeftToRight; _flow.HSpacing = _flow.VSpacing = 4; _flow.AutoSize = AutoSize.Vertical; _flow.Dock = DockStyle.Top; _view.Controls.Add(_flow); Refresh(); }
public Skillbook() { Resizable = true; Size = new Point(400, 300); Position = new Point(400, 200); Titlebar.Text = "Skills"; view = new ScrollView(); view.Dock = DockStyle.Fill; Controls.Add(view); flow = new FlowLayoutFrame(); flow.FlowDirection = FlowDirection.LeftToRight; flow.HSpacing = flow.VSpacing = 4; flow.AutoSize = Squid.AutoSize.Vertical; flow.Dock = DockStyle.Top; view.Controls.Add(flow); Refresh(); }