diff options
| author | Michael <[email protected]> | 2017-01-08 14:50:03 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-01-08 14:50:03 -0500 |
| commit | 347bea3315d40405c6ed5a479c605ae983b530d4 (patch) | |
| tree | c2c9d4df765c30203fe051330952c1c5ad05f1bb /ShiftOS.WinForms/Applications | |
| parent | f46e6e8bbc84092b1f4a8a0ed1cce1ff4229c248 (diff) | |
| download | shiftos_thereturn-347bea3315d40405c6ed5a479c605ae983b530d4.tar.gz shiftos_thereturn-347bea3315d40405c6ed5a479c605ae983b530d4.tar.bz2 shiftos_thereturn-347bea3315d40405c6ed5a479c605ae983b530d4.zip | |
Murdered WPF and edited some legion stuff
Diffstat (limited to 'ShiftOS.WinForms/Applications')
| -rw-r--r-- | ShiftOS.WinForms/Applications/MUDControlCentre.Designer.cs | 632 | ||||
| -rw-r--r-- | ShiftOS.WinForms/Applications/MUDControlCentre.cs | 44 | ||||
| -rw-r--r-- | ShiftOS.WinForms/Applications/MUDControlCentre.resx | 7 |
3 files changed, 473 insertions, 210 deletions
diff --git a/ShiftOS.WinForms/Applications/MUDControlCentre.Designer.cs b/ShiftOS.WinForms/Applications/MUDControlCentre.Designer.cs index 780e82e..8938c27 100644 --- a/ShiftOS.WinForms/Applications/MUDControlCentre.Designer.cs +++ b/ShiftOS.WinForms/Applications/MUDControlCentre.Designer.cs @@ -52,6 +52,7 @@ namespace ShiftOS.WinForms.Applications /// </summary> private void InitializeComponent() { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MUDControlCentre)); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.youToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.profileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -63,52 +64,71 @@ namespace ShiftOS.WinForms.Applications this.tasksToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.currentTaskToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.browseJobsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.statusStrip1 = new System.Windows.Forms.StatusStrip(); - this.txtappstatus = new System.Windows.Forms.ToolStripStatusLabel(); - this.toolStripContainer1 = new System.Windows.Forms.ToolStripContainer(); - this.you_memos = new System.Windows.Forms.Panel(); - this.flmemos = new System.Windows.Forms.FlowLayoutPanel(); - this.label3 = new System.Windows.Forms.Label(); - this.you_systemstatus = new System.Windows.Forms.Panel(); - this.lblsysstatus = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); this.legionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.createLegionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.joinLegionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.myLegionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.statusStrip1 = new System.Windows.Forms.StatusStrip(); + this.txtappstatus = new System.Windows.Forms.ToolStripStatusLabel(); + this.toolStripContainer1 = new System.Windows.Forms.ToolStripContainer(); this.lgn_view = new System.Windows.Forms.Panel(); + this.pnllgnusers = new System.Windows.Forms.Panel(); + this.lvusers = new System.Windows.Forms.ListView(); + this.label4 = new System.Windows.Forms.Label(); + this.lbdescription = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); this.banner = new System.Windows.Forms.Panel(); - this.lblegiontitle = new System.Windows.Forms.Label(); - this.btnleavelegion = new System.Windows.Forms.Button(); this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); + this.btnleavelegion = new System.Windows.Forms.Button(); this.btnjoinlegion = new System.Windows.Forms.Button(); - this.label2 = new System.Windows.Forms.Label(); - this.lbdescription = new System.Windows.Forms.Label(); - this.pnllgnusers = new System.Windows.Forms.Panel(); - this.label4 = new System.Windows.Forms.Label(); - this.lvusers = new System.Windows.Forms.ListView(); + this.lblegiontitle = new System.Windows.Forms.Label(); this.lgn_join = new System.Windows.Forms.Panel(); + this.fllegionlist = new System.Windows.Forms.FlowLayoutPanel(); this.panel3 = new System.Windows.Forms.Panel(); this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.label8 = new System.Windows.Forms.Label(); - this.fllegionlist = new System.Windows.Forms.FlowLayoutPanel(); + this.you_memos = new System.Windows.Forms.Panel(); + this.flmemos = new System.Windows.Forms.FlowLayoutPanel(); + this.label3 = new System.Windows.Forms.Label(); + this.you_systemstatus = new System.Windows.Forms.Panel(); + this.lblsysstatus = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.lgn_create = new System.Windows.Forms.Panel(); + this.panel2 = new System.Windows.Forms.Panel(); + this.label5 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.panel4 = new System.Windows.Forms.Panel(); + this.flowLayoutPanel3 = new System.Windows.Forms.FlowLayoutPanel(); + this.button3 = new System.Windows.Forms.Button(); + this.label10 = new System.Windows.Forms.Label(); + this.txtnewlegionshortname = new System.Windows.Forms.TextBox(); + this.flowLayoutPanel4 = new System.Windows.Forms.FlowLayoutPanel(); + this.label9 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.txtnewlegiontitle = new System.Windows.Forms.TextBox(); + this.txtnewlegiondescription = new System.Windows.Forms.TextBox(); this.menuStrip1.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.toolStripContainer1.BottomToolStripPanel.SuspendLayout(); this.toolStripContainer1.ContentPanel.SuspendLayout(); this.toolStripContainer1.TopToolStripPanel.SuspendLayout(); this.toolStripContainer1.SuspendLayout(); - this.you_memos.SuspendLayout(); - this.you_systemstatus.SuspendLayout(); this.lgn_view.SuspendLayout(); + this.pnllgnusers.SuspendLayout(); this.banner.SuspendLayout(); this.flowLayoutPanel1.SuspendLayout(); - this.pnllgnusers.SuspendLayout(); this.lgn_join.SuspendLayout(); this.panel3.SuspendLayout(); this.flowLayoutPanel2.SuspendLayout(); + this.you_memos.SuspendLayout(); + this.you_systemstatus.SuspendLayout(); + this.lgn_create.SuspendLayout(); + this.panel2.SuspendLayout(); + this.panel4.SuspendLayout(); + this.flowLayoutPanel3.SuspendLayout(); + this.flowLayoutPanel4.SuspendLayout(); this.SuspendLayout(); // // menuStrip1 @@ -168,13 +188,13 @@ namespace ShiftOS.WinForms.Applications // browseToolStripMenuItem // this.browseToolStripMenuItem.Name = "browseToolStripMenuItem"; - this.browseToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.browseToolStripMenuItem.Size = new System.Drawing.Size(121, 22); this.browseToolStripMenuItem.Text = "Browse"; // // myShopToolStripMenuItem // this.myShopToolStripMenuItem.Name = "myShopToolStripMenuItem"; - this.myShopToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.myShopToolStripMenuItem.Size = new System.Drawing.Size(121, 22); this.myShopToolStripMenuItem.Text = "My Shop"; // // tasksToolStripMenuItem @@ -198,6 +218,37 @@ namespace ShiftOS.WinForms.Applications this.browseJobsToolStripMenuItem.Size = new System.Drawing.Size(138, 22); this.browseJobsToolStripMenuItem.Text = "Browse Jobs"; // + // legionsToolStripMenuItem + // + this.legionsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.createLegionToolStripMenuItem, + this.joinLegionToolStripMenuItem, + this.myLegionToolStripMenuItem}); + this.legionsToolStripMenuItem.Name = "legionsToolStripMenuItem"; + this.legionsToolStripMenuItem.Size = new System.Drawing.Size(60, 20); + this.legionsToolStripMenuItem.Text = "Legions"; + // + // createLegionToolStripMenuItem + // + this.createLegionToolStripMenuItem.Name = "createLegionToolStripMenuItem"; + this.createLegionToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.createLegionToolStripMenuItem.Text = "Create Legion"; + this.createLegionToolStripMenuItem.Click += new System.EventHandler(this.createLegionToolStripMenuItem_Click); + // + // joinLegionToolStripMenuItem + // + this.joinLegionToolStripMenuItem.Name = "joinLegionToolStripMenuItem"; + this.joinLegionToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.joinLegionToolStripMenuItem.Text = "Join Legion"; + this.joinLegionToolStripMenuItem.Click += new System.EventHandler(this.joinLegionToolStripMenuItem_Click); + // + // myLegionToolStripMenuItem + // + this.myLegionToolStripMenuItem.Name = "myLegionToolStripMenuItem"; + this.myLegionToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.myLegionToolStripMenuItem.Text = "My Legion"; + this.myLegionToolStripMenuItem.Click += new System.EventHandler(this.myLegionToolStripMenuItem_Click); + // // statusStrip1 // this.statusStrip1.Dock = System.Windows.Forms.DockStyle.None; @@ -224,6 +275,7 @@ namespace ShiftOS.WinForms.Applications // // toolStripContainer1.ContentPanel // + this.toolStripContainer1.ContentPanel.Controls.Add(this.lgn_create); this.toolStripContainer1.ContentPanel.Controls.Add(this.lgn_view); this.toolStripContainer1.ContentPanel.Controls.Add(this.lgn_join); this.toolStripContainer1.ContentPanel.Controls.Add(this.you_memos); @@ -240,104 +292,6 @@ namespace ShiftOS.WinForms.Applications // this.toolStripContainer1.TopToolStripPanel.Controls.Add(this.menuStrip1); // - // you_memos - // - this.you_memos.Controls.Add(this.flmemos); - this.you_memos.Controls.Add(this.label3); - this.you_memos.Dock = System.Windows.Forms.DockStyle.Fill; - this.you_memos.Location = new System.Drawing.Point(0, 0); - this.you_memos.Name = "you_memos"; - this.you_memos.Size = new System.Drawing.Size(756, 442); - this.you_memos.TabIndex = 1; - // - // flmemos - // - this.flmemos.Dock = System.Windows.Forms.DockStyle.Fill; - this.flmemos.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; - this.flmemos.Location = new System.Drawing.Point(0, 43); - this.flmemos.Name = "flmemos"; - this.flmemos.Padding = new System.Windows.Forms.Padding(15); - this.flmemos.Size = new System.Drawing.Size(756, 399); - this.flmemos.TabIndex = 1; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Dock = System.Windows.Forms.DockStyle.Top; - this.label3.Location = new System.Drawing.Point(0, 0); - this.label3.Margin = new System.Windows.Forms.Padding(15); - this.label3.Name = "label3"; - this.label3.Padding = new System.Windows.Forms.Padding(15); - this.label3.Size = new System.Drawing.Size(71, 43); - this.label3.TabIndex = 0; - this.label3.Tag = "header1"; - this.label3.Text = "Memos"; - // - // you_systemstatus - // - this.you_systemstatus.Controls.Add(this.lblsysstatus); - this.you_systemstatus.Controls.Add(this.label1); - this.you_systemstatus.Dock = System.Windows.Forms.DockStyle.Fill; - this.you_systemstatus.Location = new System.Drawing.Point(0, 0); - this.you_systemstatus.Name = "you_systemstatus"; - this.you_systemstatus.Size = new System.Drawing.Size(756, 442); - this.you_systemstatus.TabIndex = 0; - // - // lblsysstatus - // - this.lblsysstatus.Dock = System.Windows.Forms.DockStyle.Fill; - this.lblsysstatus.Location = new System.Drawing.Point(0, 43); - this.lblsysstatus.Name = "lblsysstatus"; - this.lblsysstatus.Padding = new System.Windows.Forms.Padding(15); - this.lblsysstatus.Size = new System.Drawing.Size(756, 399); - this.lblsysstatus.TabIndex = 1; - this.lblsysstatus.Text = "Username: {username}\r\nSystem name: {sysname}\r\n\r\nCodepoints: {cp}\r\nUpgrades: {boug" + - "ht}/{available}\r\n\r\nSystem version: {sysver}\r\n\r\nShared scripts: {scripts}\r\n\r\nCurr" + - "ent legion: {legionname}\r\nRole: {role}"; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Dock = System.Windows.Forms.DockStyle.Top; - this.label1.Location = new System.Drawing.Point(0, 0); - this.label1.Margin = new System.Windows.Forms.Padding(15); - this.label1.Name = "label1"; - this.label1.Padding = new System.Windows.Forms.Padding(15); - this.label1.Size = new System.Drawing.Size(56, 43); - this.label1.TabIndex = 0; - this.label1.Tag = "header1"; - this.label1.Text = "You"; - // - // legionsToolStripMenuItem - // - this.legionsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.createLegionToolStripMenuItem, - this.joinLegionToolStripMenuItem, - this.myLegionToolStripMenuItem}); - this.legionsToolStripMenuItem.Name = "legionsToolStripMenuItem"; - this.legionsToolStripMenuItem.Size = new System.Drawing.Size(60, 20); - this.legionsToolStripMenuItem.Text = "Legions"; - // - // createLegionToolStripMenuItem - // - this.createLegionToolStripMenuItem.Name = "createLegionToolStripMenuItem"; - this.createLegionToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.createLegionToolStripMenuItem.Text = "Create Legion"; - // - // joinLegionToolStripMenuItem - // - this.joinLegionToolStripMenuItem.Name = "joinLegionToolStripMenuItem"; - this.joinLegionToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.joinLegionToolStripMenuItem.Text = "Join Legion"; - this.joinLegionToolStripMenuItem.Click += new System.EventHandler(this.joinLegionToolStripMenuItem_Click); - // - // myLegionToolStripMenuItem - // - this.myLegionToolStripMenuItem.Name = "myLegionToolStripMenuItem"; - this.myLegionToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.myLegionToolStripMenuItem.Text = "My Legion"; - this.myLegionToolStripMenuItem.Click += new System.EventHandler(this.myLegionToolStripMenuItem_Click); - // // lgn_view // this.lgn_view.Controls.Add(this.pnllgnusers); @@ -350,6 +304,62 @@ namespace ShiftOS.WinForms.Applications this.lgn_view.Size = new System.Drawing.Size(756, 442); this.lgn_view.TabIndex = 2; // + // pnllgnusers + // + this.pnllgnusers.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.pnllgnusers.Controls.Add(this.lvusers); + this.pnllgnusers.Controls.Add(this.label4); + this.pnllgnusers.Location = new System.Drawing.Point(413, 130); + this.pnllgnusers.Name = "pnllgnusers"; + this.pnllgnusers.Size = new System.Drawing.Size(337, 286); + this.pnllgnusers.TabIndex = 3; + // + // lvusers + // + this.lvusers.Dock = System.Windows.Forms.DockStyle.Fill; + this.lvusers.FullRowSelect = true; + this.lvusers.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; + this.lvusers.HideSelection = false; + this.lvusers.Location = new System.Drawing.Point(0, 13); + this.lvusers.Name = "lvusers"; + this.lvusers.Size = new System.Drawing.Size(337, 273); + this.lvusers.TabIndex = 3; + this.lvusers.UseCompatibleStateImageBehavior = false; + this.lvusers.View = System.Windows.Forms.View.SmallIcon; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Dock = System.Windows.Forms.DockStyle.Top; + this.label4.Location = new System.Drawing.Point(0, 0); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(34, 13); + this.label4.TabIndex = 2; + this.label4.Tag = "header2"; + this.label4.Text = "Users"; + // + // lbdescription + // + this.lbdescription.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.lbdescription.Location = new System.Drawing.Point(24, 185); + this.lbdescription.Name = "lbdescription"; + this.lbdescription.Size = new System.Drawing.Size(354, 231); + this.lbdescription.TabIndex = 2; + this.lbdescription.Text = "This is the description of this multi-user domain legion. Keep it descriptive."; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(21, 130); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(60, 13); + this.label2.TabIndex = 1; + this.label2.Tag = "header2"; + this.label2.Text = "Description"; + // // banner // this.banner.BackColor = System.Drawing.Color.Blue; @@ -362,15 +372,19 @@ namespace ShiftOS.WinForms.Applications this.banner.TabIndex = 0; this.banner.Tag = "keepbg"; // - // lblegiontitle + // flowLayoutPanel1 // - this.lblegiontitle.AutoSize = true; - this.lblegiontitle.Location = new System.Drawing.Point(18, 30); - this.lblegiontitle.Name = "lblegiontitle"; - this.lblegiontitle.Size = new System.Drawing.Size(62, 13); - this.lblegiontitle.TabIndex = 0; - this.lblegiontitle.Tag = "header1 keepbg"; - this.lblegiontitle.Text = "Legion Title"; + this.flowLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.flowLayoutPanel1.AutoSize = true; + this.flowLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.flowLayoutPanel1.Controls.Add(this.btnleavelegion); + this.flowLayoutPanel1.Controls.Add(this.btnjoinlegion); + this.flowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; + this.flowLayoutPanel1.Location = new System.Drawing.Point(550, 68); + this.flowLayoutPanel1.Name = "flowLayoutPanel1"; + this.flowLayoutPanel1.Size = new System.Drawing.Size(203, 29); + this.flowLayoutPanel1.TabIndex = 2; + this.flowLayoutPanel1.Tag = "keepbg"; // // btnleavelegion // @@ -386,20 +400,6 @@ namespace ShiftOS.WinForms.Applications this.btnleavelegion.UseVisualStyleBackColor = true; this.btnleavelegion.Click += new System.EventHandler(this.btnleavelegion_Click); // - // flowLayoutPanel1 - // - this.flowLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.flowLayoutPanel1.AutoSize = true; - this.flowLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.flowLayoutPanel1.Controls.Add(this.btnleavelegion); - this.flowLayoutPanel1.Controls.Add(this.btnjoinlegion); - this.flowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; - this.flowLayoutPanel1.Location = new System.Drawing.Point(550, 68); - this.flowLayoutPanel1.Name = "flowLayoutPanel1"; - this.flowLayoutPanel1.Size = new System.Drawing.Size(203, 29); - this.flowLayoutPanel1.TabIndex = 2; - this.flowLayoutPanel1.Tag = "keepbg"; - // // btnjoinlegion // this.btnjoinlegion.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); @@ -414,61 +414,15 @@ namespace ShiftOS.WinForms.Applications this.btnjoinlegion.UseVisualStyleBackColor = true; this.btnjoinlegion.Click += new System.EventHandler(this.btnjoinlegion_Click); // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(21, 130); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(60, 13); - this.label2.TabIndex = 1; - this.label2.Tag = "header2"; - this.label2.Text = "Description"; - // - // lbdescription - // - this.lbdescription.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.lbdescription.Location = new System.Drawing.Point(24, 185); - this.lbdescription.Name = "lbdescription"; - this.lbdescription.Size = new System.Drawing.Size(354, 231); - this.lbdescription.TabIndex = 2; - this.lbdescription.Text = "This is the description of this multi-user domain legion. Keep it descriptive."; - // - // pnllgnusers - // - this.pnllgnusers.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Right))); - this.pnllgnusers.Controls.Add(this.lvusers); - this.pnllgnusers.Controls.Add(this.label4); - this.pnllgnusers.Location = new System.Drawing.Point(413, 130); - this.pnllgnusers.Name = "pnllgnusers"; - this.pnllgnusers.Size = new System.Drawing.Size(337, 286); - this.pnllgnusers.TabIndex = 3; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Dock = System.Windows.Forms.DockStyle.Top; - this.label4.Location = new System.Drawing.Point(0, 0); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(34, 13); - this.label4.TabIndex = 2; - this.label4.Tag = "header2"; - this.label4.Text = "Users"; - // - // lvusers + // lblegiontitle // - this.lvusers.Dock = System.Windows.Forms.DockStyle.Fill; - this.lvusers.FullRowSelect = true; - this.lvusers.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; - this.lvusers.HideSelection = false; - this.lvusers.Location = new System.Drawing.Point(0, 13); - this.lvusers.Name = "lvusers"; - this.lvusers.Size = new System.Drawing.Size(337, 273); - this.lvusers.TabIndex = 3; - this.lvusers.UseCompatibleStateImageBehavior = false; - this.lvusers.View = System.Windows.Forms.View.SmallIcon; + this.lblegiontitle.AutoSize = true; + this.lblegiontitle.Location = new System.Drawing.Point(18, 30); + this.lblegiontitle.Name = "lblegiontitle"; + this.lblegiontitle.Size = new System.Drawing.Size(62, 13); + this.lblegiontitle.TabIndex = 0; + this.lblegiontitle.Tag = "header1 keepbg"; + this.lblegiontitle.Text = "Legion Title"; // // lgn_join // @@ -480,6 +434,15 @@ namespace ShiftOS.WinForms.Applications this.lgn_join.Size = new System.Drawing.Size(756, 442); this.lgn_join.TabIndex = 3; // + // fllegionlist + // + this.fllegionlist.Dock = System.Windows.Forms.DockStyle.Fill; + this.fllegionlist.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; + this.fllegionlist.Location = new System.Drawing.Point(0, 100); + this.fllegionlist.Name = "fllegionlist"; + this.fllegionlist.Size = new System.Drawing.Size(756, 342); + this.fllegionlist.TabIndex = 1; + // // panel3 // this.panel3.BackColor = System.Drawing.Color.Blue; @@ -542,14 +505,240 @@ namespace ShiftOS.WinForms.Applications this.label8.Tag = "header1 keepbg"; this.label8.Text = "Join a Legion"; // - // fllegionlist + // you_memos // - this.fllegionlist.Dock = System.Windows.Forms.DockStyle.Fill; - this.fllegionlist.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; - this.fllegionlist.Location = new System.Drawing.Point(0, 100); - this.fllegionlist.Name = "fllegionlist"; - this.fllegionlist.Size = new System.Drawing.Size(756, 342); - this.fllegionlist.TabIndex = 1; + this.you_memos.Controls.Add(this.flmemos); + this.you_memos.Controls.Add(this.label3); + this.you_memos.Dock = System.Windows.Forms.DockStyle.Fill; + this.you_memos.Location = new System.Drawing.Point(0, 0); + this.you_memos.Name = "you_memos"; + this.you_memos.Size = new System.Drawing.Size(756, 442); + this.you_memos.TabIndex = 1; + // + // flmemos + // + this.flmemos.Dock = System.Windows.Forms.DockStyle.Fill; + this.flmemos.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; + this.flmemos.Location = new System.Drawing.Point(0, 43); + this.flmemos.Name = "flmemos"; + this.flmemos.Padding = new System.Windows.Forms.Padding(15); + this.flmemos.Size = new System.Drawing.Size(756, 399); + this.flmemos.TabIndex = 1; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Dock = System.Windows.Forms.DockStyle.Top; + this.label3.Location = new System.Drawing.Point(0, 0); + this.label3.Margin = new System.Windows.Forms.Padding(15); + this.label3.Name = "label3"; + this.label3.Padding = new System.Windows.Forms.Padding(15); + this.label3.Size = new System.Drawing.Size(71, 43); + this.label3.TabIndex = 0; + this.label3.Tag = "header1"; + this.label3.Text = "Memos"; + // + // you_systemstatus + // + this.you_systemstatus.Controls.Add(this.lblsysstatus); + this.you_systemstatus.Controls.Add(this.label1); + this.you_systemstatus.Dock = System.Windows.Forms.DockStyle.Fill; + this.you_systemstatus.Location = new System.Drawing.Point(0, 0); + this.you_systemstatus.Name = "you_systemstatus"; + this.you_systemstatus.Size = new System.Drawing.Size(756, 442); + this.you_systemstatus.TabIndex = 0; + // + // lblsysstatus + // + this.lblsysstatus.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblsysstatus.Location = new System.Drawing.Point(0, 43); + this.lblsysstatus.Name = "lblsysstatus"; + this.lblsysstatus.Padding = new System.Windows.Forms.Padding(15); + this.lblsysstatus.Size = new System.Drawing.Size(756, 399); + this.lblsysstatus.TabIndex = 1; + this.lblsysstatus.Text = "Username: {username}\r\nSystem name: {sysname}\r\n\r\nCodepoints: {cp}\r\nUpgrades: {boug" + + "ht}/{available}\r\n\r\nSystem version: {sysver}\r\n\r\nShared scripts: {scripts}\r\n\r\nCurr" + + "ent legion: {legionname}\r\nRole: {role}"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Dock = System.Windows.Forms.DockStyle.Top; + this.label1.Location = new System.Drawing.Point(0, 0); + this.label1.Margin = new System.Windows.Forms.Padding(15); + this.label1.Name = "label1"; + this.label1.Padding = new System.Windows.Forms.Padding(15); + this.label1.Size = new System.Drawing.Size(56, 43); + this.label1.TabIndex = 0; + this.label1.Tag = "header1"; + this.label1.Text = "You"; + // + // lgn_create + // + this.lgn_create.Controls.Add(this.txtnewlegiondescription); + this.lgn_create.Controls.Add(this.panel2); + this.lgn_create.Controls.Add(this.label7); + this.lgn_create.Controls.Add(this.panel4); + this.lgn_create.Dock = System.Windows.Forms.DockStyle.Fill; + this.lgn_create.Location = new System.Drawing.Point(0, 0); + this.lgn_create.Name = "lgn_create"; + this.lgn_create.Size = new System.Drawing.Size(756, 442); + this.lgn_create.TabIndex = 4; + // + // panel2 + // + this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.panel2.Controls.Add(this.label10); + this.panel2.Controls.Add(this.label5); + this.panel2.Location = new System.Drawing.Point(413, 130); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(337, 286); + this.panel2.TabIndex = 3; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Dock = System.Windows.Forms.DockStyle.Top; + this.label5.Location = new System.Drawing.Point(0, 0); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(61, 13); + this.label5.TabIndex = 2; + this.label5.Tag = "header2"; + this.label5.Text = "Instructions"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(21, 130); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(60, 13); + this.label7.TabIndex = 1; + this.label7.Tag = "header2"; + this.label7.Text = "Description"; + // + // panel4 + // + this.panel4.BackColor = System.Drawing.Color.Blue; + this.panel4.Controls.Add(this.flowLayoutPanel4); + this.panel4.Controls.Add(this.flowLayoutPanel3); + this.panel4.Dock = System.Windows.Forms.DockStyle.Top; + this.panel4.Location = new System.Drawing.Point(0, 0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(756, 100); + this.panel4.TabIndex = 0; + this.panel4.Tag = "keepbg"; + // + // flowLayoutPanel3 + // + this.flowLayoutPanel3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.flowLayoutPanel3.AutoSize = true; + this.flowLayoutPanel3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.flowLayoutPanel3.Controls.Add(this.button3); + this.flowLayoutPanel3.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; + this.flowLayoutPanel3.Location = new System.Drawing.Point(667, 68); + this.flowLayoutPanel3.Name = "flowLayoutPanel3"; + this.flowLayoutPanel3.Size = new System.Drawing.Size(86, 29); + this.flowLayoutPanel3.TabIndex = 2; + this.flowLayoutPanel3.Tag = "keepbg"; + // + // button3 + // + this.button3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.button3.AutoSize = true; + this.button3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.button3.Location = new System.Drawing.Point(3, 3); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(80, 23); + this.button3.TabIndex = 1; + this.button3.Tag = "keepbg"; + this.button3.Text = "Change color"; + this.button3.UseVisualStyleBackColor = true; + // + // label10 + // + this.label10.Dock = System.Windows.Forms.DockStyle.Fill; + this.label10.Location = new System.Drawing.Point(0, 13); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(337, 273); + this.label10.TabIndex = 3; + this.label10.Text = resources.GetString("label10.Text"); + // + // txtnewlegionshortname + // + this.txtnewlegionshortname.BackColor = System.Drawing.Color.Blue; + this.txtnewlegionshortname.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.txtnewlegionshortname.ForeColor = System.Drawing.Color.White; + this.txtnewlegionshortname.Location = new System.Drawing.Point(19, 3); + this.txtnewlegionshortname.MaxLength = 4; + this.txtnewlegionshortname.MinimumSize = new System.Drawing.Size(4, 13); + this.txtnewlegionshortname.Name = "txtnewlegionshortname"; + this.txtnewlegionshortname.Size = new System.Drawing.Size(36, 13); + this.txtnewlegionshortname.TabIndex = 3; + this.txtnewlegionshortname.Tag = "inheritbg inheritfg header1"; + this.txtnewlegionshortname.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.txtnewlegionshortname.TextChanged += new System.EventHandler(this.txtnewlegionshortname_TextChanged); + // + // flowLayoutPanel4 + // + this.flowLayoutPanel4.AutoSize = true; + this.flowLayoutPanel4.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.flowLayoutPanel4.Controls.Add(this.label9); + this.flowLayoutPanel4.Controls.Add(this.txtnewlegionshortname); + this.flowLayoutPanel4.Controls.Add(this.label11); + this.flowLayoutPanel4.Controls.Add(this.txtnewlegiontitle); + this.flowLayoutPanel4.Location = new System.Drawing.Point(27, 33); + this.flowLayoutPanel4.Name = "flowLayoutPanel4"; + this.flowLayoutPanel4.Size = new System.Drawing.Size(174, 19); + this.flowLayoutPanel4.TabIndex = 4; + this.flowLayoutPanel4.Tag = "keepbg"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(3, 0); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(10, 13); + this.label9.TabIndex = 4; + this.label9.Tag = "keepbg header1"; + this.label9.Text = "["; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(61, 0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(13, 13); + this.label11.TabIndex = 5; + this.label11.Tag = "keepbg header1"; + this.label11.Text = "] "; + // + // txtnewlegiontitle + // + this.txtnewlegiontitle.BackColor = System.Drawing.Color.Blue; + this.txtnewlegiontitle.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.txtnewlegiontitle.ForeColor = System.Drawing.Color.White; + this.txtnewlegiontitle.Location = new System.Drawing.Point(80, 3); + this.txtnewlegiontitle.MaxLength = 25; + this.txtnewlegiontitle.MinimumSize = new System.Drawing.Size(91, 13); + this.txtnewlegiontitle.Name = "txtnewlegiontitle"; + this.txtnewlegiontitle.Size = new System.Drawing.Size(91, 13); + this.txtnewlegiontitle.TabIndex = 6; + this.txtnewlegiontitle.Tag = "inheritbg inheritfg header1"; + this.txtnewlegiontitle.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.txtnewlegiontitle.TextChanged += new System.EventHandler(this.txtnewlegiontitle_TextChanged); + // + // txtnewlegiondescription + // + this.txtnewlegiondescription.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtnewlegiondescription.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.txtnewlegiondescription.Location = new System.Drawing.Point(21, 176); + this.txtnewlegiondescription.Multiline = true; + this.txtnewlegiondescription.Name = "txtnewlegiondescription"; + this.txtnewlegiondescription.Size = new System.Drawing.Size(368, 240); + this.txtnewlegiondescription.TabIndex = 4; // // MUDControlCentre // @@ -559,7 +748,6 @@ namespace ShiftOS.WinForms.Applications this.Controls.Add(this.toolStripContainer1); this.ForeColor = System.Drawing.Color.White; this.Name = "MUDControlCentre"; - this.Text = "MUD Control Centre"; this.Size = new System.Drawing.Size(756, 488); this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); @@ -572,23 +760,33 @@ namespace ShiftOS.WinForms.Applications this.toolStripContainer1.TopToolStripPanel.PerformLayout(); this.toolStripContainer1.ResumeLayout(false); this.toolStripContainer1.PerformLayout(); - this.you_memos.ResumeLayout(false); - this.you_memos.PerformLayout(); - this.you_systemstatus.ResumeLayout(false); - this.you_systemstatus.PerformLayout(); this.lgn_view.ResumeLayout(false); this.lgn_view.PerformLayout(); + this.pnllgnusers.ResumeLayout(false); + this.pnllgnusers.PerformLayout(); this.banner.ResumeLayout(false); this.banner.PerformLayout(); this.flowLayoutPanel1.ResumeLayout(false); this.flowLayoutPanel1.PerformLayout(); - this.pnllgnusers.ResumeLayout(false); - this.pnllgnusers.PerformLayout(); this.lgn_join.ResumeLayout(false); this.panel3.ResumeLayout(false); this.panel3.PerformLayout(); this.flowLayoutPanel2.ResumeLayout(false); this.flowLayoutPanel2.PerformLayout(); + this.you_memos.ResumeLayout(false); + this.you_memos.PerformLayout(); + this.you_systemstatus.ResumeLayout(false); + this.you_systemstatus.PerformLayout(); + this.lgn_create.ResumeLayout(false); + this.lgn_create.PerformLayout(); + this.panel2.ResumeLayout(false); + this.panel2.PerformLayout(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + this.flowLayoutPanel3.ResumeLayout(false); + this.flowLayoutPanel3.PerformLayout(); + this.flowLayoutPanel4.ResumeLayout(false); + this.flowLayoutPanel4.PerformLayout(); this.ResumeLayout(false); } @@ -637,5 +835,19 @@ namespace ShiftOS.WinForms.Applications private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button2; private System.Windows.Forms.Label label8; + private System.Windows.Forms.Panel lgn_create; + private System.Windows.Forms.TextBox txtnewlegiondescription; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel4; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.TextBox txtnewlegionshortname; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.TextBox txtnewlegiontitle; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel3; + private System.Windows.Forms.Button button3; } } diff --git a/ShiftOS.WinForms/Applications/MUDControlCentre.cs b/ShiftOS.WinForms/Applications/MUDControlCentre.cs index aeb69ae..baf6c31 100644 --- a/ShiftOS.WinForms/Applications/MUDControlCentre.cs +++ b/ShiftOS.WinForms/Applications/MUDControlCentre.cs @@ -334,5 +334,49 @@ Current legions: {legionname}"; ServerManager.SendMessage("user_get_legion", JsonConvert.SerializeObject(SaveSystem.CurrentSave)); } + + Legion newLegion = null; + + private void createLegionToolStripMenuItem_Click(object sender, EventArgs e) + { + newLegion = new Legion(); + + SetupLegionEditor(newLegion); + } + + public void SetupLegionEditor(Legion l) + { + if (l.ShortName == null) + l.ShortName = "NAME"; + if (l.Name == null) + l.Name = "Legion name"; + if (l.Description == null) + l.Description = "This is your legion description."; + + txtnewlegionshortname.Text = l.ShortName; + txtnewlegiondescription.Text = l.Description; + txtnewlegiontitle.Text = l.Name; + + lgn_create.BringToFront(); + } + + private void txtnewlegionshortname_TextChanged(object sender, EventArgs e) + { + var g = txtnewlegionshortname.CreateGraphics(); + + SizeF sf = g.MeasureString(txtnewlegionshortname.Text, txtnewlegionshortname.Font); + + txtnewlegionshortname.Size = new Size((int)sf.Width, (int)sf.Height); + } + + private void txtnewlegiontitle_TextChanged(object sender, EventArgs e) + { + var g = txtnewlegiontitle.CreateGraphics(); + + SizeF sf = g.MeasureString(txtnewlegiontitle.Text, txtnewlegiontitle.Font); + + txtnewlegiontitle.Size = new Size((int)sf.Width, (int)sf.Height); + + } } } diff --git a/ShiftOS.WinForms/Applications/MUDControlCentre.resx b/ShiftOS.WinForms/Applications/MUDControlCentre.resx index f1d13d7..1cc31cf 100644 --- a/ShiftOS.WinForms/Applications/MUDControlCentre.resx +++ b/ShiftOS.WinForms/Applications/MUDControlCentre.resx @@ -123,4 +123,11 @@ <metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>132, 17</value> </metadata> + <data name="label10.Text" xml:space="preserve"> + <value>On this screen you can customize your legion profile. This is how users will see your legion inside the Join Legion screen. + +You can set up a banner color, short and long name, and a description on this screen. The shortname is used to identify your legion. The long name is a more descriptive name for your legion. + +The description will be what explains your legion - what does it do? Why should the user join it? Stuff like that.</value> + </data> </root>
\ No newline at end of file |
