public void CloseFlagModifier() { WhereFlagModifierOpened = new Point16(-1, -1); openedFlagModifier = null; FlagModifierUI.CloseUI(); Main.NewText("Closed Flag Modifier"); }
public override void Load() { instance = this; flagModifierUI = new FlagModifierUI(); flagModifierUI.Activate(); userInterface = new UserInterface(); userInterface.SetState(flagModifierUI); }
public void OpenFlagModifier(Point16 where, FlagModifier flagModifier) { if (player.talkNPC != -1 || player.sign != -1 || player.chest != -1) { player.talkNPC = player.sign = player.chest = -1; } WhereFlagModifierOpened = where; openedFlagModifier = flagModifier; FlagModifierUI.OpenUI(openedFlagModifier.currentFlag); Main.NewText("Opened flag modifier at " + where.X + ", " + where.Y); }