Example #1
0
    void OnSetBeginnerBoost()
    {
        var boost = MasterDataUtil.GetMasterDataBeginnerBoost();

        if (boost == null)
        {
            // ホーム画面へ遷移
            NextSequence = MAINMENU_SEQ.SEQ_HOME_MENU;
        }
        else
        {
            if (m_IsExcecLoginBonus == false)
            {
                // ホーム画面へ遷移
                NextSequence = MAINMENU_SEQ.SEQ_HOME_MENU;
            }
            else
            {
                // 初心者ブーストへ遷移
                NextSequence = MAINMENU_SEQ.SEQ_BEGINNER_BOOST;
            }
        }

        LoginBonusFSM.Instance.SendFsmNextEvent();
    }
Example #2
0
    /// <summary>
    /// リストに一括受け取り可能なものがあるかチェックする
    /// </summary>
    /// <returns></returns>
    public bool IsGetReword()
    {
        if (Collection.IsNullOrEmpty())
        {
            return(false);
        }
        MasterDataDefineLabel.AchievementReceiveType receiveType = MasterDataDefineLabel.AchievementReceiveType.NONE;
        if (mission.m_FilterInfo != null)
        {
            receiveType = mission.m_FilterInfo.m_receive_type;
        }

        for (int index = 0; index < Collection.Count; index++)
        {
            if ((Collection[index].IsState_Achieve || Collection[index].IsState_AchieveEffect) == false)
            {
                continue;
            }
            if (MasterDataUtil.CheckReceivePresentType(Collection[index].present_ids, receiveType) == false)
            {
                continue;
            }

            return(true);
        }

        return(false);
    }
Example #3
0
    //------------------------------------------------------------------------

    /*!
     *          @brief		初期化処理
     */
    //------------------------------------------------------------------------
    protected override void Start()
    {
        base.Start();
        if (SceneModeContinuousBattle.Instance != null)
        {
            MasterDataQuest2 master = MasterDataUtil.GetQuest2ParamFromID(SceneModeContinuousBattle.Instance.m_QuestMissionID);
            if (master != null)
            {
                if (m_InGameMenuQuest2 != null)
                {
                    m_QuestName = master.quest_name;
                }

                if (master.enable_autoplay != MasterDataDefineLabel.BoolType.ENABLE)
                {
                    // オートプレイ禁止でなければ、オートプレイボタンの初期状態を設定(出撃画面での設定値を反映)
                    LocalSaveOption cOption      = LocalSaveManager.Instance.LoadFuncOption();
                    bool            is_auto_play = (cOption.m_OptionAutoPlayEnable == (int)LocalSaveDefine.OptionAutoPlayEnable.ON);
                    if (is_auto_play)
                    {
                        BattleParam.setAutoPlayState(BattleParam.AutoPlayState.ON);
                    }
                    else
                    {
                        BattleParam.setAutoPlayState(BattleParam.AutoPlayState.OFF);
                    }
                }
                else
                {
                    // オートプレイ禁止
                    BattleParam.setAutoPlayState(BattleParam.AutoPlayState.NONE);
                }
            }
        }
    }
Example #4
0
 public void setup(MasterDataGacha _master)
 {
     m_Master     = _master;
     ScratchDatas = new List <ScratchListItemContext>();
     MasterDataGacha[] gachaArray;
     if (TutorialManager.IsExists == true)
     {
         gachaArray    = new MasterDataGacha[1];
         gachaArray[0] = _master;
     }
     else
     {
         gachaArray = MasterDataUtil.GetActiveGachaMaster();
     }
     m_CurrentIndex = 0;
     for (int i = 0; i < gachaArray.Length; ++i)
     {
         ScratchListItemContext scratch = new ScratchListItemContext();
         scratch.setup(gachaArray[i]);
         ScratchDatas.Add(scratch);
         if (gachaArray[i].fix_id == m_Master.fix_id)
         {
             m_CurrentIndex = i;
         }
     }
     StartCoroutine(setFirstPage());
     SetUpButtons();
 }
