public void _draw_labels() { Dictionary <int, string> mstBgm = Mst_DataManager.Instance.GetMstBgm(); mstBgm.TryGetValue(_clsRecord.UserInfo.GetPortBGMId(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID), out string value); if (value == null) { value = "母港"; } for (int i = 1; i <= 3; i++) { texture = ((Component)mbgWalls[i - 1]).GetComponent <UITexture>(); texture.mainTexture = (Resources.Load("Textures/Record/logo") as Texture); } label = ((Component)mWindowParam.FindChild("Labels/adm_name")).GetComponent <UILabel>(); label.text = _clsRecord.Name; label.supportEncoding = false; label = ((Component)mWindowParam.FindChild("Labels/adm_level")).GetComponent <UILabel>(); label.textInt = _clsRecord.Level; label = ((Component)mWindowParam.FindChild("Labels/adm_status")).GetComponent <UILabel>(); label.text = Util.RankNameJ(_clsRecord.Rank); label = ((Component)mWindowParam.FindChild("Labels/adm_exp")).GetComponent <UILabel>(); label.fontSize = 24; label.width = 300; if (_clsRecord.NextExperience == 0) { label.text = _clsRecord.Experience.ToString(); } else { label.text = _clsRecord.Experience + "/" + _clsRecord.NextExperience; } ((Component)mLabels[0].FindChild("Label_1-2")).GetComponent <UILabel>().text = _clsRecord.BattleCount + " \n\n" + _clsRecord.SortieWin + " \n\n" + _clsRecord.InterceptSuccess + " \n\n" + $"{_clsRecord.SortieRate:f1}" + "%\n\n\n\n" + _clsRecord.DeckPractice + " \n\n" + (_clsRecord.PracticeWin + _clsRecord.PracticeLose).ToString() + " "; int count = new UseitemUtil().GetCount(__USEITEM_DOCKKEY__); ((Component)mLabels[1].FindChild("Label_2-2")).GetComponent <UILabel>().text = _clsRecord.DeckCount + "\n" + _clsRecord.ShipCount + "\n" + _clsRecord.SlotitemCount + "\n" + _clsRecord.NDockCount + "\n" + _clsRecord.KDockCount + "\n" + count + "\n" + _clsRecord.FurnitureCount; ((Component)mLabels[2].FindChild("Label_3-2")).GetComponent <UILabel>().text = _clsRecord.DeckCountMax + "\n" + _clsRecord.ShipCountMax + "\n" + _clsRecord.SlotitemCountMax + "\n" + _clsRecord.MaterialMax + "\n\n\n"; ((Component)mLabels[2].FindChild("Label_3-3")).GetComponent <UILabel>().text = "♪「" + value + "」"; string path = "Textures/Record/difficulty/diff_" + (int)_clsRecord.UserInfo.Difficulty; _diff1.mainTexture = (Resources.Load(path) as Texture); _diff2.mainTexture = (Resources.Load(path) as Texture); for (int j = 1; j <= 5; j++) { ((Component)Medals.FindChild("medal_" + j + "/Label_4-" + j)).GetComponent <UILabel>().text = ((_clsRecord.GetClearCount(int2DiffKind(j)) < 2) ? string.Empty : ("×" + _clsRecord.GetClearCount(int2DiffKind(j)))); Transform transform = Medals.FindChild("medal_" + j); Transform transform2 = transform.FindChild("medal"); Transform transform3 = transform.FindChild("bg"); if (_clsRecord.GetClearCount(int2DiffKind(j)) > 0) { transform2.localScale = Vector3.one; transform3.localScale = Vector3.zero; ((Component)transform.FindChild("Light")).GetComponent <ParticleSystem>().Play(); } else { transform2.localScale = Vector3.zero; transform3.localScale = Vector3.one; ((Component)transform.FindChild("Light")).GetComponent <ParticleSystem>().Stop(); } } switch (_SelectableDiff) { case 3: Medals.FindChild("medal_5").localPositionX(999f); Medals.FindChild("medal_4").localPositionX(999f); Medals.FindChild("medal_3").localPositionX(-166f); Medals.FindChild("medal_2").localPositionX(0f); Medals.FindChild("medal_1").localPositionX(166f); break; case 4: Medals.FindChild("medal_5").localPositionX(999f); Medals.FindChild("medal_4").localPositionX(-200f); Medals.FindChild("medal_3").localPositionX(-66.6f); Medals.FindChild("medal_2").localPositionX(66.6f); Medals.FindChild("medal_1").localPositionX(200f); break; case 5: Medals.FindChild("medal_5").localPositionX(-223f); Medals.FindChild("medal_4").localPositionX(-96f); Medals.FindChild("medal_3").localPositionX(16f); Medals.FindChild("medal_2").localPositionX(128f); Medals.FindChild("medal_1").localPositionX(240f); Medals.FindChild("medal_4/medal").localPositionX(-9f); Medals.FindChild("medal_4/Label_4-4").localPositionX(-9f); Medals.FindChild("medal_2/medal").localPositionX(3f); Medals.FindChild("medal_2/Label_4-2").localPositionX(3f); break; } }
public void _draw_labels() { Dictionary <int, string> mstBgm = Mst_DataManager.Instance.GetMstBgm(); string text; mstBgm.TryGetValue(this._clsRecord.UserInfo.GetPortBGMId(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID), ref text); if (text == null) { text = "母港"; } for (int i = 1; i <= 3; i++) { this.texture = this.mbgWalls[i - 1].GetComponent <UITexture>(); this.texture.mainTexture = (Resources.Load("Textures/Record/logo") as Texture); } this.label = this.mWindowParam.FindChild("Labels/adm_name").GetComponent <UILabel>(); this.label.text = this._clsRecord.Name; this.label.supportEncoding = false; this.label = this.mWindowParam.FindChild("Labels/adm_level").GetComponent <UILabel>(); this.label.textInt = this._clsRecord.Level; this.label = this.mWindowParam.FindChild("Labels/adm_status").GetComponent <UILabel>(); this.label.text = Util.RankNameJ(this._clsRecord.Rank); this.label = this.mWindowParam.FindChild("Labels/adm_exp").GetComponent <UILabel>(); this.label.fontSize = 24; this.label.width = 300; if (this._clsRecord.NextExperience == 0u) { this.label.text = this._clsRecord.Experience.ToString(); } else { this.label.text = this._clsRecord.Experience + "/" + this._clsRecord.NextExperience; } this.mLabels[0].FindChild("Label_1-2").GetComponent <UILabel>().text = string.Concat(new object[] { this._clsRecord.BattleCount, " \n\n", this._clsRecord.SortieWin, " \n\n", this._clsRecord.InterceptSuccess, " \n\n", string.Format("{0:f1}", this._clsRecord.SortieRate), "%\n\n\n\n", this._clsRecord.DeckPractice, " \n\n", (this._clsRecord.PracticeWin + this._clsRecord.PracticeLose).ToString(), " " }); int count = new UseitemUtil().GetCount(this.__USEITEM_DOCKKEY__); this.mLabels[1].FindChild("Label_2-2").GetComponent <UILabel>().text = string.Concat(new object[] { this._clsRecord.DeckCount, "\n", this._clsRecord.ShipCount, "\n", this._clsRecord.SlotitemCount, "\n", this._clsRecord.NDockCount, "\n", this._clsRecord.KDockCount, "\n", count, "\n", this._clsRecord.FurnitureCount }); this.mLabels[2].FindChild("Label_3-2").GetComponent <UILabel>().text = string.Concat(new object[] { this._clsRecord.DeckCountMax, "\n", this._clsRecord.ShipCountMax, "\n", this._clsRecord.SlotitemCountMax, "\n", this._clsRecord.MaterialMax, "\n\n\n" }); this.mLabels[2].FindChild("Label_3-3").GetComponent <UILabel>().text = "♪「" + text + "」"; string text2 = "Textures/Record/difficulty/diff_" + (int)this._clsRecord.UserInfo.Difficulty; this._diff1.mainTexture = (Resources.Load(text2) as Texture); this._diff2.mainTexture = (Resources.Load(text2) as Texture); for (int j = 1; j <= 5; j++) { this.Medals.FindChild(string.Concat(new object[] { "medal_", j, "/Label_4-", j })).GetComponent <UILabel>().text = ((this._clsRecord.GetClearCount(this.int2DiffKind(j)) < 2) ? string.Empty : ("×" + this._clsRecord.GetClearCount(this.int2DiffKind(j)))); Transform transform = this.Medals.FindChild("medal_" + j); Transform transform2 = transform.FindChild("medal"); Transform transform3 = transform.FindChild("bg"); if (this._clsRecord.GetClearCount(this.int2DiffKind(j)) > 0) { transform2.set_localScale(Vector3.get_one()); transform3.set_localScale(Vector3.get_zero()); transform.FindChild("Light").GetComponent <ParticleSystem>().Play(); } else { transform2.set_localScale(Vector3.get_zero()); transform3.set_localScale(Vector3.get_one()); transform.FindChild("Light").GetComponent <ParticleSystem>().Stop(); } } switch (this._SelectableDiff) { case 3: this.Medals.FindChild("medal_5").localPositionX(999f); this.Medals.FindChild("medal_4").localPositionX(999f); this.Medals.FindChild("medal_3").localPositionX(-166f); this.Medals.FindChild("medal_2").localPositionX(0f); this.Medals.FindChild("medal_1").localPositionX(166f); break; case 4: this.Medals.FindChild("medal_5").localPositionX(999f); this.Medals.FindChild("medal_4").localPositionX(-200f); this.Medals.FindChild("medal_3").localPositionX(-66.6f); this.Medals.FindChild("medal_2").localPositionX(66.6f); this.Medals.FindChild("medal_1").localPositionX(200f); break; case 5: this.Medals.FindChild("medal_5").localPositionX(-223f); this.Medals.FindChild("medal_4").localPositionX(-96f); this.Medals.FindChild("medal_3").localPositionX(16f); this.Medals.FindChild("medal_2").localPositionX(128f); this.Medals.FindChild("medal_1").localPositionX(240f); this.Medals.FindChild("medal_4/medal").localPositionX(-9f); this.Medals.FindChild("medal_4/Label_4-4").localPositionX(-9f); this.Medals.FindChild("medal_2/medal").localPositionX(3f); this.Medals.FindChild("medal_2/Label_4-2").localPositionX(3f); break; } }