Skip to content

Commit 53c3243

Browse files
committed
Minor Changes
1 parent ee0f758 commit 53c3243

File tree

7 files changed

+100
-9
lines changed

7 files changed

+100
-9
lines changed

demo/ReaLTaiizor.UI/ReaLTaiizor.UI/Form22.cs

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@ namespace ReaLTaiizor.UI
55
{
66
public partial class Form22 : Form
77
{
8-
public Form22()
8+
public Form22(bool State = false)
99
{
1010
InitializeComponent();
11-
parrotSplashScreen1.InitializeLoader(this);
11+
12+
if (!State)
13+
{
14+
parrotSplashScreen1.InitializeLoader(this);
15+
}
1216
}
1317

1418
private void ParrotColorPicker1_SelectedColorChanged(object sender, EventArgs e)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
using ReaLTaiizor.Controls;
2+
using ReaLTaiizor.UI.Helpers;
3+
using System;
4+
using System.Drawing;
5+
using System.Windows.Forms;
6+
using Panel = ReaLTaiizor.Controls.Panel;
7+
8+
namespace ReaLTaiizor.UI.Forms
9+
{
10+
public partial class FormManager : Form
11+
{
12+
public FormManager()
13+
{
14+
InitializeComponent();
15+
16+
MaximizeBox = false;
17+
Text = "Form Manager";
18+
Size = new Size(616, 520);
19+
BackColor = Color.FromArgb(42, 42, 42);
20+
FormBorderStyle = FormBorderStyle.FixedSingle;
21+
StartPosition = FormStartPosition.CenterScreen;
22+
23+
Panel buttonPanel = new()
24+
{
25+
AutoScroll = false,
26+
Dock = DockStyle.Fill,
27+
Padding = new Padding(0)
28+
};
29+
30+
FlowLayoutPanel flowLayout = new()
31+
{
32+
AutoScroll = false,
33+
WrapContents = true,
34+
Dock = DockStyle.Fill,
35+
Padding = new Padding(0)
36+
};
37+
38+
string[] formNames = {
39+
"Air", "Dungeon", "Dream", "Ribbon",
40+
"Space", "Thunder", "Sky", "Moon",
41+
"Alone", "Fox", "Forever", "Hope",
42+
"Lost", "Royal", "Material", "Night",
43+
"Metro", "Poison", "Crown", "Parrot",
44+
"Cyber", "Form1", "Form2"
45+
};
46+
47+
for (int i = 0; i < formNames.Length; i++)
48+
{
49+
ForeverButton btn = new()
50+
{
51+
Tag = formNames[i],
52+
Text = formNames[i],
53+
TextColor = Color.White,
54+
Margin = new Padding(10),
55+
Size = new Size(180, 40),
56+
BaseColor = Color.FromArgb(60, 60, 60)
57+
};
58+
59+
btn.Click += Button_Click;
60+
flowLayout.Controls.Add(btn);
61+
}
62+
63+
buttonPanel.Controls.Add(flowLayout);
64+
Controls.Add(buttonPanel);
65+
}
66+
67+
private void Button_Click(object sender, EventArgs e)
68+
{
69+
if (sender is ForeverButton btn)
70+
{
71+
Form newForm = FormHelper.Open(new[] { btn.Tag.ToString(), "Manager" });
72+
newForm.ShowDialog();
73+
}
74+
}
75+
76+
private void InitializeComponent()
77+
{
78+
this.SuspendLayout();
79+
this.Name = "FormManager";
80+
this.ClientSize = new Size(800, 600);
81+
this.AutoScaleMode = AutoScaleMode.Font;
82+
this.AutoScaleDimensions = new SizeF(7F, 15F);
83+
this.ResumeLayout(false);
84+
}
85+
}
86+
}

demo/ReaLTaiizor.UI/ReaLTaiizor.UI/Helpers/FormHelper.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Linq;
1+
using ReaLTaiizor.UI.Forms;
2+
using System.Linq;
23
using System.Windows.Forms;
34

45
namespace ReaLTaiizor.UI.Helpers
@@ -30,9 +31,9 @@ public static Form Open(string[] Arg)
3031
"19" or "form19" or "metro" => new Form19(),
3132
"20" or "form20" or "poison" => new Form20(),
3233
"21" or "form21" or "crown" => new Form21(),
33-
"22" or "form22" or "parrot" => new Form22(),
34+
"22" or "form22" or "parrot" => new Form22(Arg.Count() > 1),
3435
"23" or "form23" or "cyber" => new Form23(),
35-
_ => new Form17(),
36+
_ => new FormManager(),
3637
};
3738
}
3839
}

src/ReaLTaiizor/Controls/ControlBox/DungeonControlBox.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ namespace ReaLTaiizor.Controls
1313

1414
public class DungeonControlBox : Control
1515
{
16-
1716
#region Enums
1817

1918
public enum MouseState
@@ -24,6 +23,7 @@ public enum MouseState
2423
}
2524

2625
#endregion
26+
2727
#region MouseStates
2828
private MouseState State = MouseState.None;
2929
private int X;
@@ -103,6 +103,7 @@ protected override void OnMouseMove(MouseEventArgs e)
103103
Invalidate();
104104
}
105105
#endregion
106+
106107
#region Properties
107108

108109
private bool _DefaultLocation = true;

src/ReaLTaiizor/Controls/ControlBox/NightControlBox.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ protected override void OnMouseUp(MouseEventArgs e)
346346

347347
if (hover_close & e.Button == MouseButtons.Left)
348348
{
349-
Application.Exit();
349+
pf.Close();
350350
}
351351
}
352352

src/ReaLTaiizor/Controls/ControlBox/ThunderControlBox.cs

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ namespace ReaLTaiizor.Controls
1414

1515
public class ThunderControlBox : Control
1616
{
17-
1817
#region Properties
1918

2019
private bool _DefaultLocation = true;

src/ReaLTaiizor/ReaLTaiizor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// Creator: Taiizor
1414
// Website: www.vegalya.com
1515
// Created: 15.May.2019
16-
// Changed: 13.Dec.2024
16+
// Changed: 14.Dec.2024
1717
// Version: 3.8.1.2
1818
//
1919
// |---------DO-NOT-REMOVE---------|

0 commit comments

Comments
 (0)