Example #5
0
    public void Show(System.Action callback = null)
    {
        Action action = () =>
        {
            PlayAnimation(AppearAnimationName, () =>
            {
                if (callback != null)
                {
                    callback();
                }
                PlayAnimation(DefaultAnimationName);
            });
        };

        switch (MasterDataUtil.GetQuestType(MainMenuParam.m_ResultQuestID))
        {
        case MasterDataDefineLabel.QuestType.NORMAL:
            assetAutoSetEpisodeBackgroundTexture.Create(m_AreaMaster.area_cate_id, action, action).Load();
            break;

        case MasterDataDefineLabel.QuestType.CHALLENGE:
        {
            MasterDataChallengeEvent eventMaster = MasterDataUtil.GetChallengeEventFromQuestID(MainMenuParam.m_ResultQuestID);
            if (eventMaster != null)
            {
                assetAutoSetEpisodeBackgroundTexture.Create(eventMaster, action, action).Load();
            }
        }
        break;

        default:
            assetAutoSetEpisodeBackgroundTexture.Create(m_AreaMaster.area_cate_id, action, action).Load();
            break;
        }
    }
Example #6
0
    private void setupChallengeTitle(EventScheduleInfo data)
    {
        //開催中のイベントからチェック
        List <MasterDataChallengeEvent> challengeEvents = MasterDataUtil.GetActiveChallengeEvent();

        if (challengeEvents != null &&
            challengeEvents.Count > 0)
        {
            MasterDataChallengeEvent challengeEvent = challengeEvents.Where(a => a.event_id == data.m_MasterDataEvent.event_id).FirstOrDefault();
            if (challengeEvent != null)
            {
                data.m_AreaName = challengeEvent.title;
                return;
            }
        }

        //ないときは開催前
        challengeEvents = MasterFinder <MasterDataChallengeEvent> .Instance.GetAll().Where(a => a.event_id == data.m_MasterDataEvent.event_id).ToList();

        if (challengeEvents != null &&
            challengeEvents.Count > 0)
        {
            challengeEvents.Sort((a, b) => (int)a.timing_start - (int)b.timing_start);
            for (int i = 0; i < challengeEvents.Count; i++)
            {
                if (data.m_MasterDataEvent.timing_start < challengeEvents[i].timing_start)
                {
                    data.m_AreaName = challengeEvents[i].title;
                    return;
                }
            }
        }

        return;
    }
Example #7
0
    private void useItem(uint fix_id)
    {
        ServerDataUtilSend.SendPacketAPI_ItemUse(fix_id)
        .setSuccessAction(_data =>
        {
            UserDataAdmin.Instance.m_StructPlayer = _data.UpdateStructPlayer <RecvItemUse>((PacketStructPlayer)UserDataAdmin.Instance.m_StructPlayer);
            //アイテム情報更新
            updateItemAll();

            MasterDataUseItem itemMaster = MasterFinder <MasterDataUseItem> .Instance.Find((int)fix_id);
            if (itemMaster != null)
            {
                // スタミナ回復ダイアログを表示
                if (MasterDataUtil.ChkUseItemTypeStaminaRecovery(itemMaster))
                {
                    DialogManager.Open1B("sh135q_title", "sh135q_content", "common_button1", true, true)
                    .SetOkEvent(() =>
                    {
                        StartCoroutine(MainMenuWebViewShowChk.PopupWebViewStart(MainMenuWebViewShowChk.PopupWebViewType.Mission));
                    });
                }
                else
                {
                    StartCoroutine(MainMenuWebViewShowChk.PopupWebViewStart(MainMenuWebViewShowChk.PopupWebViewType.Mission));
                }
            }
        })
        .setErrorAction(_data =>
        {
            int i = 0;
            i++;
        })
        .SendStart();
    }
