private void hideTransform() { label1.Hide(); label4.Hide(); label7.Hide(); label2.Hide(); label5.Hide(); label8.Hide(); label3.Hide(); label6.Hide(); label9.Hide(); LocationX.Hide(); LocationY.Hide(); LocationZ.Hide(); RotationRoll.Hide(); RotationYaw.Hide(); RotationPitch.Hide(); ScaleX.Hide(); ScaleY.Hide(); ScaleZ.Hide(); }
private void ScaleZ_MouseMove(object sender, MouseEventArgs e) { if (ScaleZispress) { Point point = ScaleZ.PointToClient(Control.MousePosition); ScaleZ.Text = (point.X + tempScaleZ).ToString(); var Proinstance = nodeGraph2.Nodes[Member]; if (ProType.Equals("ADD")) { } else { (Proinstance.Properties[EditedPropertise] as ZDProperty_Transform).Value.Scale.Z = Convert.ToSingle(ScaleZ.Text); } } }
public void DisplayInfo(Player p) { p.Message("Bot {0} &S({1}) has:", ColoredName, name); p.Message(" Owner: &f{0}", string.IsNullOrEmpty(Owner) ? "no one" : p.FormatNick(Owner)); if (!String.IsNullOrEmpty(AIName)) { p.Message(" AI: &f{0}", AIName); } if (hunt || kill) { p.Message(" Hunt: &f{0}&S, Kill: %f{1}", hunt, kill); } if (SkinName != name) { p.Message(" Skin: &f{0}", SkinName); } if (Model != "humanoid") { p.Message(" Model: &f{0}", Model); } if (!(ScaleX == 0 && ScaleY == 0 && ScaleZ == 0)) { p.Message(" X scale: &a{0}&S, Y scale: &a{1}&S, Z scale: &a{2}", ScaleX == 0 ? "none" : ScaleX.ToString(), ScaleY == 0 ? "none" : ScaleY.ToString(), ScaleZ == 0 ? "none" : ScaleZ.ToString() ); } if (String.IsNullOrEmpty(ClickedOnText)) { return; } ItemPerms perms = CommandExtraPerms.Find("About", 1) ?? new ItemPerms(LevelPermission.AdvBuilder); if (!perms.UsableBy(p.Rank)) { return; //don't show bot's ClickedOnText if player isn't allowed to see message block contents } p.Message(" Clicked-on text: {0}", ClickedOnText); }
private void Update() { if (AnimationDir == 1) { T += Time.deltaTime * AnimationSpeed; if (T >= 1.0f) { T = 1.0f; if (ReverseOnFinish) { AnimationDir = -1; } else { AnimationDir = 0; } } } else if (AnimationDir == -1) { T -= Time.deltaTime * AnimationSpeed; if (T <= 0.0f) { T = 0.0f; AnimationDir = 0; } } tr.localPosition = new Vector3(PosX.Evaluate(T), PosY.Evaluate(T), PosZ.Evaluate(T)) + startPos; tr.localScale = new Vector3(startScale.x * ScaleX.Evaluate(T), startScale.y * ScaleY.Evaluate(T), startScale.z * ScaleZ.Evaluate(T)); tr.localEulerAngles = new Vector3(tr.localEulerAngles.x, tr.localEulerAngles.y, startRot + Rot.Evaluate(T)); }