少年修仙传客户端代码仓库
client_linchunjie
2018-11-22 4ea0cf481d553f4882a4ec0447031d29659d304f
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
2个文件已修改
30 ■■■■ 已修改文件
Core/GameEngine/Login/Launch.cs 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/MainInterfaceWin.cs 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Login/Launch.cs
@@ -13,9 +13,11 @@
    static public LaunchStage currentStage { get { return m_CurrentStage; } }
    static float m_Progress = 0f;
    static public float progress {
    static public float progress
    {
        get { return m_Progress; }
        set {
        set
        {
            if (m_Progress != value)
            {
                m_Progress = value;
@@ -138,16 +140,27 @@
        }
    }
    private byte m_Step = 0;
    void Start()
    {
        m_Step = 0;
        SoundPlayer.Instance.PlayLoginMusic();
        Config.Instance.PreLoadConfigs();
        ServerListCenter.Instance.RequestJumpUrl();
        WindowCenter.Instance.OpenFromLocal<LaunchWin>();
        DebugUtility.Instance.CreateDebugRoot();
        StartCoroutine(Co_Lanuch());
    }
    void Update()
    {
        if (m_Step == 1)
        {
            ServerListCenter.Instance.RequestJumpUrl();
            m_Step = 2;
        }
    }
    IEnumerator Co_Lanuch()
@@ -158,6 +171,8 @@
            yield return null;
        }
#endif
        m_Step = 1;
        var cpu = 2;
        var memory = 2048;
        DeviceUtility.GetCpuAndMemory(out cpu, out memory);
System/MainInterfacePanel/MainInterfaceWin.cs
@@ -938,7 +938,14 @@
                    _ExpSlider.stage = NowLv;
                    _ExpSlider.value = (float)ExpValueFloat;
                }
                _ExpRate.text = (float)Math.Round((double)nowVlaue / maxValue, 2, MidpointRounding.AwayFromZero) * 100 + "%";
                if ((float)Math.Round((double)nowVlaue / maxValue, 2, MidpointRounding.AwayFromZero) >= 1f)
                {
                    _ExpRate.text = "99.9%";
                }
                else
                {
                    _ExpRate.text = (float)Math.Round((double)nowVlaue / maxValue, 2, MidpointRounding.AwayFromZero) * 100 + "%";
                }
            }
        }