Example #8
0
    /// <summary>
    ///
    /// </summary>
    /// <param name="present_ids"></param>
    private void setupPresent(int[] present_ids)
    {
        MasterDataPresent present = MasterDataUtil.GetPresentParamFromID((uint)present_ids[0]);

        m_SpriteName = string.Empty;
        MainMenuUtil.GetPresentIcon(present, ref m_SpriteName, (sprite) =>
        {
            if (MainMenuUtil.IsWriteIcon(ref m_SpriteName, sprite))
            {
                IconImage = sprite;
            }
        });

        ItemName = MasterDataUtil.GetPresentName(present);
        int num   = MasterDataUtil.GetPresentCount(present);
        int count = 0;

        for (int i = 0; i < present_ids.Length; i++)
        {
            if (present_ids[0] == present_ids[i])
            {
                count++;
            }
        }

        ItemNum = string.Format("{0}", num * count);
    }
    public void OnEndEditBaseUnitID(string value)
    {
        MasterDataParamChara charaMasterData = MasterDataUtil.GetCharaParamFromDrawID(Context.BaseUnitData.id); // キャラクターのマスターデータを取得

        if (charaMasterData != null)
        {
            Context.BaseUnitData.id = charaMasterData.fix_id;
            Context.BaseUnitName    = charaMasterData.name; // 名前

            // アイコン
            UnitIconImageProvider.Instance.Get(
                charaMasterData.fix_id,
                sprite =>
            {
                Context.BaseUnitIcon = sprite;
            });
        }
        else
        {
            Context.BaseUnitData.id = 0;
            Context.BaseUnitName    = "????"; // 名前

            // アイコン
            UnitIconImageProvider.Instance.GetEmpty(sprite =>
            {
                Context.BaseUnitIcon = sprite;
            });
        }
    }
    protected override void PageSwitchSetting(bool initalize)
    {
        base.PageSwitchSetting(initalize);

        if (m_FriendList == null)
        {
            m_FriendList = m_CanvasObj.GetComponentInChildren<FriendList>();
            m_FriendList.SetPositionAjustStatusBar(new Vector2(0, 26), new Vector2(-60, -422));
            m_FriendList.CheckLock = true;//お気に入りチェックON
            m_FriendList.IsViewReload = true; // 更新ボタン表示
        }
        if (m_PageTitle == null)
        {
            m_PageTitle = m_CanvasObj.GetComponentInChildren<PageTitle>();
            m_PageTitle.SetPositionAjustStatusBar(new Vector2(0, -152));
        }


        //---------------------------------------
        // フレンドポイント取得可能なクエストかどうか
        //---------------------------------------
        m_GetQuestFriendPointEnabel = MasterDataUtil.GetQuest2FriendPointEnabel(MainMenuParam.m_QuestSelectMissionID);

        setupFriend();

        //------------------------------------
        // エピソード名・ストーリー名の設定
        //------------------------------------
        m_PageTitle.Title = GameTextUtil.GetText("questfriend_title");

        MainMenuManager.Instance.currentCategory = MAINMENU_CATEGORY.QUEST;
    }
Example #11
0
    public QuestMissionContext(PacketAchievement clearAchievement)
    {
        MasterDataPresent presentData = (!clearAchievement.present_ids.IsNullOrEmpty()) ? MasterDataUtil.GetPresentParamFromID(clearAchievement.present_ids[0]) : null;

        if (presentData != null)
        {
            //TODO MasterDataAchievementConverted → PresentMasterCount とまとめたい
            fix_id = clearAchievement.fix_id;
            int  mastercount = 1;
            uint presentid   = clearAchievement.present_ids[0];
            for (int j = 1; j < clearAchievement.present_ids.Length; j++)
            {
                if (presentid == clearAchievement.present_ids[j])
                {
                    mastercount += 1;
                }
            }

            int itemValue = MasterDataUtil.GetPresentCount(presentData) * mastercount;

            Title    = clearAchievement.draw_msg;
            ItemName = MasterDataUtil.GetPresentName(presentData);
            MainMenuUtil.GetPresentIcon(
                presentData,
                sprite =>
            {
                IconImage = sprite;
            });
            IsViewCount = false;
            ItemValue   = (itemValue > 0) ? itemValue.ToString() : "";
        }
    }
    public void AddUnit(uint unit_id)
    {
        if (unit_id == 0)
        {
            return;
        }

        DebugGetUnitListItemContext unit = Units.Find((v) => v.unitID == 0);

        if (unit == null)
        {
            return;
        }
        MasterDataParamChara charaMaster = MasterDataUtil.GetCharaParamFromID(unit_id);

        if (charaMaster == null)
        {
            return;
        }
        unit.unitID   = unit_id;
        unit.UnitName = string.Format("ID:{0}", charaMaster.draw_id);

        UnitIconImageProvider.Instance.Get(
            unit_id,
            sprite =>
        {
            unit.UnitImage = sprite;
        },
            true);
    }
