private void pcb_MouseMove(object sender, MouseEventArgs e) { int HoverX = e.X / 16; int HoverY = e.Y / 16; int off = vScrollBar1.Value * 0x100; HoverTile = off + (HoverY * 16) + HoverX; toolStripStatusLabel1.Text = $"Tile: {HoverTile.ToString("X3")}"; }
//called when the current selected unit has a host - used to validate tiles override public bool UpdateValidatedTiles() { if (HoverTile) { GM.TileMan.Validate(HoverTile, 3, 999, false); } if (HoverTile) { HoverTile.Validate(); } return(true); }
//called when the current selected unit has a host - used to validate tiles override public bool UpdateValidatedTiles() { if (HoverTile == null) { return(true); } GM.TileMan.Validate(HoverTile, DIST, 999, false); HoverTile.Validate(); return(true); }
//called when the current selected unit has a host - used to validate tiles override public bool UpdateValidatedTiles() { if (HoverTile) { GM.TileMan.Validate(HoverTile, 5, 5, new TileManager.validater(validaterNormalize)); } if (HoverTile) { HoverTile.Validate(); } return(true); }
//called when the current selected unit has a host - used to validate tiles override public bool UpdateValidatedTiles() { if (explosion) { return(true); } if (HoverTile) { GM.TileMan.Validate(HoverTile, 1, 2, false); } if (HoverTile) { HoverTile.Validate(); } return(true); }
void Awake() { Instance = this; }
public override void Do() { HoverTile.incHeight(HDELTA); }
public virtual void Do() { HoverTile.Dig(HDELTA, false); }