Browse Source

[MoreLights] [2.0.3.8] even more colors

Zariteis 4 years ago
parent
commit
e1bc5868a1

BIN
MoreLights/Assets/cDarkOrangeLamp.png


BIN
MoreLights/Assets/cDarkPurpleLamp.png


BIN
MoreLights/Assets/cGreenLamp.png


BIN
MoreLights/Assets/cLightGreenLamp.png


BIN
MoreLights/Assets/cLightOrangeLamp.png


BIN
MoreLights/Assets/cOrangeLamp.png


BIN
MoreLights/Assets/cPinkLamp.png


BIN
MoreLights/Assets/cPurpleLamp.png


BIN
MoreLights/Assets/cTurquoiseLamp.png


BIN
MoreLights/Assets/cWhiteLamp.png


BIN
MoreLights/Assets/cYellowLamp.png


BIN
MoreLights/Assets/iDarkOrangeLamp.png


BIN
MoreLights/Assets/iDarkPurpleLamp.png


BIN
MoreLights/Assets/iGreenLamp.png


BIN
MoreLights/Assets/iLightGreenLamp.png


BIN
MoreLights/Assets/iLightOrangeLamp.png


BIN
MoreLights/Assets/iOrangeLamp.png


BIN
MoreLights/Assets/iPinkLamp.png


BIN
MoreLights/Assets/iPurpleLamp.png


BIN
MoreLights/Assets/iTurquoiseLamp.png


BIN
MoreLights/Assets/iWhiteLamp.png


BIN
MoreLights/Assets/iYellowLamp.png


+ 1 - 6
MoreLights/Core.cs

@@ -4,12 +4,7 @@ namespace MoreLights
 {
 {
   internal static class Core
   internal static class Core
   {
   {
-    public static int itemGreenLampId = -1;
-    public static int itemYellowLampId = -1;
-    public static int itemPurpleLampId = -1;
-    public static int itemOrangeLampId = -1;
-
-    public static int itemWhiteLampId = -1;
+    public static int[] itemIDs;
 
 
     public static GadgetLogger logger;
     public static GadgetLogger logger;
   }
   }

+ 29 - 11
MoreLights/MoreLights.cs

@@ -23,11 +23,21 @@ namespace MoreLights
       Logger.Log("More Lights v" + Info.Mod.Version);
       Logger.Log("More Lights v" + Info.Mod.Version);
       Core.logger = Logger;
       Core.logger = Logger;
 
 
-      Core.itemGreenLampId = ItemUtil.CreatePlacableLightItem("cGreenLamp.png", "iGreenLamp.png", "Green Light", new Color(0.1f, 0.6f, 0, 1));
-      Core.itemYellowLampId = ItemUtil.CreatePlacableLightItem("cYellowLamp.png", "iYellowLamp.png", "Yellow Light", new Color(0.9f, 0.75f, 0, 1));
-      Core.itemOrangeLampId = ItemUtil.CreatePlacableLightItem("cOrangeLamp.png", "iOrangeLamp.png", "Orange Light", new Color(0.7f, 0.15f, 0, 1));
-      Core.itemPurpleLampId = ItemUtil.CreatePlacableLightItem("cPurpleLamp.png", "iPurpleLamp.png", "Purple Light", new Color(0.5f, 0, 0.6f, 1));
-      Core.itemWhiteLampId = ItemUtil.CreatePlacableLightItem("cWhiteLamp.png", "iWhiteLamp.png", "White Light", new Color(0.8f, 0.8f, 0.8f, 1));
+      Core.itemIDs = new int[11];
+
+      Core.itemIDs[1] = ItemUtil.CreatePlacableLightItem("cTurquoiseLamp.png", "iTurquoiseLamp.png", "Turquoise Light", new Color(0f, 0.6f, 0.35f, 1));
+      Core.itemIDs[2] = ItemUtil.CreatePlacableLightItem("cGreenLamp.png", "iGreenLamp.png", "Green Light", new Color(0.1f, 0.6f, 0, 1));
+      Core.itemIDs[3] = ItemUtil.CreatePlacableLightItem("cLightGreenLamp.png", "iLightGreenLamp.png", "Light Green Light", new Color(0.28f, 0.4f, 0, 1));
+      Core.itemIDs[4] = ItemUtil.CreatePlacableLightItem("cYellowLamp.png", "iYellowLamp.png", "Yellow Light", new Color(0.9f, 0.75f, 0, 1));
+      Core.itemIDs[5] = ItemUtil.CreatePlacableLightItem("cLightOrangeLamp.png", "iLightOrangeLamp.png", "Light Orange Light", new Color(0.55f, 0.2f, 0, 1));
+      Core.itemIDs[6] = ItemUtil.CreatePlacableLightItem("cOrangeLamp.png", "iOrangeLamp.png", "Orange Light", new Color(0.65f, 0.15f, 0, 1));
+      Core.itemIDs[7] = ItemUtil.CreatePlacableLightItem("cDarkOrangeLamp.png", "iDarkOrangeLamp.png", "Dark Orange Light", new Color(0.63f, 0.08f, 0, 1));
+      Core.itemIDs[8] = ItemUtil.CreatePlacableLightItem("cPinkLamp.png", "iPinkLamp.png", "Pink Light", new Color(0.7f, 0, 0.3f, 1));
+      Core.itemIDs[9] = ItemUtil.CreatePlacableLightItem("cPurpleLamp.png", "iPurpleLamp.png", "Purple Light", new Color(0.5f, 0, 0.6f, 1));
+      Core.itemIDs[10] = ItemUtil.CreatePlacableLightItem("cDarkPurpleLamp.png", "iDarkPurpleLamp.png", "Dark Purple Light", new Color(0.28f, 0.0f, 0.7f, 1));
+
+      Core.itemIDs[0] = ItemUtil.CreatePlacableLightItem("cWhiteLamp.png", "iWhiteLamp.png", "White Light", new Color(0.8f, 0.8f, 0.8f, 1));
+
 
 
       foreach (var e in ShopPlatform.DefaultObjects.GetShopPlatformEntries())
       foreach (var e in ShopPlatform.DefaultObjects.GetShopPlatformEntries())
       {
       {
@@ -37,14 +47,22 @@ namespace MoreLights
         }
         }
       }
       }
 
 