Example #13
0
    private void openSupportDialog()
    {
        uint   uid        = LocalSaveManager.Instance.LoadFuncUserID();
        string userIdText = string.Format(GameTextUtil.GetText("mt21q_content"), UnityUtil.CreateDrawUserID(uid));
        Dialog newDialog  = Dialog.Create(DialogType.DialogYesNo).SetStrongYes();

        newDialog.SetDialogTextFromTextkey(DialogTextType.Title, "mt21q_title");
        newDialog.SetDialogText(DialogTextType.MainText, userIdText);
        newDialog.SetDialogTextFromTextkey(DialogTextType.YesText, "common_button4");
        newDialog.SetDialogTextFromTextkey(DialogTextType.NoText, "common_button5");
        newDialog.SetDialogEvent(DialogButtonEventType.YES, new System.Action(() =>
        {
            ResetButtons();
            //DG0-1944 お問い合わせは強制的に外部ブラウザーで表示する
            string support_url = MasterDataUtil.GetMasterDataGlobalParamTextFromID(GlobalDefine.WEB_LINK_SUPPORT);
            URLManager.OpenURL(support_url, true);
        }));
        newDialog.EnableFadePanel();
        newDialog.DisableCancelButton();
        newDialog.Show();

        newDialog.SetDialogEvent(DialogButtonEventType.NO, () =>
        {
            ResetButtons();
        });
    }
Example #14
0
    public AssetBundler CreatetIcon()
    {
        Sprite defaultSpite = IconImage;

        IconImage = null;

        string assetName = string.Format("icon{0:D2}", m_EpisodeId);

#if BUILD_TYPE_DEBUG
        Debug.Log("ASSETNAME:" + assetName + " FIX:" + masterDataAreaCategory.fix_id);
#endif

        string assetbundleName = MasterDataUtil.GetMasterDataAreamapBackgroundName(masterDataAreaCategory.background);

        return(AssetBundler.Create().Set(assetbundleName, assetName, (o) =>
        {
            Sprite sprite = o.AssetBundle.LoadAsset <Sprite>(assetName);
            if (sprite != null)
            {
                IconImage = sprite;
            }
            else
            {
                IconImage = defaultSpite;
            }
        },
                                         (error) =>
        {
            IconImage = defaultSpite;
        }));
    }
    /// <summary>
    /// リストの作成
    /// </summary>
    /// <param name="periodLoginMaster"></param>
    public void SetUpList(LoginBonusRecordListContext item)
    {
        SetCount(item.date_count);
        Presents.Clear();
        for (int i = 0; i < item.present_ids.Length; ++i)
        {
            int presentID = item.present_ids[i];
            MasterDataPresent presentMaster = MasterDataUtil.GetPresentParamFromID((uint)presentID);

            LoginBonusPresentListContext present = new LoginBonusPresentListContext();
            MainMenuUtil.GetPresentIcon(presentMaster, sprite => {
                present.IconImage = sprite;
            });
            present.NameText = MasterDataUtil.GetPresentName(presentMaster);
            present.NumText  = string.Format(GameTextUtil.GetText("loginbonus_amount"), MasterDataUtil.GetPresentCount(presentMaster));
            present.NumRate  = GameTextUtil.GetText("loginbonus_multipled");
            Presents.Add(present);
        }

        // 先頭のアイテムの線を非表示にする
        LoginBonusPresentListContext selectItem = Presents.First();

        if (selectItem != null)
        {
            selectItem.IsViewBorder = false;
        }


        PresentItemCount = Presents.Count;
    }
