Skip to content

Commit 159ae58

Browse files
authored
Merge pull request #4 from matthe815s-projects/visual-qol
Refactor: Full visual and quality of life overhaul
2 parents e827ca8 + 7bb5ddc commit 159ae58

14 files changed

+6510
-42
lines changed

Images/ItemIcon058.ico

4.19 KB
Binary file not shown.

Images/page1.png

73.1 KB
Loading

Images/page2.png

54.1 KB
Loading

Images/page3.png

42.5 KB
Loading

MHFQuestEditor.csproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,21 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13+
<Compile Update="Properties\Resources.Designer.cs">
14+
<DesignTime>True</DesignTime>
15+
<AutoGen>True</AutoGen>
16+
<DependentUpon>Resources.resx</DependentUpon>
17+
</Compile>
1318
<Compile Update="QuestEditor.cs">
1419
<SubType>Form</SubType>
1520
</Compile>
1621
</ItemGroup>
1722

23+
<ItemGroup>
24+
<EmbeddedResource Update="Properties\Resources.resx">
25+
<Generator>ResXFileCodeGenerator</Generator>
26+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
27+
</EmbeddedResource>
28+
</ItemGroup>
29+
1830
</Project>

Preview.Designer.cs

Lines changed: 248 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Preview.cs

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.ComponentModel;
4+
using System.Data;
5+
using System.Drawing;
6+
using System.Linq;
7+
using System.Text;
8+
using System.Threading.Tasks;
9+
using System.Windows.Forms;
10+
11+
namespace MHFQuestEditor
12+
{
13+
public partial class Preview : Form
14+
{
15+
public static Quest questReference;
16+
17+
public Preview(Quest quest)
18+
{
19+
Preview.questReference = quest;
20+
InitializeComponent();
21+
}
22+
23+
private void Preview_Load(object sender, EventArgs e)
24+
{
25+
label1.Text = Preview.questReference.title;
26+
label2.Text = Preview.questReference.mainObjective;
27+
label3.Text = Preview.questReference.title;
28+
label4.Text = Preview.questReference.title;
29+
label5.Text = Preview.questReference.questContractor;
30+
label6.Text = Preview.questReference.questDescription;
31+
label7.Text = Preview.questReference.clearConditions;
32+
label8.Text = Preview.questReference.failureConditions;
33+
label9.Text = Preview.questReference.subObjective1;
34+
label10.Text = Preview.questReference.subObjective2;
35+
36+
this.Text = String.Format("Previewing: {0}", questReference.title);
37+
}
38+
}
39+
}

0 commit comments

Comments
 (0)