Ejemplo n.º 1
0
        private void rerange01To0515ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            List <Area> sel = AreaMapComponent.GetEditSelection();

            foreach (Area area in sel)
            {
                if (area.ValueMinY == 0 && area.ValueMaxY == 1)
                {
                    area.ValueMinY = -0.5f;
                    area.ValueMaxY = 1.5f;

                    area.ValueSuggestedMinY = 0f;
                    area.ValueSuggestedMaxY = 1f;

                    area.ValueMultiplyY = .5f;


                    //Here, 15f is set because the original height of the control is 60px, must be relative...
                    area.ImgPosition = new Vector2(area.ImgPosition.X, area.ImgPosition.Y + 15f);

                    area.RefCenter = new Vector2(area.RefCenter.X, area.RefCenter.Y - 15f);

                    area.Reset();
                }
            }

            AreaMapComponent.Invalidate();
        }
Ejemplo n.º 2
0
        private void sendToBackToolStripMenuItem_Click(object sender, EventArgs e)
        {
            List <Area> areas = AreaMapComponent.GetEditSelection();

            foreach (Area area in areas)
            {
                AreaMapComponent.CurrentAreaMap.Areas.Remove(area);
                AreaMapComponent.CurrentAreaMap.Areas.Add(area);
            }

            RefreshListBox();
        }
Ejemplo n.º 3
0
        private void metaDataTB_TextChanged(object sender, EventArgs e)
        {
            if (!_muteEvents)
            {
                _muteEvents = true;
                List <Area> areas = AreaMapComponent.GetEditSelection();
                foreach (Area area in areas)
                {
                    area.MetaData = metaDataTB.Text;
                }

                RefreshPropGrid();
                _muteEvents = false;
            }
        }