Beispiel #1
0
        private void PB_Acre_MouseMove(object sender, MouseEventArgs e)
        {
            var l = Map.CurrentLayer;

            if (e.Button == MouseButtons.Left && CHK_MoveOnDrag.Checked)
            {
                MoveDrag(e);
                return;
            }
            if (e.Button == MouseButtons.Left && tbeForm?.brushSelected == true)
            {
                OmniTileTerrain(e);
            }

            var oldTile = l.GetTile(View.X + HoverX, View.Y + HoverY);
            var tile    = GetTile(l, e, out var x, out var y);

            if (ReferenceEquals(tile, oldTile))
            {
                return;
            }
            var str  = GameInfo.Strings;
            var name = str.GetItemName(tile);

            TT_Hover.SetToolTip(PB_Acre, name);
            SetCoordinateText(x, y);
        }
Beispiel #2
0
        private void PB_Acre_MouseMove(object sender, MouseEventArgs e)
        {
            var oldTile = Layer.GetTile(X + HoverX, Y + HoverY);
            var tile    = GetTile(Layer, e);

            if (tile == oldTile)
            {
                return;
            }
            var str  = GameInfo.Strings;
            var name = str.GetItemName(tile);

            TT_Hover.SetToolTip(PB_Acre, name);
        }
Beispiel #3
0
        private void PB_Acre_MouseMove(object sender, MouseEventArgs e)
        {
            var l       = Map.CurrentLayer;
            var oldTile = l.GetTile(View.X + HoverX, View.Y + HoverY);
            var tile    = GetTile(l, e, out var x, out var y);

            if (tile == oldTile)
            {
                return;
            }
            var str  = GameInfo.Strings;
            var name = str.GetItemName(tile);

            TT_Hover.SetToolTip(PB_Acre, name);
            SetCoordinateText(x, y);
        }
Beispiel #4
0
        private void PB_Room_MouseMove(object sender, MouseEventArgs e)
        {
            var l       = CurrentLayer;
            var oldTile = l.GetTile(HoverX, HoverY);
            var tile    = GetTile(l, e, out var x, out var y);

            if (ReferenceEquals(tile, oldTile))
            {
                return;
            }
            var str  = GameInfo.Strings;
            var name = str.GetItemName(tile);

            TT_Hover.SetToolTip(PB_Room, name);
            SetCoordinateText(x, y, name);
        }