コード例 #1
0
        public unsafe NMissionVariablesEditor(ArrayList toolwindows, GEditorWorld *world)
        {
            this.propWorld = world;
            this.InitializeComponent();
            Toolbar toolbar = new Toolbar((GToolbarItem *)(& < Module >.?items@?1 ???0NMissionVariablesEditor@NWorkshop@@Q$AAM@P$AAVArrayList@Collections@System@@PAVGEditorWorld@@@Z@4PAUGToolbarItem@NControls@@A), 24);

            this.tbMain              = toolbar;
            toolbar.Dock             = DockStyle.Top;
            this.tbMain.ButtonClick += new Toolbar.__Delegate_ButtonClick(this.tbMissionVariablesEditor_ButtonClick);
            base.Controls.Add(this.tbMain);
            PropertyTree propertyTree = new PropertyTree(2, NewAssetPicker.ObjectType.MissionVariablesEditor, null);

            this.MissionVarsPropTree = propertyTree;
            this.panel1.Controls.Add(propertyTree);
            this.MissionVarsPropTree.Dock = DockStyle.Fill;
            Point location = new Point(0, 0);

            this.MissionVarsPropTree.Location = location;
            this.MissionVarsPropTree.Name     = "MissionVarsPropTree";
            Size size = new Size(250, 435);

            this.MissionVarsPropTree.Size         = size;
            this.MissionVarsPropTree.TabIndex     = 0;
            this.MissionVarsPropTree.Text         = "MissionVarsPropTree";
            this.MissionVarsPropTree.ItemChanged += new PropertyTree.__Delegate_ItemChanged(this.MissionVarsPropTree_ItemChanged);
            this.ToolWindows = toolwindows;
            toolwindows.Add(this);
            this.tbMain.SetItemEnable(202, false);
            this.tbMain.SetItemEnable(203, false);
            this.tbMain.SetItemEnable(204, false);
            this.tbMain.SetItemEnable(205, false);
            this.tbMain.SetItemEnable(206, false);
            this.Modified = false;
            this.UpdateWindowText();
        }
コード例 #2
0
ファイル: Minimap.cs プロジェクト: stormregion/jtf_map_editor
        public unsafe Minimap()
        {
            this.MapNeedsRefresh = null;
            this.CameraMove      = null;
            this.CameraRotate    = null;
            this.MapScene        = null;
            this.LeftVPs         = new PointF[0];
            this.TopVPs          = new PointF[0];
            this.RightVPs        = new PointF[0];
            this.BottomVPs       = new PointF[0];
            this.Units           = new Minimap.UnitPoint[0];
            this.InitializeComponent();
            NSolidPanel nSolidPanel = new NSolidPanel();

            this.MapPanel      = nSolidPanel;
            nSolidPanel.Anchor = AnchorStyles.Top;
            Point location = new Point(0, 0);

            this.MapPanel.Location = location;
            this.MapPanel.Name     = "MapPanel";
            Size size = new Size(256, 256);

            this.MapPanel.Size       = size;
            this.MapPanel.TabIndex   = 0;
            this.MapPanel.MouseUp   += new MouseEventHandler(this.MapPanel_MouseUp);
            this.MapPanel.Paint     += new PaintEventHandler(this.MapPanel_Paint);
            this.MapPanel.MouseMove += new MouseEventHandler(this.MapPanel_MouseMove);
            this.MapPanel.MouseDown += new MouseEventHandler(this.MapPanel_MouseDown);
            base.Controls.Add(this.MapPanel);
            Size size2 = this.MapPanel.Size;

            this.Backbuffer = new Bitmap(this.MapPanel.Size.Width, size2.Height, PixelFormat.Format24bppRgb);
            Size size3 = this.MapPanel.Size;

            this.Map = new Bitmap(this.MapPanel.Size.Width, size3.Height, PixelFormat.Format24bppRgb);
            Toolbar toolbar = new Toolbar((GToolbarItem *)(& < Module >.?items@?1 ???0Minimap@NWorkshop@@Q$AAM@XZ@4PAUGToolbarItem@NControls@@A), 24);

            this.ConfigTools              = toolbar;
            toolbar.Dock                  = DockStyle.Bottom;
            this.ConfigTools.ButtonClick += new Toolbar.__Delegate_ButtonClick(this.ConfigTools_ButtonClick);
            Size size4 = new Size(base.Size.Width, 32);

            this.ConfigTools.Size = size4;
            base.Controls.Add(this.ConfigTools);
            this.AutoRefresh = false;
            this.ConfigTools.SetGroupEnable(1, true);
            this.CameraDrag      = false;
            this.CameraActive    = false;
            this.CamRotateActive = false;
            this.propWorld       = null;
        }