Example #16
0
    protected override void PageSwitchSetting(bool initalize)
    {
        base.PageSwitchSetting(initalize);

        //ページ初期化処理
        if (m_AreaSelect == null)
        {
            m_AreaSelect = m_CanvasObj.GetComponentInChildren <AreaSelect>();
            m_AreaSelect.SetPositionAjustStatusBar(new Vector2(0, -46.25f), new Vector2(0, -172.5f));
        }
        if (m_MenuBanner == null)
        {
            m_MenuBanner = m_CanvasObj.GetComponentInChildren <MenuBanner>();
            m_MenuBanner.SetPositionAjustStatusBar(new Vector2(-125, -217));
            m_MenuBanner.bannerSetup(true);
        }

        m_bReturnHome = false;

        m_ChallengeAreaCategory = null;
        List <MasterDataChallengeEvent> eventList = MasterDataUtil.GetActiveChallengeEvent();

        if (eventList != null &&
            eventList.Count > 0)
        {
            m_ChallengeAreaCategory = MasterDataUtil.GetChallengeAreaCategoryMaster(eventList[0].event_id);
        }

        SettingArea();

        MainMenuManager.Instance.currentCategory = MAINMENU_CATEGORY.QUEST;

        StartCoroutine(MainMenuWebViewShowChk.PopupWebViewStart(MainMenuWebViewShowChk.PopupWebViewType.Mission));
    }
Example #17
0
    private void addMaterial(uint chara_id)
    {
        uint id = (uint)MaterialList.Count;
        MasterDataParamChara materialMaster = MasterDataUtil.GetCharaParamFromID(chara_id);

        if (materialMaster == null)
        {
            return;
        }
        MaterialValue += materialMaster.name + "\n";

        var iconModel = new ListItemModel((uint)id);

        MaterialDataContext _newData = new MaterialDataContext(iconModel);

        _newData.m_Id       = (int)id;
        _newData.m_CharaId  = chara_id;
        _newData.IsViewIcon = true;
        UnitIconImageProvider.Instance.Get(
            chara_id,
            sprite =>
        {
            _newData.IconImage = sprite;
        });
        _newData.IconColor = new Color(1, 1, 1);

        _newData.Width  = m_IconSize;
        _newData.Height = m_IconSize;
        _newData.calcScale();

        _newData.SelectImage = ResourceManager.Instance.Load("icon_square1");

        MaterialList.Add(_newData);
    }
    public void OnEndEditNo(string value)
    {
        uint u;

        uint.TryParse(value, out u);
        SetUpParamChara(MasterDataUtil.GetCharaParamFromDrawID(u));
    }
Example #19
0
    /// <summary>
    /// ベースユニットとして選択できるか
    /// </summary>
    /// <param name="_unit"></param>
    /// <returns></returns>
    private bool CheckBaseUnit(PacketStructUnit _unit)
    {
        UnitGridParam unit = UserDataAdmin.Instance.SearchUnitGridParam(_unit.unique_id);

        if (unit == null)
        {
            return(false);
        }
        if (unit.master == null)
        {
            return(false);
        }
        MasterDataLimitOver cLimitOver = MasterDataUtil.GetLimitOverFromID(unit.master.limit_over_type);

        if (cLimitOver == null)
        {
            return(false);
        }
        if (unit.limitover_lv >= cLimitOver.limit_over_max)
        {
            return(false);
        }

        return(true);
    }
Example #20
0
    public void OnEndEditID(string value)
    {
        uint unitID;

        uint.TryParse(value, out unitID);
        SetUpParamChara(MasterDataUtil.GetCharaParamFromID(unitID));
    }
