少年修仙传客户端代码仓库
lcy
2025-02-13 acde2e4f75951a3f640b7c077dac702dc46428f2
10384 我的福地和他人福地 空闲老鼠和总老鼠数量加括号
2个文件已修改
12 ■■■■ 已修改文件
System/BlessedLand/BlessedLandOtherWin.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/BlessedLand/BlessedLandWin.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/BlessedLand/BlessedLandOtherWin.cs
@@ -61,8 +61,8 @@
            DTC0102_tagCDBPlayer.beforePlayerDataInitializeEvent += OnBeforePlayerDataInitialize;
            DebugEx.Log("他人福地PlayerID: " + (int)blessedLandModel.showPlayerId);
            txtBlessedLandName.text = blessedLandModel.showPlayerId < 10000 ? blessedLandModel.GetNameForPlayerId((int)blessedLandModel.showPlayerId) : UIHelper.ServerStringTrim(blessedLandModel.newAreaDataDict[blessedLandModel.showPlayerId].PlayerName);
            txtAllWorkerCount.text = StringUtility.Contact(Language.Get("BlessedLand007"), " ", blessedLandModel.WorkerCount);
            txtFreeWorkerCount.text = StringUtility.Contact(Language.Get("BlessedLand006"), " ", blessedLandModel.WorkerCount - blessedLandModel.GetWorkingCount());
            txtAllWorkerCount.text = Language.Get("BlessedLand072", blessedLandModel.WorkerCount);
            txtFreeWorkerCount.text = Language.Get("BlessedLand071", blessedLandModel.WorkerCount - blessedLandModel.GetWorkingCount());
        }
        protected override void OnAfterOpen()
@@ -152,8 +152,8 @@
                }
                itemScroller.Restart();
                txtBlessedLandName.text = blessedLandModel.showPlayerId < 10000 ? blessedLandModel.GetNameForPlayerId((int)blessedLandModel.showPlayerId) : UIHelper.ServerStringTrim(blessedLandModel.newAreaDataDict[blessedLandModel.showPlayerId].PlayerName);
                txtAllWorkerCount.text = StringUtility.Contact(Language.Get("BlessedLand007"), " ", blessedLandModel.WorkerCount);
                txtFreeWorkerCount.text = StringUtility.Contact(Language.Get("BlessedLand006"), " ", blessedLandModel.WorkerCount - blessedLandModel.GetWorkingCount());
                txtAllWorkerCount.text = Language.Get("BlessedLand072", blessedLandModel.WorkerCount);
                txtFreeWorkerCount.text = Language.Get("BlessedLand071", blessedLandModel.WorkerCount - blessedLandModel.GetWorkingCount());
            }
            LayoutRebuilder.ForceRebuildLayoutImmediate(rectBlessedLandNameImage);
        }
System/BlessedLand/BlessedLandWin.cs
@@ -147,8 +147,8 @@
            imgRefresh.sprite = blessedLandModel.IsRefresh(0) ? UILoader.LoadSprite("BlessedLand03") : UILoader.LoadSprite("BlessedLand04");
            btnRefresh.SetColorful(null, blessedLandModel.IsRefresh(0));
            txtAllWorkerCount.text = StringUtility.Contact(Language.Get("BlessedLand007"), " ", blessedLandModel.WorkerCount);
            txtFreeWorkerCount.text = StringUtility.Contact(Language.Get("BlessedLand006"), " ", blessedLandModel.WorkerCount - blessedLandModel.GetWorkingCount());
            txtAllWorkerCount.text = Language.Get("BlessedLand072", blessedLandModel.WorkerCount);
            txtFreeWorkerCount.text = Language.Get("BlessedLand071", blessedLandModel.WorkerCount - blessedLandModel.GetWorkingCount());
            txtBlessedLandName.text = Language.Get("BlessedLand042", Language.Get("BlessedLand012"));
        }