Skip to content

Commit 35ed043

Browse files
author
Benjamin Foo
committed
Refactoring / updated UI and mod manager hotkey
1 parent 0acb5c0 commit 35ed043

6 files changed

Lines changed: 51 additions & 4 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ obj/
55
/packages/
66
riderModule.iml
77
/_ReSharper.Caches/
8+
9+
/ExperimentalMod
10+
/ExperimentalMod/
11+
/ExperimentalMod/*
12+
/ExperimentalMod/*/*
13+
/ExperimentalMod/*/*/*

AdditionalMapSizesPlugin/AdditionalMapSizesPlugin.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@ public void update(MonoBehaviour root)
3232

3333
public void start(MonoBehaviour root)
3434
{
35-
35+
add(create("16 x 16 - DEV", 16, 16, 16, 3));
3636
add(create("128 x 128", 128, 16, 128, 3));
3737
add(create("256 x 256", 256, 16, 256, 3));
3838
add(create("512 x 512", 512, 16, 512, 3));
39-
4039
}
4140

4241
public MapSize create(string name, int width, int height, int length, int blockHeight = 3)

CameraSettingsPlusPlusPlugin/CameraSettingsPlusPlus.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public class CameraSettingsPlusPlus : IPlugin
2323
public void initialize()
2424
{
2525
activeState = true;
26+
2627
}
2728

2829
public void start(MonoBehaviour root)
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System.Reflection;
2+
using System.Runtime.InteropServices;
3+
4+
// General Information about an assembly is controlled through the following
5+
// set of attributes. Change these attribute values to modify the information
6+
// associated with an assembly.
7+
[assembly: AssemblyTitle("ExperimentalMod")]
8+
[assembly: AssemblyDescription("")]
9+
[assembly: AssemblyConfiguration("")]
10+
[assembly: AssemblyCompany("")]
11+
[assembly: AssemblyProduct("ExperimentalMod")]
12+
[assembly: AssemblyCopyright("Copyright © 2021")]
13+
[assembly: AssemblyTrademark("")]
14+
[assembly: AssemblyCulture("")]
15+
16+
// Setting ComVisible to false makes the types in this assembly not visible
17+
// to COM components. If you need to access a type in this assembly from
18+
// COM, set the ComVisible attribute to true on that type.
19+
[assembly: ComVisible(false)]
20+
21+
// The following GUID is for the ID of the typelib if this project is exposed to COM
22+
[assembly: Guid("AFB3E9BE-3087-4033-8B07-E5F18D99A25F")]
23+
24+
// Version information for an assembly consists of the following four values:
25+
//
26+
// Major Version
27+
// Minor Version
28+
// Build Number
29+
// Revision
30+
//
31+
// You can specify all the values or you can default the Build and Revision Numbers
32+
// by using the '*' as shown below:
33+
// [assembly: AssemblyVersion("1.0.*")]
34+
[assembly: AssemblyVersion("1.0.0.0")]
35+
[assembly: AssemblyFileVersion("1.0.0.0")]

GoingMedievalModLauncher.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AdditionalMapSizesPlugin",
1212
EndProject
1313
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DummyPlugin", "DummyPlugin\DummyPlugin.csproj", "{7E2FAB97-5DB2-4683-A07D-3C35E5ED97C0}"
1414
EndProject
15+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExperimentalMod", "ExperimentalMod\ExperimentalMod.csproj", "{AFB3E9BE-3087-4033-8B07-E5F18D99A25F}"
16+
EndProject
1517
Global
1618
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1719
Debug|Any CPU = Debug|Any CPU
@@ -41,5 +43,9 @@ Global
4143
{7E2FAB97-5DB2-4683-A07D-3C35E5ED97C0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4244
{7E2FAB97-5DB2-4683-A07D-3C35E5ED97C0}.Release|Any CPU.ActiveCfg = Release|Any CPU
4345
{7E2FAB97-5DB2-4683-A07D-3C35E5ED97C0}.Release|Any CPU.Build.0 = Release|Any CPU
46+
{AFB3E9BE-3087-4033-8B07-E5F18D99A25F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
47+
{AFB3E9BE-3087-4033-8B07-E5F18D99A25F}.Debug|Any CPU.Build.0 = Debug|Any CPU
48+
{AFB3E9BE-3087-4033-8B07-E5F18D99A25F}.Release|Any CPU.ActiveCfg = Release|Any CPU
49+
{AFB3E9BE-3087-4033-8B07-E5F18D99A25F}.Release|Any CPU.Build.0 = Release|Any CPU
4450
EndGlobalSection
4551
EndGlobal

GoingMedievalModLauncher/src/ui/ModManagerWindow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void Start()
5454
private void Update()
5555
{
5656

57-
if (Input.GetKeyDown(KeyCode.F1))
57+
if (Input.GetKeyDown(KeyCode.F12))
5858
{
5959
// toggle the visibility via key-press
6060
shown = !shown;
@@ -89,7 +89,7 @@ public override void renderContent()
8989

9090
// Render a simple note for using the mod-loader manager
9191
Rect usageLabelRect = new Rect(150, 10, 250, 30);
92-
GUI.Label(usageLabelRect, "Toggle the Mod-Manager with F1.", bigFontSizeStyle);
92+
GUI.Label(usageLabelRect, "Toggle the Mod-Manager with F12.", bigFontSizeStyle);
9393

9494
// draw a line below the mod-log button and usage-note
9595
drawRect(new Rect(0, 40, windowRect.width , 2), lineColor );

0 commit comments

Comments
 (0)