Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit c0f6293

Browse files
committed
Switch to SpaceWarp 1.2.0
1 parent 10f19f7 commit c0f6293

File tree

3 files changed

+24
-21
lines changed

3 files changed

+24
-21
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 Micrologist
3+
Copyright (c) 2023 Micrologist, Falki-git
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

MicroEngineerProject/MicroEngineer/MicroEngineerMod.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,18 @@
88

99
namespace MicroMod
1010
{
11-
[BepInPlugin("com.micrologist.microengineer", "MicroEngineer", "1.0.3")]
12-
[BepInDependency(SpaceWarpPlugin.ModGuid, SpaceWarpPlugin.ModVer)]
13-
public class MicroEngineerMod : BaseSpaceWarpPlugin
11+
//[BepInPlugin(MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)]
12+
[BepInPlugin("com.micrologist.microengineer", "MicroEngineer", "1.1.0")]
13+
[BepInDependency(SpaceWarpPlugin.ModGuid, SpaceWarpPlugin.ModVer)]
14+
public class MicroEngineerMod : BaseSpaceWarpPlugin
1415
{
1516
public static MicroEngineerMod Instance { get; set; }
17+
public string GUID;
1618

1719
public override void OnInitialized()
1820
{
1921
Instance = this;
22+
GUID = Info.Metadata.GUID;
2023

2124
Styles.Initialize();
2225

@@ -28,7 +31,7 @@ public override void OnInitialized()
2831
Appbar.RegisterAppButton(
2932
"Micro Engineer",
3033
"BTN-MicroEngineerBtn",
31-
AssetManager.GetAsset<Texture2D>($"{SpaceWarpMetadata.ModID}/images/icon.png"),
34+
AssetManager.GetAsset<Texture2D>($"{GUID}/images/icon.png"),
3235
isOpen =>
3336
{
3437
UI.Instance.ShowGuiFlight = isOpen;
@@ -39,7 +42,7 @@ public override void OnInitialized()
3942
Appbar.RegisterOABAppButton(
4043
"Micro Engineer",
4144
"BTN-MicroEngineerOAB",
42-
AssetManager.GetAsset<Texture2D>($"{SpaceWarpMetadata.ModID}/images/icon.png"),
45+
AssetManager.GetAsset<Texture2D>($"{GUID}/images/icon.png"),
4346
isOpen =>
4447
{
4548
UI.Instance.ShowGuiOAB = isOpen;

MicroEngineerProject/MicroEngineer/Utilities/Styles.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -367,25 +367,25 @@ private static void InitializeTextures()
367367
{
368368
// Icons from https://icons8.com
369369

370-
Settings20Texture = LoadTexture($"{MicroEngineerMod.Instance.SpaceWarpMetadata.ModID}/images/settings-20.png");
371-
Settings15Texture = LoadTexture($"{MicroEngineerMod.Instance.SpaceWarpMetadata.ModID}/images/settings-15.png");
372-
CloseButtonTexture = LoadTexture($"{MicroEngineerMod.Instance.SpaceWarpMetadata.ModID}/images/close-15.png");
373-
PopoutTexture = LoadTexture($"{MicroEngineerMod.Instance.SpaceWarpMetadata.ModID}/images/popout-15.png");
370+
Settings20Texture = LoadTexture($"{MicroEngineerMod.Instance.GUID}/images/settings-20.png");
371+
Settings15Texture = LoadTexture($"{MicroEngineerMod.Instance.GUID}/images/settings-15.png");
372+
CloseButtonTexture = LoadTexture($"{MicroEngineerMod.Instance.GUID}/images/close-15.png");
373+
PopoutTexture = LoadTexture($"{MicroEngineerMod.Instance.GUID}/images/popout-15.png");
374374

375-
EntryBackgroundTexture_WhiteTheme_First = LoadTexture($"{MicroEngineerMod.Instance.SpaceWarpMetadata.ModID}/images/background_white_first.png");
376-
EntryBackgroundTexture_WhiteTheme_Middle = LoadTexture($"{MicroEngineerMod.Instance.SpaceWarpMetadata.ModID}/images/background_white_middle.png");
377-
EntryBackgroundTexture_WhiteTheme_Last = LoadTexture($"{MicroEngineerMod.Instance.SpaceWarpMetadata.ModID}/images/background_white_last.png");
375+
EntryBackgroundTexture_WhiteTheme_First = LoadTexture($"{MicroEngineerMod.Instance.GUID}/images/background_white_first.png");
376+
EntryBackgroundTexture_WhiteTheme_Middle = LoadTexture($"{MicroEngineerMod.Instance.GUID}/images/background_white_middle.png");
377+
EntryBackgroundTexture_WhiteTheme_Last = LoadTexture($"{MicroEngineerMod.Instance.GUID}/images/background_white_last.png");
378378

379-
EntryBackgroundTexture_GrayTheme_First = LoadTexture($"{MicroEngineerMod.Instance.SpaceWarpMetadata.ModID}/images/background_darkgray_first.png");
380-
EntryBackgroundTexture_GrayTheme_Middle = LoadTexture($"{MicroEngineerMod.Instance.SpaceWarpMetadata.ModID}/images/background_darkgray_middle.png");
381-
EntryBackgroundTexture_GrayTheme_Last = LoadTexture($"{MicroEngineerMod.Instance.SpaceWarpMetadata.ModID}/images/background_darkgray_last.png");
379+
EntryBackgroundTexture_GrayTheme_First = LoadTexture($"{MicroEngineerMod.Instance.GUID}/images/background_darkgray_first.png");
380+
EntryBackgroundTexture_GrayTheme_Middle = LoadTexture($"{MicroEngineerMod.Instance.GUID}/images/background_darkgray_middle.png");
381+
EntryBackgroundTexture_GrayTheme_Last = LoadTexture($"{MicroEngineerMod.Instance.GUID}/images/background_darkgray_last.png");
382382

383-
EntryBackgroundTexture_BlackTheme_First = LoadTexture($"{MicroEngineerMod.Instance.SpaceWarpMetadata.ModID}/images/background_black_first.png");
384-
EntryBackgroundTexture_BlackTheme_Middle = LoadTexture($"{MicroEngineerMod.Instance.SpaceWarpMetadata.ModID}/images/background_black_middle.png");
385-
EntryBackgroundTexture_BlackTheme_Last = LoadTexture($"{MicroEngineerMod.Instance.SpaceWarpMetadata.ModID}/images/background_black_last.png");
383+
EntryBackgroundTexture_BlackTheme_First = LoadTexture($"{MicroEngineerMod.Instance.GUID}/images/background_black_first.png");
384+
EntryBackgroundTexture_BlackTheme_Middle = LoadTexture($"{MicroEngineerMod.Instance.GUID}/images/background_black_middle.png");
385+
EntryBackgroundTexture_BlackTheme_Last = LoadTexture($"{MicroEngineerMod.Instance.GUID}/images/background_black_last.png");
386386

387-
IncreaseDecimalDigitsTexture = LoadTexture($"{MicroEngineerMod.Instance.SpaceWarpMetadata.ModID}/images/increase-decimal-19.png");
388-
DecreaseDecimalDigitsTexture = LoadTexture($"{MicroEngineerMod.Instance.SpaceWarpMetadata.ModID}/images/decrease-decimal-19.png");
387+
IncreaseDecimalDigitsTexture = LoadTexture($"{MicroEngineerMod.Instance.GUID}/images/increase-decimal-19.png");
388+
DecreaseDecimalDigitsTexture = LoadTexture($"{MicroEngineerMod.Instance.GUID}/images/decrease-decimal-19.png");
389389
}
390390

391391
private static Texture2D LoadTexture(string path)

0 commit comments

Comments
 (0)