public static void Start() { RuntimeObject.Init(); RigidBody.Init(); CollisionBody.Init(); CollisionSensor.Init(); TransportSurface.Init(); CollisionMaterial.Init(); HingeJoint.Init(); SlidingJoint.Init(); CylindricalJoint.Init(); FixedJoint.Init(); BallJoint.Init(); AngularLimit.Init(); LinearLimit.Init(); AngularSpring.Init(); LinearSpring.Init(); SpeedControl.Init(); PositionControl.Init(); BreakingConstraint.Init(); GearCoupling.Init(); CamCoupling.Init(); ElecCamCoupling.Init(); PreventCollision.Init(); ChangeMaterial.Init(); ComponentPart.Init(); SourceBehavior.Init(); SinkBehavior.Init(); GraphControl.Init(); ExternalConnection.Init(); SignalAdapter.Init(); Signal.Init(); ProxyObject.Init(); RuntimeParameters.Init(); }
private static CircleWindow PositionAdjustCircle( PositionAdjustToolSettingBase posSetting, PositionAdjustToolResultBase posResult, CircleWindow circle) { PositionControl positionAdjusted = ToolResultRender.GetPositionAdjusted(posSetting, posResult, (WindowShape)circle); return(new CircleWindow(positionAdjusted.sPoint.nX, positionAdjusted.sPoint.nY, (ushort)circle.Diameter)); }
private static RectangleWindow PositionAdjustRectangle( PositionAdjustToolSettingBase posSetting, PositionAdjustToolResultBase posResult, RectangleWindow rect) { PositionControl positionAdjusted = ToolResultRender.GetPositionAdjusted(posSetting, posResult, (WindowShape)rect); return(new RectangleWindow(positionAdjusted.sPoint.nX, positionAdjusted.sPoint.nY, (ushort)rect.Size.Width, (ushort)rect.Size.Height, positionAdjusted.nAngle)); }
// Start is called before the first frame update void Start() { posController = GetComponent <PositionControl>(); if (keypoints.Length > 0) { targetIndex = 0; } else { targetIndex = -1; } }
/// <summary> /// Gets infos about who controls the positions around a given position. /// </summary> public IEnumerable<PositionControl> ControlledPositionsAround(HexCoord position, int distance) { foreach(HexCoord neighbor in NeighborhoodRespectingBorders(position, distance)) { PositionControl control; if (!PositionControls.TryGetValue(neighbor, out control)) { control = new PositionControl(neighbor, HexBoard); PositionControls.Add(neighbor, control); } yield return control; } }
void Start() { dronePositionControl = GetComponent <PositionControl>(); dronePositionControl.controlYaw = true; handTarget = GameObject.CreatePrimitive(PrimitiveType.Cube); Destroy(handTarget.GetComponent <Collider>()); handTarget.name = "Hand Target"; handTarget.transform.localScale = 2.0f * SimulationData.DroneSize * Vector3.one; handRoomScaling.x = SimulationData.RoomDimensions.x / handReachCube.x; handRoomScaling.y = SimulationData.RoomDimensions.y / handReachCube.y; handRoomScaling.z = SimulationData.RoomDimensions.z / handReachCube.z; }
public void IncreasePositionControl(HexCoord position, int player) { // add a PositionControl for the now occupied position, if missing. PositionControl control; if (!PositionControls.TryGetValue(position, out control)) PositionControls.Add(position, control = new PositionControl(position, HexBoard)); control.TowerOfPlayer = player; // recalculate position controls foreach (var neighbor in ControlledPositionsAround(position, GameRuleSettings.Instance.Tower.ControlDistance)) { neighbor.IncreaseControl(player); } }
void RiskControlOnDrop(List <IInstrument> dl) { var dc = DataContext as RiskControlViewModel; var i = dl.FirstOrDefault(); if (i != null) { var tg = new PositionControl() { TargetInstrumentTicker = i.Ticker }; dc.PositionControlList.Add(tg); dc.TargetObject.PositionControlList.Add(tg); } }
private static void DrawPositionAdjustedVector( Graphics graphics, Color color, MultiWindowShape toolWindows, PositionControl description1) { ToolResultRender.DrawPositionAdjustedVector(graphics, color, toolWindows.ToolWindow1, description1); PositionControl description = new PositionControl(); short num1 = (short)(toolWindows.ToolWindow1.Center.X - (int)description1.sPoint.nX); short num2 = (short)(toolWindows.ToolWindow1.Center.Y - (int)description1.sPoint.nY); description.sPoint.nX = (short)(toolWindows.ToolWindow2.Center.X + (int)num1); description.sPoint.nY = (short)(toolWindows.ToolWindow2.Center.Y + (int)num2); description.nAngle = description1.nAngle; ToolResultRender.DrawPositionAdjustedVector(graphics, color, toolWindows.ToolWindow2, description); }
private static PositionControl GetPositionAdjusted( PositionAdjustToolSettingBase posSetting, PositionAdjustToolResultBase posResult, WindowShape shape) { PositionControl positionControl = new PositionControl(); int num1 = shape.Center.X - posSetting.ToolWindow.Center.X; int num2 = shape.Center.Y - posSetting.ToolWindow.Center.Y; int num3 = (int)posResult.Description.nAngle - posSetting.ToolWindow.Angle; double num4 = Math.Cos(Math.PI / 180.0 * (double)num3 / 10.0); double num5 = Math.Sin(Math.PI / 180.0 * (double)num3 / 10.0); positionControl.sPoint.nX = (short)(num4 * (double)num1 - num5 * (double)num2 + (double)posResult.Description.sPoint.nX); positionControl.sPoint.nY = (short)(num5 * (double)num1 + num4 * (double)num2 + (double)posResult.Description.sPoint.nY); positionControl.nAngle = (short)(shape.Angle + num3); return(positionControl); }
/** * Apply the given tool to the given GameObject. */ private void SetupToolOnObj(GameObject obj, Tool tool) { switch (tool) { case Tool.ADD: case Tool.REMOVE: toolObj = Instantiate(toolPrefab); break; case Tool.POSITION: if (selectedObj != null) { toolObj = Instantiate(toolPrefab, obj.transform.position, Quaternion.identity); PositionControl positionControl = toolObj.GetComponent <PositionControl>(); positionControl.LinkObject(selectedObj); } break; case Tool.ROTATION: if (selectedObj != null) { toolObj = Instantiate(toolPrefab, obj.transform.position, obj.transform.rotation); RotationControl rotationControl = toolObj.GetComponent <RotationControl>(); rotationControl.LinkObject(selectedObj); } break; case Tool.SCALE: if (selectedObj != null) { toolObj = Instantiate(toolPrefab, obj.transform.position, obj.transform.rotation); ScaleControl scaleControl = toolObj.GetComponent <ScaleControl>(); scaleControl.LinkObject(selectedObj); } break; case Tool.TEXT: if (selectedObj != null) { labelPanel.SetActive(true); } break; } }
public void OpenChest() { ani.setAnimation("OpenChest"); Reward reward = Data.getRandomReward(); if (reward == null) { Debug.Log("Reward is Null"); return; } reward = Instantiate(reward, transform.position, Quaternion.identity); if (flyup != null) { flyup.Play(); } PositionControl pct = reward.gameObject.AddComponent <PositionControl>(); pct.SetUp(reward.transform.position, reward.transform.position + new Vector3(0, 0.4f, 0), 0.5f); pct.StartAnimation(); }
void Start() { dronePositionControl = GetComponent <PositionControl>(); droneVelocityControl = GetComponent <VelocityControl>(); dronePositionControl.controlYaw = false; // This one is optional, thus cameraPosition can be null cameraPosition = GetComponent <DroneCamera>(); cameraViewRotation = 0.0f; if (cameraPosition != null) { cameraViewRotation = cameraPosition.transform.eulerAngles.y; oldCameraViewRotation = cameraViewRotation; } // Instantiate hand target handTarget = new GameObject("Hand Target"); handTarget.transform.localScale = 2.0f * SimulationData.DroneSize * Vector3.one; handTarget.transform.position = dronePositionControl.transform.position; }
private static void DrawPositionAdjustedVector( Graphics graphics, Color color, WindowShape toolWindow, PositionControl description) { WindowShape toolWindow1 = (WindowShape)null; RectangleWindow rectangleWindow = toolWindow as RectangleWindow; if (rectangleWindow != null) { toolWindow1 = (WindowShape) new RectangleWindow(description.sPoint.nX, description.sPoint.nY, (ushort)rectangleWindow.Size.Width, (ushort)rectangleWindow.Size.Height, (short)((int)description.nAngle + toolWindow.Angle)); } CircleWindow circleWindow = toolWindow as CircleWindow; if (circleWindow != null) { toolWindow1 = (WindowShape) new CircleWindow(description.sPoint.nX, description.sPoint.nY, (ushort)circleWindow.Diameter); } ToolResultRender.DrawVector(graphics, color, toolWindow1); }
/** * Apply the given tool to the given GameObject. */ private void SetupToolOnObj(GameObject obj, Tool tool) { switch (tool) { case Tool.POSITION: toolObj = Instantiate(toolPrefab, obj.transform.position, Quaternion.identity); PositionControl positionControl = toolObj.GetComponent <PositionControl>(); positionControl.LinkObject(selectedObj); break; case Tool.ROTATION: toolObj = Instantiate(toolPrefab, obj.transform.position, obj.transform.rotation); RotationControl rotationControl = toolObj.GetComponent <RotationControl>(); rotationControl.LinkObject(selectedObj); break; case Tool.SCALE: toolObj = Instantiate(toolPrefab, obj.transform.position, obj.transform.rotation); ScaleControl scaleControl = toolObj.GetComponent <ScaleControl>(); scaleControl.LinkObject(selectedObj); break; } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ModelCommonForm)); this.buttonOK = new System.Windows.Forms.Button(); this.buttonCancel = new System.Windows.Forms.Button(); this.positionRotation = new Engine.PositionControl(); this.label1 = new System.Windows.Forms.Label(); this.buttonBlenderAnimated = new System.Windows.Forms.Button(); this.labelCommonNote = new System.Windows.Forms.Label(); this.buttonZero = new System.Windows.Forms.Button(); this.buttonReload = new System.Windows.Forms.Button(); this.label12 = new System.Windows.Forms.Label(); this.label13 = new System.Windows.Forms.Label(); this.textModelFile = new System.Windows.Forms.TextBox(); this.label14 = new System.Windows.Forms.Label(); this.buttonBlenderRigid = new System.Windows.Forms.Button(); this.label18 = new System.Windows.Forms.Label(); this.textDisplayName = new System.Windows.Forms.TextBox(); this.label19 = new System.Windows.Forms.Label(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.textDescription = new System.Windows.Forms.TextBox(); this.label20 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.comboEffect = new System.Windows.Forms.ComboBox(); this.label3 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.numericSpecularPower = new System.Windows.Forms.NumericUpDown(); this.labelNormalMapHeading = new System.Windows.Forms.Label(); this.textNormalMapFile = new System.Windows.Forms.TextBox(); this.buttonNormalMapFileBrowse = new System.Windows.Forms.Button(); this.labelNormalMapNote = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.buttonSpecularColour = new System.Windows.Forms.Button(); this.buttonSpecularDefault = new System.Windows.Forms.Button(); this.label9 = new System.Windows.Forms.Label(); this.label16 = new System.Windows.Forms.Label(); this.label17 = new System.Windows.Forms.Label(); this.buttonSpecFabric = new System.Windows.Forms.Button(); this.buttonSpecDefault = new System.Windows.Forms.Button(); this.buttonSpecMetal = new System.Windows.Forms.Button(); this.buttonSpecPolished = new System.Windows.Forms.Button(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.label7 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.buttonDiffuseColour = new System.Windows.Forms.Button(); this.buttonEmissiveColour = new System.Windows.Forms.Button(); this.buttonDiffuseDefault = new System.Windows.Forms.Button(); this.label10 = new System.Windows.Forms.Label(); this.buttonEmissiveDefault = new System.Windows.Forms.Button(); this.label11 = new System.Windows.Forms.Label(); this.label15 = new System.Windows.Forms.Label(); this.groupMaterial = new System.Windows.Forms.GroupBox(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericSpecularPower)).BeginInit(); this.groupBox2.SuspendLayout(); this.groupMaterial.SuspendLayout(); this.SuspendLayout(); // // buttonOK // this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.buttonOK.Location = new System.Drawing.Point(747, 564); this.buttonOK.Name = "buttonOK"; this.buttonOK.Size = new System.Drawing.Size(75, 23); this.buttonOK.TabIndex = 50; this.buttonOK.Text = "OK"; this.buttonOK.UseVisualStyleBackColor = true; // // buttonCancel // this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.Location = new System.Drawing.Point(828, 564); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new System.Drawing.Size(75, 23); this.buttonCancel.TabIndex = 51; this.buttonCancel.Text = "Cancel"; this.buttonCancel.UseVisualStyleBackColor = true; // // positionRotation // this.positionRotation.DecimalPlaces = 0; this.positionRotation.Increment = new decimal(new int[] { 45, 0, 0, 0}); this.positionRotation.Location = new System.Drawing.Point(116, 107); this.positionRotation.Maximum = new Microsoft.Xna.Framework.Vector3(180F, 180F, 180F); this.positionRotation.Minimum = new Microsoft.Xna.Framework.Vector3(-180F, -180F, -180F); this.positionRotation.Name = "positionRotation"; this.positionRotation.Size = new System.Drawing.Size(359, 26); this.positionRotation.TabIndex = 9; this.positionRotation.Value = new Microsoft.Xna.Framework.Vector3(0F, 0F, 0F); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(7, 113); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(50, 13); this.label1.TabIndex = 1; this.label1.Text = "Rotation:"; // // buttonBlenderAnimated // this.buttonBlenderAnimated.Location = new System.Drawing.Point(573, 108); this.buttonBlenderAnimated.Name = "buttonBlenderAnimated"; this.buttonBlenderAnimated.Size = new System.Drawing.Size(140, 23); this.buttonBlenderAnimated.TabIndex = 8; this.buttonBlenderAnimated.Text = "Diabolical Animated"; this.buttonBlenderAnimated.UseVisualStyleBackColor = true; this.buttonBlenderAnimated.Click += new System.EventHandler(this.buttonBlenderAnimated_Click); // // labelCommonNote // this.labelCommonNote.Location = new System.Drawing.Point(7, 146); this.labelCommonNote.Name = "labelCommonNote"; this.labelCommonNote.Size = new System.Drawing.Size(594, 63); this.labelCommonNote.TabIndex = 5; this.labelCommonNote.Text = resources.GetString("labelCommonNote.Text"); // // buttonZero // this.buttonZero.Location = new System.Drawing.Point(492, 108); this.buttonZero.Name = "buttonZero"; this.buttonZero.Size = new System.Drawing.Size(75, 23); this.buttonZero.TabIndex = 7; this.buttonZero.Text = "Zero"; this.buttonZero.UseVisualStyleBackColor = true; this.buttonZero.Click += new System.EventHandler(this.buttonZero_Click); // // buttonReload // this.buttonReload.DialogResult = System.Windows.Forms.DialogResult.Yes; this.buttonReload.Location = new System.Drawing.Point(666, 171); this.buttonReload.Name = "buttonReload"; this.buttonReload.Size = new System.Drawing.Size(75, 23); this.buttonReload.TabIndex = 10; this.buttonReload.Text = "Reload"; this.buttonReload.UseVisualStyleBackColor = true; // // label12 // this.label12.AutoSize = true; this.label12.Location = new System.Drawing.Point(749, 176); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(102, 13); this.label12.TabIndex = 7; this.label12.Text = "Using these settings"; // // label13 // this.label13.AutoSize = true; this.label13.Location = new System.Drawing.Point(7, 81); this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(132, 13); this.label13.TabIndex = 8; this.label13.Text = "Model relative file location:"; // // textModelFile // this.textModelFile.Location = new System.Drawing.Point(162, 78); this.textModelFile.Name = "textModelFile"; this.textModelFile.ReadOnly = true; this.textModelFile.Size = new System.Drawing.Size(478, 20); this.textModelFile.TabIndex = 56; this.textModelFile.TabStop = false; // // label14 // this.label14.AutoSize = true; this.label14.Location = new System.Drawing.Point(647, 81); this.label14.Name = "label14"; this.label14.Size = new System.Drawing.Size(204, 13); this.label14.TabIndex = 57; this.label14.Text = "Calculated when the settings file is saved."; // // buttonBlenderRigid // this.buttonBlenderRigid.Location = new System.Drawing.Point(719, 108); this.buttonBlenderRigid.Name = "buttonBlenderRigid"; this.buttonBlenderRigid.Size = new System.Drawing.Size(140, 23); this.buttonBlenderRigid.TabIndex = 9; this.buttonBlenderRigid.Text = "Diabolical Rigid"; this.buttonBlenderRigid.UseVisualStyleBackColor = true; this.buttonBlenderRigid.Click += new System.EventHandler(this.buttonBlenderRigid_Click); // // label18 // this.label18.AutoSize = true; this.label18.Location = new System.Drawing.Point(7, 23); this.label18.Name = "label18"; this.label18.Size = new System.Drawing.Size(121, 13); this.label18.TabIndex = 86; this.label18.Text = "Display Name (optional):"; // // textDisplayName // this.textDisplayName.Location = new System.Drawing.Point(162, 18); this.textDisplayName.Name = "textDisplayName"; this.textDisplayName.Size = new System.Drawing.Size(376, 20); this.textDisplayName.TabIndex = 0; // // label19 // this.label19.AutoSize = true; this.label19.Location = new System.Drawing.Point(598, 23); this.label19.Name = "label19"; this.label19.Size = new System.Drawing.Size(197, 13); this.label19.TabIndex = 88; this.label19.Text = "Used to provide details for some models."; // // groupBox1 // this.groupBox1.Controls.Add(this.textDescription); this.groupBox1.Controls.Add(this.label20); this.groupBox1.Controls.Add(this.label19); this.groupBox1.Controls.Add(this.textDisplayName); this.groupBox1.Controls.Add(this.label18); this.groupBox1.Controls.Add(this.buttonBlenderRigid); this.groupBox1.Controls.Add(this.label14); this.groupBox1.Controls.Add(this.textModelFile); this.groupBox1.Controls.Add(this.label13); this.groupBox1.Controls.Add(this.label12); this.groupBox1.Controls.Add(this.buttonReload); this.groupBox1.Controls.Add(this.buttonZero); this.groupBox1.Controls.Add(this.labelCommonNote); this.groupBox1.Controls.Add(this.buttonBlenderAnimated); this.groupBox1.Controls.Add(this.label1); this.groupBox1.Controls.Add(this.positionRotation); this.groupBox1.Location = new System.Drawing.Point(12, 12); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(891, 216); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; this.groupBox1.Text = "Common"; // // textDescription // this.textDescription.Location = new System.Drawing.Point(162, 49); this.textDescription.Name = "textDescription"; this.textDescription.Size = new System.Drawing.Size(697, 20); this.textDescription.TabIndex = 1; // // label20 // this.label20.AutoSize = true; this.label20.Location = new System.Drawing.Point(7, 52); this.label20.Name = "label20"; this.label20.Size = new System.Drawing.Size(109, 13); this.label20.TabIndex = 89; this.label20.Text = "Description (optional):"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(6, 28); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(65, 13); this.label2.TabIndex = 0; this.label2.Text = "Effect Type:"; // // comboEffect // this.comboEffect.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboEffect.FormattingEnabled = true; this.comboEffect.Location = new System.Drawing.Point(130, 25); this.comboEffect.Name = "comboEffect"; this.comboEffect.Size = new System.Drawing.Size(158, 21); this.comboEffect.TabIndex = 10; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(294, 28); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(213, 13); this.label3.TabIndex = 6; this.label3.Text = "Which shader effect to load with this model."; // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(6, 99); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(85, 13); this.label5.TabIndex = 8; this.label5.Text = "Specular Power:"; // // numericSpecularPower // this.numericSpecularPower.Location = new System.Drawing.Point(130, 97); this.numericSpecularPower.Name = "numericSpecularPower"; this.numericSpecularPower.Size = new System.Drawing.Size(120, 20); this.numericSpecularPower.TabIndex = 13; this.numericSpecularPower.Value = new decimal(new int[] { 16, 0, 0, 0}); // // labelNormalMapHeading // this.labelNormalMapHeading.AutoSize = true; this.labelNormalMapHeading.Location = new System.Drawing.Point(6, 62); this.labelNormalMapHeading.Name = "labelNormalMapHeading"; this.labelNormalMapHeading.Size = new System.Drawing.Size(112, 13); this.labelNormalMapHeading.TabIndex = 11; this.labelNormalMapHeading.Text = "Normal Map Filename:"; // // textNormalMapFile // this.textNormalMapFile.Location = new System.Drawing.Point(189, 60); this.textNormalMapFile.Name = "textNormalMapFile"; this.textNormalMapFile.Size = new System.Drawing.Size(285, 20); this.textNormalMapFile.TabIndex = 11; // // buttonNormalMapFileBrowse // this.buttonNormalMapFileBrowse.Location = new System.Drawing.Point(480, 58); this.buttonNormalMapFileBrowse.Name = "buttonNormalMapFileBrowse"; this.buttonNormalMapFileBrowse.Size = new System.Drawing.Size(75, 23); this.buttonNormalMapFileBrowse.TabIndex = 12; this.buttonNormalMapFileBrowse.Text = "Browse"; this.buttonNormalMapFileBrowse.UseVisualStyleBackColor = true; this.buttonNormalMapFileBrowse.Click += new System.EventHandler(this.buttonNormalMap_Click); // // labelNormalMapNote // this.labelNormalMapNote.AutoSize = true; this.labelNormalMapNote.Location = new System.Drawing.Point(561, 63); this.labelNormalMapNote.Name = "labelNormalMapNote"; this.labelNormalMapNote.Size = new System.Drawing.Size(197, 13); this.labelNormalMapNote.TabIndex = 55; this.labelNormalMapNote.Text = "Must be in the same folder as the model."; // // label4 // this.label4.Location = new System.Drawing.Point(466, 97); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(419, 118); this.label4.TabIndex = 56; this.label4.Text = resources.GetString("label4.Text"); // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(6, 141); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(85, 13); this.label6.TabIndex = 57; this.label6.Text = "Specular Colour:"; // // buttonSpecularColour // this.buttonSpecularColour.BackColor = System.Drawing.Color.White; this.buttonSpecularColour.Location = new System.Drawing.Point(130, 136); this.buttonSpecularColour.Name = "buttonSpecularColour"; this.buttonSpecularColour.Size = new System.Drawing.Size(144, 23); this.buttonSpecularColour.TabIndex = 14; this.buttonSpecularColour.UseVisualStyleBackColor = false; this.buttonSpecularColour.Click += new System.EventHandler(this.buttonSpecularColour_Click); // // buttonSpecularDefault // this.buttonSpecularDefault.Location = new System.Drawing.Point(316, 136); this.buttonSpecularDefault.Name = "buttonSpecularDefault"; this.buttonSpecularDefault.Size = new System.Drawing.Size(131, 23); this.buttonSpecularDefault.TabIndex = 15; this.buttonSpecularDefault.Text = "Default Colour Grey"; this.buttonSpecularDefault.UseVisualStyleBackColor = true; this.buttonSpecularDefault.Click += new System.EventHandler(this.buttonSpecularDefault_Click); // // label9 // this.label9.AutoSize = true; this.label9.Location = new System.Drawing.Point(294, 141); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(16, 13); this.label9.TabIndex = 60; this.label9.Text = "or"; // // label16 // this.label16.AutoSize = true; this.label16.Location = new System.Drawing.Point(256, 99); this.label16.Name = "label16"; this.label16.Size = new System.Drawing.Size(128, 13); this.label16.TabIndex = 61; this.label16.Text = "How tight the hightlight is."; // // label17 // this.label17.AutoSize = true; this.label17.Location = new System.Drawing.Point(6, 178); this.label17.Name = "label17"; this.label17.Size = new System.Drawing.Size(45, 13); this.label17.TabIndex = 62; this.label17.Text = "Presets:"; // // buttonSpecFabric // this.buttonSpecFabric.Location = new System.Drawing.Point(129, 173); this.buttonSpecFabric.Name = "buttonSpecFabric"; this.buttonSpecFabric.Size = new System.Drawing.Size(75, 23); this.buttonSpecFabric.TabIndex = 16; this.buttonSpecFabric.Text = "Fabric"; this.buttonSpecFabric.UseVisualStyleBackColor = true; this.buttonSpecFabric.Click += new System.EventHandler(this.buttonSpecFabric_Click); // // buttonSpecDefault // this.buttonSpecDefault.Location = new System.Drawing.Point(210, 173); this.buttonSpecDefault.Name = "buttonSpecDefault"; this.buttonSpecDefault.Size = new System.Drawing.Size(75, 23); this.buttonSpecDefault.TabIndex = 17; this.buttonSpecDefault.Text = "Default"; this.buttonSpecDefault.UseVisualStyleBackColor = true; this.buttonSpecDefault.Click += new System.EventHandler(this.buttonSpecDefault_Click); // // buttonSpecMetal // this.buttonSpecMetal.Location = new System.Drawing.Point(291, 172); this.buttonSpecMetal.Name = "buttonSpecMetal"; this.buttonSpecMetal.Size = new System.Drawing.Size(75, 23); this.buttonSpecMetal.TabIndex = 18; this.buttonSpecMetal.Text = "Gun Metal"; this.buttonSpecMetal.UseVisualStyleBackColor = true; this.buttonSpecMetal.Click += new System.EventHandler(this.buttonSpecMetal_Click); // // buttonSpecPolished // this.buttonSpecPolished.Location = new System.Drawing.Point(372, 173); this.buttonSpecPolished.Name = "buttonSpecPolished"; this.buttonSpecPolished.Size = new System.Drawing.Size(75, 23); this.buttonSpecPolished.TabIndex = 19; this.buttonSpecPolished.Text = "Polished"; this.buttonSpecPolished.UseVisualStyleBackColor = true; this.buttonSpecPolished.Click += new System.EventHandler(this.buttonSpecPolished_Click); // // groupBox2 // this.groupBox2.Controls.Add(this.buttonSpecPolished); this.groupBox2.Controls.Add(this.buttonSpecMetal); this.groupBox2.Controls.Add(this.buttonSpecDefault); this.groupBox2.Controls.Add(this.buttonSpecFabric); this.groupBox2.Controls.Add(this.label17); this.groupBox2.Controls.Add(this.label16); this.groupBox2.Controls.Add(this.label9); this.groupBox2.Controls.Add(this.buttonSpecularDefault); this.groupBox2.Controls.Add(this.buttonSpecularColour); this.groupBox2.Controls.Add(this.label6); this.groupBox2.Controls.Add(this.label4); this.groupBox2.Controls.Add(this.labelNormalMapNote); this.groupBox2.Controls.Add(this.buttonNormalMapFileBrowse); this.groupBox2.Controls.Add(this.textNormalMapFile); this.groupBox2.Controls.Add(this.labelNormalMapHeading); this.groupBox2.Controls.Add(this.numericSpecularPower); this.groupBox2.Controls.Add(this.label5); this.groupBox2.Controls.Add(this.label3); this.groupBox2.Controls.Add(this.comboEffect); this.groupBox2.Controls.Add(this.label2); this.groupBox2.Location = new System.Drawing.Point(12, 234); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(891, 218); this.groupBox2.TabIndex = 10; this.groupBox2.TabStop = false; this.groupBox2.Text = "Effect"; // // label7 // this.label7.AutoSize = true; this.label7.Location = new System.Drawing.Point(6, 28); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(76, 13); this.label7.TabIndex = 0; this.label7.Text = "Diffuse Colour:"; // // label8 // this.label8.AutoSize = true; this.label8.Location = new System.Drawing.Point(6, 66); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(84, 13); this.label8.TabIndex = 1; this.label8.Text = "Emissive Colour:"; // // buttonDiffuseColour // this.buttonDiffuseColour.BackColor = System.Drawing.Color.White; this.buttonDiffuseColour.Location = new System.Drawing.Point(130, 23); this.buttonDiffuseColour.Name = "buttonDiffuseColour"; this.buttonDiffuseColour.Size = new System.Drawing.Size(144, 23); this.buttonDiffuseColour.TabIndex = 20; this.buttonDiffuseColour.UseVisualStyleBackColor = false; this.buttonDiffuseColour.Click += new System.EventHandler(this.buttonDiffuseColour_Click); // // buttonEmissiveColour // this.buttonEmissiveColour.BackColor = System.Drawing.Color.Black; this.buttonEmissiveColour.Location = new System.Drawing.Point(130, 61); this.buttonEmissiveColour.Name = "buttonEmissiveColour"; this.buttonEmissiveColour.Size = new System.Drawing.Size(144, 23); this.buttonEmissiveColour.TabIndex = 22; this.buttonEmissiveColour.UseVisualStyleBackColor = false; this.buttonEmissiveColour.Click += new System.EventHandler(this.buttonEmissiveColour_Click); // // buttonDiffuseDefault // this.buttonDiffuseDefault.Location = new System.Drawing.Point(316, 23); this.buttonDiffuseDefault.Name = "buttonDiffuseDefault"; this.buttonDiffuseDefault.Size = new System.Drawing.Size(131, 23); this.buttonDiffuseDefault.TabIndex = 21; this.buttonDiffuseDefault.Text = "Default Colour White"; this.buttonDiffuseDefault.UseVisualStyleBackColor = true; this.buttonDiffuseDefault.Click += new System.EventHandler(this.buttonDiffuseDefault_Click); // // label10 // this.label10.AutoSize = true; this.label10.Location = new System.Drawing.Point(294, 28); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(16, 13); this.label10.TabIndex = 62; this.label10.Text = "or"; // // buttonEmissiveDefault // this.buttonEmissiveDefault.Location = new System.Drawing.Point(316, 61); this.buttonEmissiveDefault.Name = "buttonEmissiveDefault"; this.buttonEmissiveDefault.Size = new System.Drawing.Size(131, 23); this.buttonEmissiveDefault.TabIndex = 23; this.buttonEmissiveDefault.Text = "Default Colour Black"; this.buttonEmissiveDefault.UseVisualStyleBackColor = true; this.buttonEmissiveDefault.Click += new System.EventHandler(this.buttonEmissiveDefault_Click); // // label11 // this.label11.AutoSize = true; this.label11.Location = new System.Drawing.Point(294, 66); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(16, 13); this.label11.TabIndex = 64; this.label11.Text = "or"; // // label15 // this.label15.Location = new System.Drawing.Point(469, 23); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(416, 61); this.label15.TabIndex = 65; this.label15.Text = "Unless you want to create a specific effect it is likely that the material colour" + "s should remain at their defaults so that the colour of the object is taken from" + " the texture applied to the model."; // // groupMaterial // this.groupMaterial.Controls.Add(this.label15); this.groupMaterial.Controls.Add(this.label11); this.groupMaterial.Controls.Add(this.buttonEmissiveDefault); this.groupMaterial.Controls.Add(this.label10); this.groupMaterial.Controls.Add(this.buttonDiffuseDefault); this.groupMaterial.Controls.Add(this.buttonEmissiveColour); this.groupMaterial.Controls.Add(this.buttonDiffuseColour); this.groupMaterial.Controls.Add(this.label8); this.groupMaterial.Controls.Add(this.label7); this.groupMaterial.Location = new System.Drawing.Point(12, 458); this.groupMaterial.Name = "groupMaterial"; this.groupMaterial.Size = new System.Drawing.Size(891, 100); this.groupMaterial.TabIndex = 20; this.groupMaterial.TabStop = false; this.groupMaterial.Text = "Material"; // // ModelCommonForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(915, 599); this.Controls.Add(this.groupMaterial); this.Controls.Add(this.groupBox2); this.Controls.Add(this.groupBox1); this.Controls.Add(this.buttonCancel); this.Controls.Add(this.buttonOK); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "ModelCommonForm"; this.Text = "Common Properties"; this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericSpecularPower)).EndInit(); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.groupMaterial.ResumeLayout(false); this.groupMaterial.PerformLayout(); this.ResumeLayout(false); }
private void InitializeComponent() { int tw_width = UIEnvironment.Windows["ObjectBrowser"].Control.Size.Width - 15; positionControlPos = new PositionControl(); textBoxPrefix = new TextBox(); textBoxSuffix = new TextBox(); labelPrefix = new Label(); labelSuffix = new Label(); labelNumIncrements = new Label(); labelStartnumber = new Label(); labelStartnumber = new Label(); labelFirstlabelname = new Label(); labelColor = new Label(); buttonColor = new Button(); colorDialogColor = new ColorDialog(); labelClipStandard = new Label(); labelResultname = new Label(); comboBoxIncrementSteps = new ComboBox(); comboBoxClipStandard = new ComboBox(); pictureboxNutImage = new PictureBox(); numericUpDownStartWith = new NumericUpDown(); buttonClear = new Button(); buttonCreate = new Button(); buttonClose = new Button(); positionControlPos.SuspendLayout(); SuspendLayout(); positionControlPos.ErrorProviderControl = null; positionControlPos.ExpressionErrorString = "Bad Expression"; positionControlPos.LabelQuantity = ABB.Robotics.RobotStudio.BuiltinQuantity.Length; positionControlPos.LabelText = "Position"; positionControlPos.Location = new Point(8, 18); positionControlPos.MaxValueErrorString = "Value exceeds maximum"; positionControlPos.MinValueErrorString = "Value is below minimum"; positionControlPos.Name = "pos_control"; positionControlPos.NumTextBoxes = 3; positionControlPos.ReadOnly = false; positionControlPos.RefCoordSys = null; positionControlPos.ShowLabel = true; positionControlPos.Size = new Size(tw_width, 34); positionControlPos.TabIndex = 1; positionControlPos.Text = "positionControl1"; positionControlPos.VerticalLayout = false; labelPrefix.Text = "Name Prefix"; labelPrefix.Location = new Point(8, 60); labelPrefix.Size = new Size(100, 14); textBoxPrefix.Location = new Point(8, 75); textBoxPrefix.Size = new Size((positionControlPos.Width / 2) - 15, 34); textBoxPrefix.TabIndex = 2; textBoxPrefix.TextChanged += new EventHandler(TextValueChanged); labelSuffix.Text = "Name Suffix"; labelSuffix.Location = new Point((positionControlPos.Width / 2) + 23, 60); labelSuffix.Size = new Size(100, 14); textBoxSuffix.Location = new Point((positionControlPos.Width / 2) + 23, 75); textBoxSuffix.Size = textBoxPrefix.Size; textBoxSuffix.TabIndex = 3; textBoxSuffix.TextChanged += new EventHandler(TextValueChanged); labelNumIncrements.Text = "Increment"; labelNumIncrements.Location = new Point(8, 105); labelNumIncrements.Size = new Size(60, 14); comboBoxIncrementSteps.Location = new Point(8, 120); comboBoxIncrementSteps.Size = new Size(70, 44); comboBoxIncrementSteps.DropDownWidth = 70; comboBoxIncrementSteps.Items.AddRange(new object[] { "1", "10", "100", "1000" }); comboBoxIncrementSteps.SelectedItem = "1"; comboBoxIncrementSteps.TabIndex = 4; comboBoxIncrementSteps.SelectedIndexChanged += ComboboxIncrementSteps_SelectedIndexChanged; comboBoxIncrementSteps.SelectedIndexChanged += new EventHandler(TextValueChanged); labelStartnumber.Text = "Start number"; labelStartnumber.Location = new Point((positionControlPos.Width / 2) - 26, 105); labelStartnumber.Size = new Size(70, 14); numericUpDownStartWith.Location = new Point((positionControlPos.Width / 2) - 26, 120); numericUpDownStartWith.Size = new Size(70, 85); numericUpDownStartWith.Minimum = 1; numericUpDownStartWith.Maximum = 1000; numericUpDownStartWith.Increment = 1; numericUpDownStartWith.DecimalPlaces = 0; numericUpDownStartWith.Value = 1; numericUpDownStartWith.DecimalPlaces = 0; numericUpDownStartWith.TabIndex = 5; numericUpDownStartWith.ValueChanged += new EventHandler(TextValueChanged); labelColor.Text = "Color"; labelColor.Location = new Point(positionControlPos.Width - 62, 105); labelColor.Size = new Size(70, 14); buttonColor.Location = new Point(positionControlPos.Width - 62, 119); buttonColor.Name = "buttonnColor"; buttonColor.Size = new Size(70, 23); buttonColor.TabIndex = 6; buttonColor.UseVisualStyleBackColor = true; buttonColor.BackColor = Color.FromArgb(255, 255, 192); buttonColor.Click += new System.EventHandler(buttonColor_Click); labelClipStandard.Text = "Clipping Standard Color"; labelClipStandard.Location = new Point(8, 176); labelClipStandard.Size = new Size(150, 14); comboBoxClipStandard.Location = new Point(8, 196); comboBoxClipStandard.Size = new Size(150, 44); comboBoxClipStandard.DropDownWidth = 70; comboBoxClipStandard.Items.AddRange(new object[] { "Panzer", "Snap", "Grommet", "Metnut/C_Nut", "Nut", "Big MetNut", "Trim Fastener", "Small Snap Clip", "Ret Clip", "S-Clip", "Klammer", "TrimClip Plastic", "Plastic Nut" }); comboBoxClipStandard.SelectedItem = "0"; comboBoxClipStandard.TabIndex = 7; comboBoxClipStandard.SelectedIndexChanged += new EventHandler(ClipValueChanged); pictureboxNutImage.Location = new Point(172, 150); pictureboxNutImage.Name = "pictureboxNutImage"; pictureboxNutImage.Size = new Size(68, 68); pictureboxNutImage.BorderStyle = BorderStyle.None; pictureboxNutImage.Image = null; pictureboxNutImage.TabStop = false; labelFirstlabelname.Text = "First label name: "; labelFirstlabelname.Location = new Point(8, 255); labelFirstlabelname.Size = new Size(90, 14); labelResultname.Location = new Point(95, 255); labelResultname.Size = new Size(80, 14); labelResultname.Text = textBoxPrefix.Text + numericUpDownStartWith.Value + textBoxSuffix.Text; buttonClear.Location = new Point(tw_width - 170, 300); buttonClear.Size = new Size(53, 25); buttonClear.Text = "Reset"; buttonClear.FlatStyle = FlatStyle.Flat; buttonClear.UseVisualStyleBackColor = true; buttonClear.TabIndex = 8; buttonClear.Click += new EventHandler(btn_reset_clicked); buttonCreate.Location = new Point(tw_width - 110, 300); buttonCreate.Size = new Size(53, 25); buttonCreate.Text = "Create"; buttonCreate.FlatStyle = FlatStyle.Flat; buttonCreate.UseVisualStyleBackColor = true; buttonCreate.TabIndex = 9; buttonCreate.Click += new EventHandler(btn_create_clicked); buttonClose.Location = new Point(tw_width - 50, 300); buttonClose.Size = new Size(53, 25); buttonClose.Text = "Close"; buttonClose.FlatStyle = FlatStyle.Flat; buttonClose.UseVisualStyleBackColor = true; buttonClose.TabIndex = 10; buttonClose.Click += new EventHandler(btn_close_clicked); AutoScroll = true; base.AdjustableHeight = true; base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; base.Caption = "Auto MarkUp Tool"; base.Controls.Add(positionControlPos); base.Controls.Add(labelPrefix); base.Controls.Add(textBoxPrefix); base.Controls.Add(labelSuffix); base.Controls.Add(textBoxSuffix); base.Controls.Add(labelNumIncrements); base.Controls.Add(comboBoxIncrementSteps); base.Controls.Add(labelStartnumber); base.Controls.Add(labelColor); base.Controls.Add(buttonColor); base.Controls.Add(numericUpDownStartWith); base.Controls.Add(labelClipStandard); base.Controls.Add(comboBoxClipStandard); base.Controls.Add(pictureboxNutImage); base.Controls.Add(labelFirstlabelname); base.Controls.Add(labelResultname); base.Controls.Add(buttonClear); base.Controls.Add(buttonCreate); base.Controls.Add(buttonClose); base.Name = "frmAutoMarkUpBuilder"; base.Size = new System.Drawing.Size(242, 340); positionControlPos.ResumeLayout(false); ResumeLayout(false); PerformLayout(); }
public CarouselCodeGallery(ItemsLayoutOrientation orientation) { On <iOS>().SetLargeTitleDisplay(LargeTitleDisplayMode.Never); _scrollInfoLabel.MaxLines = 1; _scrollInfoLabel.LineBreakMode = LineBreakMode.TailTruncation; _orientation = orientation; Title = $"CarouselView (Code, {orientation})"; var nItems = 5; var layout = new Grid { RowDefinitions = new RowDefinitionCollection { new RowDefinition { Height = GridLength.Auto }, new RowDefinition { Height = GridLength.Auto }, new RowDefinition { Height = GridLength.Auto }, new RowDefinition { Height = GridLength.Auto }, new RowDefinition { Height = GridLength.Star } } }; var itemsLayout = new LinearItemsLayout(orientation) { SnapPointsType = SnapPointsType.MandatorySingle, SnapPointsAlignment = SnapPointsAlignment.Center }; var itemTemplate = ExampleTemplates.CarouselTemplate(); var carouselView = new CarouselView { ItemsLayout = itemsLayout, ItemTemplate = itemTemplate, Position = 2, Margin = new Thickness(0, 10, 0, 10), BackgroundColor = Color.LightGray, AutomationId = "TheCarouselView" }; if (orientation == ItemsLayoutOrientation.Horizontal) { carouselView.PeekAreaInsets = new Thickness(30, 0, 30, 0); } else { carouselView.PeekAreaInsets = new Thickness(0, 30, 0, 30); } carouselView.Scrolled += CarouselView_Scrolled; StackLayout stacklayoutInfo = GetReadOnlyInfo(carouselView); var generator = new ItemsSourceGenerator(carouselView, initialItems: nItems, itemsSourceType: ItemsSourceType.ObservableCollection); layout.Children.Add(generator); var positionControl = new PositionControl(carouselView, nItems); layout.Children.Add(positionControl); var spacingModifier = new SpacingModifier(carouselView.ItemsLayout, "Update Spacing"); layout.Children.Add(spacingModifier); layout.Children.Add(stacklayoutInfo); var stckPeek = new StackLayout { Orientation = StackOrientation.Horizontal }; stckPeek.Children.Add(new Label { Text = "Peek" }); var padi = new Slider { Maximum = 100, Minimum = 0, Value = 30, WidthRequest = 100, BackgroundColor = Color.Pink }; padi.ValueChanged += (s, e) => { var peek = padi.Value; if (orientation == ItemsLayoutOrientation.Horizontal) { carouselView.PeekAreaInsets = new Thickness(peek, 0, peek, 0); } else { carouselView.PeekAreaInsets = new Thickness(0, peek, 0, peek); } }; stckPeek.Children.Add(padi); stacklayoutInfo.Children.Add(stckPeek); stacklayoutInfo.Children.Add(_scrollInfoLabel); var content = new Grid(); content.Children.Add(carouselView); #if DEBUG // Uncomment this line to add a helper to visualize the center of each element. //content.Children.Add(CreateDebuggerLines()); #endif layout.Children.Add(content); Grid.SetRow(positionControl, 1); Grid.SetRow(stacklayoutInfo, 2); Grid.SetRow(spacingModifier, 3); Grid.SetRow(content, 4); Content = layout; generator.CollectionChanged += (sender, e) => { positionControl.UpdatePositionCount(generator.Count); }; generator.GenerateItems(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RotationForm)); this.buttonOK = new System.Windows.Forms.Button(); this.buttonCancel = new System.Windows.Forms.Button(); this.groupRotate = new System.Windows.Forms.GroupBox(); this.labelDegrees = new System.Windows.Forms.Label(); this.labelPreset = new System.Windows.Forms.Label(); this.buttonBlenderRigid = new System.Windows.Forms.Button(); this.buttonZero = new System.Windows.Forms.Button(); this.labelCommonNote = new System.Windows.Forms.Label(); this.buttonBlenderAnimated = new System.Windows.Forms.Button(); this.positionRotation = new Engine.PositionControl(); this.groupRotate.SuspendLayout(); this.SuspendLayout(); // // buttonOK // this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.buttonOK.Location = new System.Drawing.Point(370, 300); this.buttonOK.Name = "buttonOK"; this.buttonOK.Size = new System.Drawing.Size(75, 23); this.buttonOK.TabIndex = 50; this.buttonOK.Text = "OK"; this.buttonOK.UseVisualStyleBackColor = true; // // buttonCancel // this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.Location = new System.Drawing.Point(451, 300); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new System.Drawing.Size(75, 23); this.buttonCancel.TabIndex = 51; this.buttonCancel.Text = "Cancel"; this.buttonCancel.UseVisualStyleBackColor = true; // // groupRotate // this.groupRotate.Controls.Add(this.labelDegrees); this.groupRotate.Controls.Add(this.labelPreset); this.groupRotate.Controls.Add(this.buttonBlenderRigid); this.groupRotate.Controls.Add(this.buttonZero); this.groupRotate.Controls.Add(this.labelCommonNote); this.groupRotate.Controls.Add(this.buttonBlenderAnimated); this.groupRotate.Controls.Add(this.positionRotation); this.groupRotate.Location = new System.Drawing.Point(12, 12); this.groupRotate.Name = "groupRotate"; this.groupRotate.Size = new System.Drawing.Size(514, 282); this.groupRotate.TabIndex = 0; this.groupRotate.TabStop = false; this.groupRotate.Text = "Rotate the model while loading"; // // labelDegrees // this.labelDegrees.AutoSize = true; this.labelDegrees.Location = new System.Drawing.Point(6, 28); this.labelDegrees.Name = "labelDegrees"; this.labelDegrees.Size = new System.Drawing.Size(50, 13); this.labelDegrees.TabIndex = 60; this.labelDegrees.Text = "Degrees:"; // // labelPreset // this.labelPreset.AutoSize = true; this.labelPreset.Location = new System.Drawing.Point(6, 61); this.labelPreset.Name = "labelPreset"; this.labelPreset.Size = new System.Drawing.Size(45, 13); this.labelPreset.TabIndex = 59; this.labelPreset.Text = "Presets:"; // // buttonBlenderRigid // this.buttonBlenderRigid.Location = new System.Drawing.Point(304, 56); this.buttonBlenderRigid.Name = "buttonBlenderRigid"; this.buttonBlenderRigid.Size = new System.Drawing.Size(140, 23); this.buttonBlenderRigid.TabIndex = 6; this.buttonBlenderRigid.Text = "Diabolical Rigid"; this.buttonBlenderRigid.UseVisualStyleBackColor = true; this.buttonBlenderRigid.Click += new System.EventHandler(this.buttonBlenderRigid_Click); // // buttonZero // this.buttonZero.Location = new System.Drawing.Point(77, 56); this.buttonZero.Name = "buttonZero"; this.buttonZero.Size = new System.Drawing.Size(75, 23); this.buttonZero.TabIndex = 4; this.buttonZero.Text = "Zero"; this.buttonZero.UseVisualStyleBackColor = true; this.buttonZero.Click += new System.EventHandler(this.buttonZero_Click); // // labelCommonNote // this.labelCommonNote.Location = new System.Drawing.Point(6, 141); this.labelCommonNote.Name = "labelCommonNote"; this.labelCommonNote.Size = new System.Drawing.Size(486, 138); this.labelCommonNote.TabIndex = 5; this.labelCommonNote.Text = resources.GetString("labelCommonNote.Text"); // // buttonBlenderAnimated // this.buttonBlenderAnimated.Location = new System.Drawing.Point(158, 56); this.buttonBlenderAnimated.Name = "buttonBlenderAnimated"; this.buttonBlenderAnimated.Size = new System.Drawing.Size(140, 23); this.buttonBlenderAnimated.TabIndex = 5; this.buttonBlenderAnimated.Text = "Diabolical Animated"; this.buttonBlenderAnimated.UseVisualStyleBackColor = true; this.buttonBlenderAnimated.Click += new System.EventHandler(this.buttonBlenderAnimated_Click); // // positionRotation // this.positionRotation.DecimalPlaces = 0; this.positionRotation.Increment = new decimal(new int[] { 45, 0, 0, 0}); this.positionRotation.Location = new System.Drawing.Point(72, 24); this.positionRotation.Maximum = new Microsoft.Xna.Framework.Vector3(180F, 180F, 180F); this.positionRotation.Minimum = new Microsoft.Xna.Framework.Vector3(-180F, -180F, -180F); this.positionRotation.Name = "positionRotation"; this.positionRotation.Size = new System.Drawing.Size(359, 26); this.positionRotation.TabIndex = 12; this.positionRotation.Value = new Microsoft.Xna.Framework.Vector3(0F, 0F, 0F); // // RotationForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(539, 335); this.Controls.Add(this.groupRotate); this.Controls.Add(this.buttonCancel); this.Controls.Add(this.buttonOK); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "RotationForm"; this.Text = "Rotation"; this.groupRotate.ResumeLayout(false); this.groupRotate.PerformLayout(); this.ResumeLayout(false); }
public void Connect(string strName, out PositionControl item) { item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x7d00)) as PositionControl; }
public void Connect(string strName, out PositionControl item) { ExAddProperty(this.m_pSelf, strName, 4, 0x7d00); item = null; }