Skip to content

Commit

Permalink
Merge pull request #3 from The-Architect01/dev
Browse files Browse the repository at this point in the history
Attained Minimal Viable Product
  • Loading branch information
grumpy-lions authored Jan 6, 2024
2 parents 0844f12 + f87067d commit 9290d48
Show file tree
Hide file tree
Showing 95 changed files with 19,276 additions and 785 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -360,4 +360,8 @@ MigrationBackup/
.ionide/

# Fody - auto-generated XML schema
FodyWeavers.xsd
FodyWeavers.xsd
*.pptx
/DDPlayerEngine/Data/CharacterExporter.cs
/DDPlayerEngine/Resources
/DDPlayerEngine/Cipher.cs
21 changes: 21 additions & 0 deletions DDPlayerEngine/App.config

Large diffs are not rendered by default.

362 changes: 362 additions & 0 deletions DDPlayerEngine/Custom Elements/BackgroundCustomization.Designer.cs

Large diffs are not rendered by default.

78 changes: 78 additions & 0 deletions DDPlayerEngine/Custom Elements/BackgroundCustomization.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
using System.Drawing;
using System.Linq;
using System.Windows.Forms;

using PlayerEngine.Data;

namespace PlayerEngine.Custom_Elements {
public partial class BackgroundCustomization : UserControl {
public BackgroundCustomization(Background Target) {
InitializeComponent();
foreach (Control c in Controls)
c.Font = new Font(RuntimeSettings.DefaultFont, 12, FontStyle.Regular);
Equipment.Font = new Font(RuntimeSettings.DefaultFont, 12, FontStyle.Regular);

label9.Font = new Font(RuntimeSettings.DefaultFont, 12, FontStyle.Bold);
label10.Font = new Font(RuntimeSettings.DefaultFont, 12, FontStyle.Bold);
label4.Font = new Font(RuntimeSettings.DefaultFont, 12, FontStyle.Bold);
label1.Font = new Font(RuntimeSettings.DefaultFont, 12, FontStyle.Bold);
label3.Font = new Font(RuntimeSettings.DefaultFont, 12, FontStyle.Bold);
label2.Font = new Font(RuntimeSettings.DefaultFont, 12, FontStyle.Bold);

PersonalityBox.Items.Clear();
IdealBox.Items.Clear();
BondBox.Items.Clear();
FlawBox.Items.Clear();

PersonalityBox.Items.AddRange(Target.Personality);
IdealBox.Items.AddRange(Target.Ideals);
BondBox.Items.AddRange(Target.Bonds);
FlawBox.Items.AddRange(Target.Flaws);

if (Target.Skills == null || Target.Skills.Length == 0) {
Skills.Controls.Add(new Label() { Text = "None", Size = new System.Drawing.Size(302, 21) });
} else {
foreach (var t in Target.Skills) {
if (t.Contains("Choose")) {
Skills.Controls.Add(new ComboBox() { Size = new System.Drawing.Size(302, 21) });
((ComboBox)Skills.Controls[Skills.Controls.Count - 1]).Items.AddRange(RuntimeSettings.EngineData.SKILLS);
} else {
Skills.Controls.Add(new Label() { Text = t, Size = new System.Drawing.Size(302, 21) });
}
}
}

if (Target.Languages == null || Target.Languages.Length == 0) {
LanguageBox1.Controls.Add(new Label() { Text = "None", Size = new System.Drawing.Size(302, 21) });
} else {
foreach (var t in Target.Languages) {
if (t.Contains("Choose")) {
LanguageBox1.Controls.Add(new ComboBox() { Size = new System.Drawing.Size(302, 21) });
((ComboBox)LanguageBox1.Controls[LanguageBox1.Controls.Count - 1]).Items.AddRange(RuntimeSettings.EngineData.LANGUAGES);
} else {
LanguageBox1.Controls.Add(new Label() { Text = t, Size = new System.Drawing.Size(302, 21) });
}
}
}

if (Target.Tools == null || Target.Tools.Length == 0) {
ToolBox1.Controls.Add(new Label() { Text = "None", Size = new System.Drawing.Size(302, 21) });
} else {
foreach(var t in Target.Tools) {
if (t.Contains("Choose")) {
ToolBox1.Controls.Add(new ComboBox() { Size = new System.Drawing.Size(302, 21) });
((ComboBox)ToolBox1.Controls[ToolBox1.Controls.Count - 1]).Items.AddRange(RuntimeSettings.EngineData.ARTISAN_TOOLS);
} else {
ToolBox1.Controls.Add(new Label() { Text = t, Size = new System.Drawing.Size(302, 21) });
}
}
}

foreach(string s in Target.Items) {
Equipment.Text += s + ", ";
}
Equipment.Text = Equipment.Text.Trim( ' ', ',');

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,4 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="ExportLocation.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9290d48

Please sign in to comment.