示例#1
0
        private void layer_ValueChanged(object sender, EventArgs e)
        {
            if (!canDetect)
            {
                return;
            }

            Tilemapper.AdjustLayer(tm.id, (int)layer.Value);
            Tilemapper.ConvertAndSetMap(tm);
        }
示例#2
0
        private void y_ValueChanged(object sender, EventArgs e)
        {
            if (!canDetect)
            {
                return;
            }

            tm.y = (int)y.Value;

            Tilemapper.ConvertAndSetMap(tm);
            Tilemapper.SetCurrentTile();
        }
示例#3
0
        private void collides_CheckedChanged(object sender, EventArgs e)
        {
            tm.collides = collides.Checked;

            if (tm.collides)
            {
                Tilemapper.ConvertAndSetMap(tm);
            }
            else
            {
                Engine.form.RefreshBrowser();
            }
        }
示例#4
0
        private void scale_ValueChanged(object sender, EventArgs e)
        {
            if (!canDetect)
            {
                return;
            }

            tm.scale = (int)scale.Value;

            if (Tilemapper.editing != -1)
            {
                Tilemapper.StopEditing();
                Tilemapper.BeginEditing(tm.id);
            }

            selected = default(Point);
            Tilemapper.ConvertAndSetMap(tm);
        }