Пример #1
0
    public bool ShowCaptionUpWnd()
    {
        CombatScene combat = SceneM.GetCurIScene() as CombatScene;

        if (combat != null)
        {
            UserInfo old = combat.m_oldUserInfo;
            if (old.Level < UserDC.GetLevel())
            {
                CaptionUpgradeWnd cuw = WndManager.GetDialog <CaptionUpgradeWnd>();
                int oldMaxPhysical    = UserM.GetMaxPhysical(old.Level);
                int newMaxPhysical    = UserM.GetMaxPhysical(UserDC.GetLevel());
                int oldMaxherolevel   = UserM.GetUserMaxHeroLevel(old.Level);
                int newMaxherolevel   = UserM.GetUserMaxHeroLevel(UserDC.GetLevel());
                cuw.SetData(old.Level, UserDC.GetLevel(),
                            StageDC.GetStageResult().win ? old.Physical - StageDC.GetCounterPartInfo().win_physical : old.Physical - StageDC.GetCounterPartInfo().lose_physical,
                            UserDC.GetPhysical(),
                            oldMaxPhysical, newMaxPhysical, oldMaxherolevel, newMaxherolevel);

                cuw.MyHead.BtnBg.OnClickEventHandler    += BackMainScence;
                cuw.MyHead.BtnClose.OnClickEventHandler += BackMainScence;

                return(true);
            }
        }

        return(false);
    }
Пример #2
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());
        }
    }
Пример #3
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);
            }
        }
    }