-      var lightsPlatform = new ShopPlatform("Lights").Register();
-      lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(Core.itemWhiteLampId, 1000));
-      lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(Core.itemYellowLampId, 1000));
-      lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(Core.itemOrangeLampId, 1000));
+      var lightsPlatform = new ShopPlatform("Lights", spacingType: ShopPlatformSpacingType.Near).Register();
+
+      lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(Core.itemIDs[0], 1000));
+
+      lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(Core.itemIDs[3], 1000));
+      lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(Core.itemIDs[4], 1000));
+      lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(Core.itemIDs[5], 1000));
+      lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(Core.itemIDs[6], 1000));
+      lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(Core.itemIDs[7], 1000));
       lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(2402, 1000));
       lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(2402, 1000));
-      lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(Core.itemPurpleLampId, 1000));
+      lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(Core.itemIDs[8], 1000));
+      lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(Core.itemIDs[9], 1000));
+      lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(Core.itemIDs[10], 1000));
       lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(2401, 1000));
       lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(2401, 1000));
-      lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(Core.itemGreenLampId, 1000));
+      lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(Core.itemIDs[1], 1000));
+      lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(Core.itemIDs[2], 1000));
 
 
     }
     }
   }
   }

+ 39 - 0
MoreLights/MoreLights.csproj

@@ -100,21 +100,42 @@
     <Message Importance="High" Text="Mod Exported to $(GamePath)GadgetCore\Mods\$(AssemblyName)_v$(AssemblyFileVersion).zip" />
     <Message Importance="High" Text="Mod Exported to $(GamePath)GadgetCore\Mods\$(AssemblyName)_v$(AssemblyFileVersion).zip" />
   </Target>
   </Target>
   <ItemGroup>
   <ItemGroup>
+    <None Update="Assets\cDarkOrangeLamp.png">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
+    <None Update="Assets\cDarkPurpleLamp.png">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
     <None Update="Assets\cGreenLamp.png">
     <None Update="Assets\cGreenLamp.png">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
     </None>
     <None Update="Assets\charBG.png">
     <None Update="Assets\charBG.png">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
     </None>
+    <None Update="Assets\cLamp.png">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
+    <None Update="Assets\cLightGreenLamp.png">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
+    <None Update="Assets\cLightOrangeLamp.png">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
     <None Update="Assets\cOrangeLamp.png">
     <None Update="Assets\cOrangeLamp.png">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
     </None>
+    <None Update="Assets\cPinkLamp.png">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
     <None Update="Assets\cPlatform.png">
     <None Update="Assets\cPlatform.png">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
     </None>
     <None Update="Assets\cPurpleLamp.png">
     <None Update="Assets\cPurpleLamp.png">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
     </None>
+    <None Update="Assets\cTurquoiseLamp.png">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
     <None Update="Assets\cWhiteLamp.png">
     <None Update="Assets\cWhiteLamp.png">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
     </None>
@@ -127,6 +148,9 @@
     <None Update="Assets\iAirCore.png">
     <None Update="Assets\iAirCore.png">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
     </None>
+    <None Update="Assets\iTurquoiseLamp.png">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
     <None Update="Assets\iCore.png">
     <None Update="Assets\iCore.png">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
     </None>
@@ -139,15 +163,30 @@
     <None Update="Assets\iGreenLamp.png">
     <None Update="Assets\iGreenLamp.png">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
     </None>
+    <None Update="Assets\iLightGreenLamp.png">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
+    <None Update="Assets\iLightOrangeLamp.png">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
     <None Update="Assets\iOrangeLamp.png">
     <None Update="Assets\iOrangeLamp.png">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
     </None>
+    <None Update="Assets\iDarkOrangeLamp.png">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
     <None Update="Assets\iPlatform.png">
     <None Update="Assets\iPlatform.png">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
     </None>
+    <None Update="Assets\iDarkPurpleLamp.png">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
     <None Update="Assets\iPurpleLamp.png">
     <None Update="Assets\iPurpleLamp.png">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
     </None>
+    <None Update="Assets\iPinkLamp.png">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
     <None Update="Assets\iWaterCore.png">
     <None Update="Assets\iWaterCore.png">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
     </None>