public void netShowDamage(int speed, PhotonMessageInfo info = null) { if (info != null && !info.Sender.IsMasterClient && !info.Sender.IsTitan) { Log.AddLine("RPCerror", MsgType.Error, info.Sender.ID.ToString(), nameof(netShowDamage)); AntisManager.Response(info.Sender.ID, true, string.Empty); return; } if (Stylish != null) { Stylish.Style(speed); } //CacheGameObject.Find<StylishComponent>("Stylish").Style(speed); var target = CacheGameObject.Find <UILabel>("LabelScore"); if (target != null) { target.text = speed.ToString(); target.transform.localScale = Vectors.zero; speed = (int)(speed * 0.1f); speed = Mathf.Max(40, speed); speed = Mathf.Min(150, speed); iTween.Stop(target.cachedGameObject); iTween.ScaleTo(target.cachedGameObject, new System.Collections.Hashtable { { "x", speed }, { "y", speed }, { "z", speed }, { "easetype", iTween.EaseType.easeOutElastic }, { "time", 1f } }); iTween.ScaleTo(target.cachedGameObject, itweenHash); } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); Stylish.SetGradientBackground(filenamePanel, new Stylish.GradientStyle(Color.LightBlue, Color.PaleTurquoise, 90F)); Stylish.SetGradientBackground(toolStrip1, new Stylish.GradientStyle(Color.PaleTurquoise, Color.LightBlue, -90F)); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); LoadUsersList(); Stylish.SetGradientBackground(panel1, new Stylish.GradientStyle(Color.DarkTurquoise, Color.LightBlue, 90F)); Stylish.SetGradientBackground(groupBox1, new Stylish.GradientStyle(Color.MediumTurquoise, Color.LightBlue)); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); //load volume and problems data at once if (LocalDatabase.IsReady) { Interactivity.ProblemDatabaseUpdated(); } Stylish.SetGradientBackground(plistPanel, new Stylish.GradientStyle(Color.LightCyan, Color.PaleTurquoise, -90F)); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); AssignAspectToSubList(); dateTimePicker1.Value = DateTime.Now.Subtract(new TimeSpan(7, 0, 0, 0)); LoadUsernameList(); Stylish.SetGradientBackground(titleBox1, new Stylish.GradientStyle(Color.LightBlue, Color.PaleTurquoise, 90F)); Stylish.SetGradientBackground(toolStrip1, new Stylish.GradientStyle(Color.PaleTurquoise, Color.LightBlue, 90F)); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); LoadUsernames(); SetViewMenu(); AssignAspectFunctions(); SelectUpdateRateMenu(); lastSubmissions1.MakeColumnSelectMenu(MainContextMenu); ShowUserSub(RegistryAccess.DefaultUsername); Stylish.SetGradientBackground(titleBackPanel, new Stylish.GradientStyle(Color.PowderBlue, Color.PaleTurquoise, 90F)); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); AssignAspectFunctions(); SelectUpdateRateMenu(); //start refresh task if (AutoUpdateStatus) { JudgeStatusRefresh(); } Stylish.SetGradientBackground(panel1, new Stylish.GradientStyle(Color.LightBlue, Color.PaleTurquoise, 90F)); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); //load volume and problems data at once if (LocalDatabase.IsReady) { Interactivity.ProblemDatabaseUpdated(); Interactivity.CategoryDataUpdated(); } Stylish.SetGradientBackground(plistPanel, new Stylish.GradientStyle(Color.LightCyan, Color.PaleTurquoise, -90F)); if (Properties.Settings.Default.ProblemViewExpandCollapse) { CollapsePanel2View(); } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); Stylish.SetGradientBackground(basicInfoTab, new Stylish.GradientStyle(Color.LightCyan, Color.LightBlue, 90)); }