コード例 #3
0
        public unsafe ToolboxCurveEditor(int curvetype, int curveindex, GEditorWorld *world, GBaseString <char> *caption, float minvalue, float maxvalue)
        {
            this.propWorld   = world;
            this.CurveType   = curvetype;
            this.CurveIndex  = curveindex;
            this.FormCaption = caption;
            this.MinValue    = minvalue;
            this.MaxValue    = maxvalue;
            this.InitializeComponent();
            this.CreateCurveEditor();
            uint   num = (uint)(*(int *)this.FormCaption);
            sbyte *value;

            if (num != 0u)
            {
                value = num;
            }
            else
            {
                value = < Module >.?EmptyString@?$GBaseString@D@@1PBDB;
            }
            this.Text = new string((sbyte *)value);
        }
コード例 #4
0
        public unsafe ToolboxWeather()
        {
            this.ValueChanged   = null;
            this.World          = null;
            this.ListRefreshing = false;
            this.InitializeComponent();
            this.cpickerAmbient = new ColorPicker();
            Point location = new Point(10, 124);

            this.cpickerAmbient.Location      = location;
            this.cpickerAmbient.Name          = "cpickerAmbient";
            this.cpickerAmbient.TabIndex      = 0;
            this.cpickerAmbient.Font          = this.Font;
            this.cpickerAmbient.Text          = "Ambient";
            this.cpickerAmbient.ValueChanged += new ColorPicker.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.cpickerAmbient);
            this.cpickerSunColor = new ColorPicker();
            Point location2 = new Point(10, 260);

            this.cpickerSunColor.Location      = location2;
            this.cpickerSunColor.Name          = "cpickerSunColor";
            this.cpickerSunColor.TabIndex      = 0;
            this.cpickerSunColor.Font          = this.Font;
            this.cpickerSunColor.Text          = "Sunlight";
            this.cpickerSunColor.ValueChanged += new ColorPicker.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.cpickerSunColor);
            this.sliderSunDir = new SliderPanel(0, 360, 15);
            Point location3 = new Point(10, 386);

            this.sliderSunDir.Location      = location3;
            this.sliderSunDir.Name          = "sliderSunDir";
            this.sliderSunDir.TabIndex      = 0;
            this.sliderSunDir.Font          = this.Font;
            this.sliderSunDir.Text          = "Dir";
            this.sliderSunDir.ValueChanged += new SliderPanel.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.sliderSunDir);
            this.sliderSunElev = new SliderPanel(0, 90, 5);
            Point location4 = new Point(10, 414);

            this.sliderSunElev.Location      = location4;
            this.sliderSunElev.Name          = "sliderSunElev";
            this.sliderSunElev.TabIndex      = 0;
            this.sliderSunElev.Font          = this.Font;
            this.sliderSunElev.Text          = "Elev";
            this.sliderSunElev.ValueChanged += new SliderPanel.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.sliderSunElev);
            this.cpickerFogColor = new ColorPicker();
            Point location5 = new Point(10, 452);

            this.cpickerFogColor.Location      = location5;
            this.cpickerFogColor.Name          = "cpickerFogColor";
            this.cpickerFogColor.TabIndex      = 0;
            this.cpickerFogColor.Font          = this.Font;
            this.cpickerFogColor.Text          = "Fog";
            this.cpickerFogColor.ValueChanged += new ColorPicker.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.cpickerFogColor);
            this.sliderFogStart = new SliderPanel(0, 1000, 10);
            Point location6 = new Point(10, 578);

            this.sliderFogStart.Location      = location6;
            this.sliderFogStart.Name          = "sliderFogStart";
            this.sliderFogStart.TabIndex      = 0;
            this.sliderFogStart.Font          = this.Font;
            this.sliderFogStart.Text          = "Start";
            this.sliderFogStart.ValueChanged += new SliderPanel.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.sliderFogStart);
            this.sliderFogEnd = new SliderPanel(0, 1000, 10);
            Point location7 = new Point(10, 606);

            this.sliderFogEnd.Location      = location7;
            this.sliderFogEnd.Name          = "sliderFogEnd";
            this.sliderFogEnd.TabIndex      = 0;
            this.sliderFogEnd.Font          = this.Font;
            this.sliderFogEnd.Text          = "End";
            this.sliderFogEnd.ValueChanged += new SliderPanel.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.sliderFogEnd);
            this.sliderFogStartVal = new SliderPanel(0, 100, 10);
            Point location8 = new Point(10, 634);

            this.sliderFogStartVal.Location      = location8;
            this.sliderFogStartVal.Name          = "sliderFogStartVal";
            this.sliderFogStartVal.TabIndex      = 0;
            this.sliderFogStartVal.Font          = this.Font;
            this.sliderFogStartVal.Text          = "StartVal";
            this.sliderFogStartVal.ValueChanged += new SliderPanel.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.sliderFogStartVal);
            this.sliderFogEndVal = new SliderPanel(0, 100, 10);
            Point location9 = new Point(10, 662);

            this.sliderFogEndVal.Location      = location9;
            this.sliderFogEndVal.Name          = "sliderFogEndVal";
            this.sliderFogEndVal.TabIndex      = 0;
            this.sliderFogEndVal.Font          = this.Font;
            this.sliderFogEndVal.Text          = "EndVal";
            this.sliderFogEndVal.ValueChanged += new SliderPanel.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.sliderFogEndVal);
            this.sliderFogSkyBox = new SliderPanel(0, 100, 10);
            Point location10 = new Point(10, 690);

            this.sliderFogSkyBox.Location      = location10;
            this.sliderFogSkyBox.Name          = "sliderFogSkyBox";
            this.sliderFogSkyBox.TabIndex      = 0;
            this.sliderFogSkyBox.Font          = this.Font;
            this.sliderFogSkyBox.Text          = "SkyBox";
            this.sliderFogSkyBox.ValueChanged += new SliderPanel.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.sliderFogSkyBox);
            this.sliderDetectionMod = new SliderPanel(1, 100, 5);
            Point location11 = new Point(10, 734);

            this.sliderDetectionMod.Location      = location11;
            this.sliderDetectionMod.Name          = "sliderDetectionMod";
            this.sliderDetectionMod.TabIndex      = 0;
            this.sliderDetectionMod.Font          = this.Font;
            this.sliderDetectionMod.Text          = "DetectMod";
            this.sliderDetectionMod.ValueChanged += new SliderPanel.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.sliderDetectionMod);
            this.sliderWindDir = new SliderPanel(0, 360, 15);
            Point location12 = new Point(10, 762);

            this.sliderWindDir.Location      = location12;
            this.sliderWindDir.Name          = "sliderWindDir";
            this.sliderWindDir.TabIndex      = 0;
            this.sliderWindDir.Font          = this.Font;
            this.sliderWindDir.Text          = "Wind Dir";
            this.sliderWindDir.ValueChanged += new SliderPanel.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.sliderWindDir);
            this.sliderWindSpeed = new SliderPanel(0, 60, 5);
            Point location13 = new Point(10, 790);

            this.sliderWindSpeed.Location      = location13;
            this.sliderWindSpeed.Name          = "sliderWindSpeed";
            this.sliderWindSpeed.TabIndex      = 0;
            this.sliderWindSpeed.Font          = this.Font;
            this.sliderWindSpeed.Text          = "Wind Speed";
            this.sliderWindSpeed.ValueChanged += new SliderPanel.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.sliderWindSpeed);
            this.sliderWindRandom = new SliderPanel(0, 100, 5);
            Point location14 = new Point(10, 818);

            this.sliderWindRandom.Location      = location14;
            this.sliderWindRandom.Name          = "sliderWindRandom";
            this.sliderWindRandom.TabIndex      = 0;
            this.sliderWindRandom.Font          = this.Font;
            this.sliderWindRandom.Text          = "Wind Random";
            this.sliderWindRandom.ValueChanged += new SliderPanel.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.sliderWindRandom);
            this.sliderRain = new SliderPanel(0, 400, 20);
            Point location15 = new Point(10, 854);

            this.sliderRain.Location      = location15;
            this.sliderRain.Name          = "sliderRain";
            this.sliderRain.TabIndex      = 0;
            this.sliderRain.Font          = this.Font;
            this.sliderRain.Text          = "Rain";
            this.sliderRain.ValueChanged += new SliderPanel.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.sliderRain);
            this.sliderThunder = new SliderPanel(0, 400, 20);
            Point location16 = new Point(10, 882);

            this.sliderThunder.Location      = location16;
            this.sliderThunder.Name          = "sliderThunder";
            this.sliderThunder.TabIndex      = 0;
            this.sliderThunder.Font          = this.Font;
            this.sliderThunder.Text          = "Thunder";
            this.sliderThunder.ValueChanged += new SliderPanel.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.sliderThunder);
            this.sliderSnow = new SliderPanel(0, 1200, 20);
            Point location17 = new Point(10, 910);

            this.sliderSnow.Location      = location17;
            this.sliderSnow.Name          = "sliderSnow";
            this.sliderSnow.TabIndex      = 0;
            this.sliderSnow.Font          = this.Font;
            this.sliderSnow.Text          = "Snow";
            this.sliderSnow.ValueChanged += new SliderPanel.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.sliderSnow);
            this.sliderClouds = new SliderPanel(0, 400, 20);
            Point location18 = new Point(10, 938);

            this.sliderClouds.Location      = location18;
            this.sliderClouds.Name          = "sliderClouds";
            this.sliderClouds.TabIndex      = 0;
            this.sliderClouds.Font          = this.Font;
            this.sliderClouds.Text          = "Clouds";
            this.sliderClouds.ValueChanged += new SliderPanel.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.sliderClouds);
            this.sliderSandstorm = new SliderPanel(0, 100, 5);
            Point location19 = new Point(10, 966);

            this.sliderSandstorm.Location      = location19;
            this.sliderSandstorm.Name          = "sliderSandstorm";
            this.sliderSandstorm.TabIndex      = 0;
            this.sliderSandstorm.Font          = this.Font;
            this.sliderSandstorm.Text          = "Sandstorm";
            this.sliderSandstorm.ValueChanged += new SliderPanel.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.sliderSandstorm);
            this.sliderSandstormSize = new SliderPanel(0, 20, 1);
            Point location20 = new Point(10, 994);

            this.sliderSandstormSize.Location      = location20;
            this.sliderSandstormSize.Name          = "sliderSandstormSize";
            this.sliderSandstormSize.TabIndex      = 0;
            this.sliderSandstormSize.Font          = this.Font;
            this.sliderSandstormSize.Text          = "Sandstorm Size";
            this.sliderSandstormSize.ValueChanged += new SliderPanel.__Delegate_ValueChanged(this.OnValueChanged);
            base.Controls.Add(this.sliderSandstormSize);
            Point location21 = new Point(this.SkyboxBtn.Location.X, 1030);

            this.SkyboxBtn.Location = location21;
            Point location22 = new Point(this.ResetSkyBtn.Location.X, 1030);

            this.ResetSkyBtn.Location = location22;
            Point location23 = new Point(this.EnvBtn.Location.X, 1054);

            this.EnvBtn.Location = location23;
            Point location24 = new Point(this.ResetEnvBtn.Location.X, 1054);

            this.ResetEnvBtn.Location = location24;
            Point location25 = new Point(this.CloudBtn.Location.X, 1078);

            this.CloudBtn.Location = location25;
            Point location26 = new Point(this.ResetCloudBtn.Location.X, 1078);

            this.ResetCloudBtn.Location = location26;
            Toolbar toolbar = new Toolbar((GToolbarItem *)(& < Module >.?items@?1 ???0ToolboxWeather@NWorkshop@@Q$AAM@XZ@4PAUGToolbarItem@NControls@@A), 24);

            this.Tools              = toolbar;
            toolbar.Dock            = DockStyle.Top;
            this.Tools.ButtonClick += new Toolbar.__Delegate_ButtonClick(this.tools_ButtonClick);
            Size size  = base.Size;
            Size size2 = new Size(base.Size.Width, size.Height);

            this.Tools.Size = size2;
            base.Controls.Add(this.Tools);
            Size size3 = new Size(base.Size.Width, 1106);

            base.Size = size3;
        }
コード例 #5
0
 public unsafe void Refresh(GEditorWorld *world)
 {
     this.World = world;
     this.RefreshList();
     this.RefreshGUI();
 }