public void Unload() { Instance = null; multiWandWheel = null; autoHammerWheel = null; paintWheel = null; fillWandSelection = null; mirrorWandSelection = null; shapesDrawerSelection = null; rectangleShape = null; ellipseShape = null; bezierCurve = null; }
public override bool CanUseItem(Player player) { if (player.whoAmI != Main.myPlayer) { return(true); } AutoHammerWheel panel = UIStateLogic1.autoHammerWheel; if (canHammerTiles && panel.selectedIndex != -1) { HelperMethods.ChangeSlope(panel.selectedIndex); return(false); } return(true); }
public override void OnInitialize() { Instance = this; multiWandWheel = new MultiWandWheel(); Instance.Append(multiWandWheel); multiWandWheel.Hide(); autoHammerWheel = new AutoHammerWheel(); Instance.Append(autoHammerWheel); autoHammerWheel.Hide(); paintWheel = new PaintWheel(); Instance.Append(paintWheel); paintWheel.Hide(); fillWandSelection = new FillWandSelection(); Instance.Append(fillWandSelection); fillWandSelection.Hide(); mirrorWandSelection = new MirrorWandSelection(); Instance.Append(mirrorWandSelection); mirrorWandSelection.Show(); shapesDrawerSelection = new ShapesDrawerSelection(); Instance.Append(shapesDrawerSelection); shapesDrawerSelection.Show(); rectangleShape = new RectangleShape(); Instance.Append(rectangleShape); rectangleShape.Show(); ellipseShape = new EllipseShape(); Instance.Append(ellipseShape); ellipseShape.Show(); bezierCurve = new BezierCurve(); Instance.Append(bezierCurve); bezierCurve.Show(); }