少年修仙传客户端代码仓库
Client_PangDeRong
2018-08-27 cb21892f091f2d0a749495e4e87ddb3ed7947ca3
【2954】增加丹方进度百分比
1个文件已修改
13 ■■■■ 已修改文件
System/BlastFurnace/DandrugCell.cs 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/BlastFurnace/DandrugCell.cs
@@ -51,9 +51,16 @@
        else
        {
            progressObj.SetActive(true);
           lockText.gameObject.SetActive(false);
            progressValue.text = StringUtility.Contact((float)Math.Round(playerPack.GetAlchemyProgress(alchemyModel),2),"%");
            lockText.gameObject.SetActive(false);
            float progress = (float)Math.Round(playerPack.GetAlchemyProgress(alchemyModel), 2);
            if(progress > 0)
            {
                progressValue.text = UIHelper.GetTextColorByItemColor(TextColType.Green, StringUtility.Contact(progress, "%"));
            }
            else
            {
                progressValue.text = UIHelper.GetTextColorByItemColor(TextColType.White, StringUtility.Contact(progress, "%"));
            }
        }
     
        if (index == selectIndex)