예제 #1
0
            public HeightCutMenuItem(MapViewWindow owner, int height)
            {
                this.owner  = owner;
                this.height = height;

                //				this.Checked = ( height==owner.drawer.heightCutHeight );

                if (height == World.world.size.z - 1)
                {
                    this.Text = "None";
                    //! this.Text = "なし";
                }
                else
                {
                    int h = height - World.world.waterLevel;
                    if (h == 0)
                    {
                        this.Text = "Water level";
                    }
                    //! if( h==0 )		this.Text = "地表";
                    else
                    {
                        this.Text = h.ToString();
                    }
                }
            }
예제 #2
0
        public HeightCutWindow(MapViewWindow mapView, QuarterViewDrawer drawer)
        {
            this.mapView = mapView;
            this.drawer  = drawer;
            InitializeComponent();

            trackBar.Minimum = 0;
            trackBar.Maximum = world.World.world.size.z - 1;
            trackBar.Value   = drawer.heightCutHeight;

            drawer.OnHeightCutChanged += new EventHandler(onHeightCutChange);
        }