Example #21
0
    /// <summary>
    /// MAP背景画像を設定する.
    /// </summary>
    /// <param name="category">リージョンカテゴリ</param>
    /// <param name="fixId">MasterDataRegionのfix_id</param>
    private void SetAreaBackground(MasterDataDefineLabel.REGION_CATEGORY category, uint fixId, Action action)
    {
        if (m_AreaSelect == null)
        {
            return;
        }

        // デフォルトの背景を設定する.
        Sprite defaultSprite = null;

        switch (m_CurrentRegionMaster.category)
        {
        case MasterDataDefineLabel.REGION_CATEGORY.STORY:
            defaultSprite = m_AreaSelect.backgroundSprites[0];
            break;

        case MasterDataDefineLabel.REGION_CATEGORY.MATERIAL:
            defaultSprite = m_AreaSelect.backgroundSprites[1];
            break;

        case MasterDataDefineLabel.REGION_CATEGORY.EVENT:
            defaultSprite = m_AreaSelect.backgroundSprites[2];
            break;
        }

        var assetBundleName = string.Format("AreaBackGround_{0}", fixId);
        // 該当ファイルがAssetBundlePathMasterに存在しない場合は、カテゴリ毎のデフォルト画像を設定する.
        var assetBundlePath = MasterDataUtil.GetMasterDataAssetBundlePath(assetBundleName);

        if (assetBundlePath != null)
        {
            AssetBundler.Create().Set(
                assetBundleName, (o) =>
            {
                m_AreaSelect.BackGroundImage = o.GetAsset <Sprite>();
                if (action != null)
                {
                    action();
                }
            },
                (s) =>
            {
                m_AreaSelect.BackGroundImage = defaultSprite;
                if (action != null)
                {
                    action();
                }
            }
                ).Load();
        }
        else
        {
            m_AreaSelect.BackGroundImage = defaultSprite;
            if (action != null)
            {
                action();
            }
        }
    }
    public void SetLinkEffectSkill(MasterDataParamChara cCharaMasterData, uint nLinkPoint)
    {
        //------------------------------------------------------------
        // LINK SKILL
        //------------------------------------------------------------
        MasterDataSkillActive cSkillParamLinkActive = null;

        if (cCharaMasterData != null)
        {
            cSkillParamLinkActive = MasterDataUtil.GetActiveSkillParamFromID(cCharaMasterData.link_skill_active);
        }
        if (null != cSkillParamLinkActive)
        {
            // スキル名
            LinkSkillName = cSkillParamLinkActive.skill_link_name;

            // 説明文
            LinkSkillMessage = cSkillParamLinkActive.skill_link_detail;

            //発動率
            float fSkillOdds = CharaLinkUtil.GetLinkSkillOdds(cSkillParamLinkActive, (int)nLinkPoint) * 0.01f;
            LinkSkillRate = string.Format(GameTextUtil.GetText("unit_linkstatus2"), fSkillOdds.ToString("F1"));
        }
        else
        {
            // スキル名
            LinkSkillName = EmptyStr;
            // 説明文
            LinkSkillMessage = EmptyStr;
            // 発動率
            LinkSkillRate = "";
        }

        //------------------------------------------------------------
        // LINK PASSIVE
        //------------------------------------------------------------
        MasterDataSkillPassive cSkillParamLinkPassive = null;

        if (cCharaMasterData != null)
        {
            cSkillParamLinkPassive = MasterDataUtil.GetPassiveSkillParamFromID(cCharaMasterData.link_skill_passive);
        }
        if (null != cSkillParamLinkPassive)
        {
            // スキル名
            LinkPassiveName = cSkillParamLinkPassive.name;

            // 説明文
            LinkPassiveMessage = cSkillParamLinkPassive.detail;
        }
        else
        {
            // スキル名
            LinkPassiveName = EmptyStr;

            // 説明文
            LinkPassiveMessage = EmptyStr;
        }
    }
