コード例 #1
0
    private void ShowMacroResult()
    {
        MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI;

        if (msgBoxUI == null)
        {
            return;
        }
        string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3600");

        string text = string.Empty;

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3601"),
            "count1",
            this.m_iMacroWinCount,
            "count2",
            this.m_iMacroDefeatCount
        });

        string macroResultSubMessage = this.GetMacroResultSubMessage(this.m_iMacroWinCount, this.m_iMacroDefeatCount);

        if (!string.IsNullOrEmpty(macroResultSubMessage))
        {
            text = text + "\n\n" + macroResultSubMessage;
        }
        msgBoxUI.SetMessageFontSize(32);
        msgBoxUI.SetMsg(null, null, null, null, textFromInterface, text, eMsgType.MB_OK);
        msgBoxUI.Show();
    }