コード例 #1
0
        public override void Load()
        {
            ofDarkandBelow.ODABArmorHotKey = this.RegisterHotKey("Activate Set Bonus", "T");
            instance = this;
            inst     = this;

            ModTranslation text = CreateTranslation("SkeletronBronzeMessage");

            text.SetDefault("The enemies in the underground hold Bronze!");
            AddTranslation(text);

            Mod yabhb = ModLoader.GetMod("FKBossHealthBar");

            if (yabhb != null)
            {
                yabhb.Call("hbStart");
                yabhb.Call("hbSetTexture",
                           GetTexture("UI/PrimordialBarStart"),
                           GetTexture("UI/PrimordialBarMiddle"),
                           GetTexture("UI/PrimordialBarEnd"),
                           GetTexture("UI/oDaBBarFill"));
                yabhb.Call("hbSetBossHeadCentre", 79, 34);
                yabhb.Call("hbSetFillDecoOffset", 5);
                yabhb.Call("hbSetColours",
                           new Color(0.5f, 0f, 0.5f),   // 100%
                           new Color(0.75f, 0f, 0.25f), // 50%
                           new Color(1f, 0f, 0f));      // 0%
                yabhb.Call("hbFinishSingle", NPCType("EndlessMawHead"));

                yabhb.Call("hbStart");
                yabhb.Call("hbSetTexture",
                           GetTexture("UI/SunkenBarStart"),
                           GetTexture("UI/SunkenBarMiddle"),
                           GetTexture("UI/SunkenBarEnd"),
                           GetTexture("UI/oDaBBarFill"));
                yabhb.Call("hbSetBossHeadCentre", 3, 34);
                yabhb.Call("hbSetFillDecoOffset", 5);
                yabhb.Call("hbSetColours",
                           new Color(0f, 0.45f, 0.55f),   // 100%
                           new Color(0.25f, 0.3f, 0.45f), // 50%
                           new Color(1f, 0f, 0f));        // 0%
                yabhb.Call("hbFinishPhases",
                           NPCType("SunkenKing"),
                           NPCType("SunkenKingPhase2"));
            }
        }
コード例 #2
0
 public override void Unload()
 {
     ofDarkandBelow.ODABArmorHotKey = (ModHotKey)null;
     instance = null;
 }