Example #23
0
    //----------------------------------------------------------------------------

    /*!
     *          @brief	強化時の限界突破ボーナス値
     */
    //----------------------------------------------------------------------------
    static public double GetParamBuildUpLimitOverBouns(double dLimitOverLevel, double dLimitOverMax, int nDefalutUnitExp)
    {
        double dLoBouns = MasterDataUtil.GetBuildUpLimitOverBonus() * (dLimitOverLevel / dLimitOverMax);

        double dBuildUpBouns = (double)(nDefalutUnitExp * (dLimitOverLevel + 1) * (1 + dLoBouns) - nDefalutUnitExp);

        return(dBuildUpBouns);
    }
Example #24
0
    //----------------------------------------------------------------------------

    /*!
     *          @brief	売却時の限界突破ボーナス値
     */
    //----------------------------------------------------------------------------
    static public double GetParamSaleLimitOverBouns(double dLimitOverLevel, double dLimitOverMax, uint unUnitMoney)
    {
        double dLoBouns = MasterDataUtil.GetSaleLimitOverBonus() * (dLimitOverLevel / dLimitOverMax);

        double dSaleBouns = (double)(unUnitMoney * (dLimitOverLevel + 1) * (1 + dLoBouns) - unUnitMoney);

        return(dSaleBouns);
    }
    public void GetQuestSerialNumber()
    {
        uint unGetSerialNum   = 0;
        uint unGetSerialTotal = 0;

        MasterDataUtil.GetQuestSerialNumber(unQuestID, unAreaID, ref unGetSerialNum, ref unGetSerialTotal);
        Debug.Log("GetQuestSerialNumber(" + unQuestID.ToString() + " , " + unAreaID.ToString() + ") " + unGetSerialNum.ToString() + " , " + unGetSerialTotal.ToString());
    }
Example #26
0
    private void OnSwitch2()
    {
        SoundUtil.PlaySE(SEID.SE_MM_A03_TAB);

        MainMenuParam.m_RegionID = MasterDataUtil.GetRegionIDFromCategory(MasterDataDefineLabel.REGION_CATEGORY.EVENT);
        m_AreaCategory           = new MasterDataDefineLabel.AreaCategory[] { MasterDataDefineLabel.AreaCategory.RN_EVENT };
        SelectArea();
    }
Example #27
0
 public void setupIcon(MasterDataUseItem _itemMaster)
 {
     MasterDataUtil.GetItemIcon(
         _itemMaster,
         sprite =>
     {
         IconImage = sprite;
     });
 }
