MoreLights.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. using UnityEngine;
  2. using GadgetCore.API;
  3. using GadgetCore.API.ConfigMenu;
  4. namespace MoreLights
  5. {
  6. [Gadget("MoreLights", LoadAfter: new string[] { "ItemFrames" })]
  7. public class MoreLights : Gadget<MoreLights>
  8. {
  9. public const string MOD_VERSION = "1.1"; // Set this to the version of your mod.
  10. public const string CONFIG_VERSION = "1.0"; // Increment this whenever you change your mod's config file.
  11. public override IGadgetConfigMenu GetConfigMenu() { return null; }
  12. public override string GetModDescription()
  13. {
  14. return "A mod that adds some more lights.";
  15. }
  16. protected override void Initialize()
  17. {
  18. Logger.Log("More Lights v" + Info.Mod.Version);
  19. Core.logger = Logger;
  20. Core.itemGreenLampId = ItemUtil.CreatePlacableLightItem("cGreenLamp.png", "iGreenLamp.png", "Green Light", new Color(0.1f, 0.6f, 0, 1));
  21. Core.itemYellowLampId = ItemUtil.CreatePlacableLightItem("cYellowLamp.png", "iYellowLamp.png", "Yellow Light", new Color(0.9f, 0.75f, 0, 1));
  22. Core.itemOrangeLampId = ItemUtil.CreatePlacableLightItem("cOrangeLamp.png", "iOrangeLamp.png", "Orange Light", new Color(0.7f, 0.15f, 0, 1));
  23. Core.itemPurpleLampId = ItemUtil.CreatePlacableLightItem("cPurpleLamp.png", "iPurpleLamp.png", "Purple Light", new Color(0.5f, 0, 0.6f, 1));
  24. Core.itemWhiteLampId = ItemUtil.CreatePlacableLightItem("cWhiteLamp.png", "iWhiteLamp.png", "White Light", new Color(0.8f, 0.8f, 0.8f, 1));
  25. }
  26. }
  27. }