Beispiel #1
0
    void ShowCombatResult()
    {
        CaptionUpgradeWnd cuw = WndManager.FindDialog <CaptionUpgradeWnd>();

        if (cuw != null)
        {
            WndManager.DestoryDialog <CaptionUpgradeWnd>();
        }
        WndManager.ShowAllWnds(false);
        StageResultWnd        wnd        = WndManager.GetDialog <StageResultWnd>();
        BattleEnvironmentMode battleMode = BattleEnvironmentM.GetBattleEnvironmentMode();

        if (wnd != null)
        {
            wnd.SetStageResult(StageDC.GetStageResult());
        }
    }
Beispiel #2
0
    void ShowScriptCombatResult(int nErrorCode)
    {
        CaptionUpgradeWnd cuw = WndManager.FindDialog <CaptionUpgradeWnd>();

        if (cuw != null)
        {
            WndManager.DestoryDialog <CaptionUpgradeWnd>();
        }
        WndManager.ShowAllWnds(false);
        StageResultWnd        wnd        = WndManager.GetDialog <StageResultWnd>();
        BattleEnvironmentMode battleMode = BattleEnvironmentM.GetBattleEnvironmentMode();

        if (wnd != null)
        {
            wnd.SetStageResult(StageDC.GetStageResult());
            List <StageDC.ScriptDropItem> items = StageDC.GetStageScriptDrops();
            foreach (StageDC.ScriptDropItem item in items)
            {
                wnd.SetScriptDropItem(item.mType, item.mID, item.mCount);
            }
        }
    }