Example #28
0
 private void openDialogUnitOver()
 {
     if (UserDataAdmin.Instance.m_StructPlayer.extend_unit < MasterDataUtil.GetMasterDataGlobalParamFromID(GlobalDefine.GLOBALPARAMS_UNIT_MAX_EXTEND))
     {
         // ユニット所持枠購入上限内
         Dialog newDialog = Dialog.Create(DialogType.DialogOK);
         newDialog.SetDialogTextFromTextkey(DialogTextType.Title, "kk116q_title");
         newDialog.SetDialogTextFromTextkey(DialogTextType.MainText, "kk116q_content");
         newDialog.SetDialogTextFromTextkey(DialogTextType.OKText, "common_button1");
         newDialog.SetDialogObjectEnabled(DialogObjectType.VerticalButtonList, true);
         newDialog.addVerticalButton(GameTextUtil.GetText("icon_button_01"), () =>
         {
             //ユニット枠拡張
             StoreDialogManager.Instance.OpenDialogUnitExtend();
         });
         newDialog.addVerticalButton(GameTextUtil.GetText("icon_button_02"), null, () =>
         {
             if (MainMenuManager.HasInstance)
             {
                 MainMenuParam.m_BuildupBaseUnitUniqueId = 0;
                 MainMenuManager.Instance.AddSwitchRequest(MAINMENU_SEQ.SEQ_UNIT_BUILDUP, false, false);
             }
         });
         newDialog.addVerticalButton(GameTextUtil.GetText("icon_button_03"), null, () =>
         {
             if (MainMenuManager.HasInstance)
             {
                 MainMenuManager.Instance.AddSwitchRequest(MAINMENU_SEQ.SEQ_UNIT_SALE, false, false);
             }
         });
         newDialog.Show();
     }
     else
     {
         Dialog newDialog = Dialog.Create(DialogType.DialogOK);
         newDialog.SetDialogTextFromTextkey(DialogTextType.Title, "kk116q_title");
         newDialog.SetDialogTextFromTextkey(DialogTextType.MainText, "error_response_content71");
         newDialog.SetDialogTextFromTextkey(DialogTextType.OKText, "common_button1");
         newDialog.SetDialogObjectEnabled(DialogObjectType.VerticalButtonList, true);
         newDialog.addVerticalButton(GameTextUtil.GetText("icon_button_02"), null, () =>
         {
             if (MainMenuManager.HasInstance)
             {
                 MainMenuParam.m_BuildupBaseUnitUniqueId = 0;
                 MainMenuManager.Instance.AddSwitchRequest(MAINMENU_SEQ.SEQ_UNIT_BUILDUP, false, false);
             }
         });
         newDialog.addVerticalButton(GameTextUtil.GetText("icon_button_03"), null, () =>
         {
             if (MainMenuManager.HasInstance)
             {
                 MainMenuManager.Instance.AddSwitchRequest(MAINMENU_SEQ.SEQ_UNIT_SALE, false, false);
             }
         });
         newDialog.Show();
     }
 }
    public void OnClickClear()
    {
        m_Y = m_adjustY;
        m_OffsetYInputField.text = m_Y.ToString();

        CheckAdjustUV();
        SetUpPosition();
        SetUpParamChara(MasterDataUtil.GetCharaParamFromID(m_InitCharaID));
    }
Example #30
0
    private void SetModel()
    {
        m_helpBufEvent = MainMenuUtil.checkHelpBufEvent();
        CheckSkillUpEvent();
        m_unitBufEvent = (MainMenuParam.m_BlendBuildEventSLV != 0);
        m_footer       = new MainMenuFooterModel();

        m_footer.OnDisappearingBegan += () =>
        {
            PlayAnimation(DisappearAnimationName);
        };

        m_footer.OnAppeared += () =>
        {
            m_isFooterAppeared = true;
            m_helpButton       = ButtonList[(int)FOOTER_MENU_TYPE.QUEST].GetComponentInChildren <MainMenuFooterHelpButton>();
            if (m_helpButton != null)
            {
                if (MainMenuManager.Instance != null &&
                    MainMenuManager.Instance.currentCategory == MAINMENU_CATEGORY.QUEST)
                {
                    m_helpButton.setBufEvent(false);
                }
                else
                {
                    if (MainMenuParam.m_PartyAssignPrevPage == MAINMENU_SEQ.SEQ_QUEST_SELECT_PARTY)
                    {
                        m_helpButton.setBufEvent(false);
                    }
                    else
                    {
                        m_helpButton.setBufEvent(true);
                    }
                }
            }
            m_unitsButton = ButtonList[(int)FOOTER_MENU_TYPE.UNITS].GetComponentInChildren <MainMenuFooterUnitsButton>();
            if (m_unitsButton != null)
            {
                if (MainMenuManager.Instance != null &&
                    MainMenuManager.Instance.currentCategory == MAINMENU_CATEGORY.UNIT)
                {
                    m_unitsButton.setBufEvent(false);
                }
                else
                {
                    m_unitsButton.setBufEvent(true);
                }
            }
            m_gachaButton = ButtonList[(int)FOOTER_MENU_TYPE.SCRATCH].GetComponentInChildren <MainMenuFooterGachaButton>();
            if (m_gachaButton != null)
            {
                bool bFlag = MasterDataUtil.CheckFirstTimeFree();
                m_gachaButton.SetFlag(bFlag);
            }
        };
    }