private bool UpdateButtonImage(GachaCostType cost = GachaCostType.NONE) { if (cost == GachaCostType.NONE || cost == GachaCostType.ALL) { return(false); } ((ImageArray)this.gachaBtn.GetComponent <ImageArray>()).ImageIndex = cost != GachaCostType.COIN_P ? 0 : 1; return(true); }
public GachaRequestParam(string _iname) { this.m_iname = _iname; this.m_cost = 0; this.m_confirm_text = string.Empty; this.m_costtype = GachaCostType.NONE; this.m_category = GachaCategory.NONE; this.m_use_onemore = false; this.m_no_use_free = false; }
public GachaRequestParam(string _iname, int _cost, string _confirm_text, GachaCostType _cost_type, GachaCategory _category, bool _use_onemore, bool _no_use_free = false) { this.m_iname = _iname; this.m_cost = _cost; this.m_confirm_text = _confirm_text; this.m_costtype = _cost_type; this.m_category = _category; this.m_use_onemore = _use_onemore; this.m_no_use_free = _no_use_free; }
public bool SetGachaButtonUIParameter(GachaCostType cost_type = GachaCostType.NONE, GachaButton.GachaCategoryType category_type = GachaButton.GachaCategoryType.NONE) { if (cost_type == GachaCostType.NONE || cost_type == GachaCostType.ALL || (category_type == GachaButton.GachaCategoryType.NONE || category_type == GachaButton.GachaCategoryType.ALL)) { return(false); } this.mCostType = cost_type; this.mCategoryType = category_type; this.mUpdateTrigger = true; return(true); }
public GachaButtonParam() { this.m_Cost = 0; this.m_StepIndex = 0; this.m_StepMax = 0; this.m_TicketNum = 0; this.m_ExecNum = 0; this.m_ButtonText = string.Empty; this.m_AppealText = string.Empty; this.m_IsShowStepup = true; this.m_IsNoUseFree = false; this.m_CostType = GachaCostType.NONE; this.m_Category = GachaCategory.NONE; }
public GachaButtonParam(int _cost, int _step_index, int _step_max, int _ticket_num, int _exec_num, int _appeal_type, string _button_text, string _appeal_text, bool _is_show_stepup, bool _is_nouse_free, GachaCostType _cost_type, GachaCategory _category) { this.m_Cost = _cost; this.m_StepIndex = _step_index; this.m_StepMax = _step_max; this.m_TicketNum = _ticket_num; this.m_ExecNum = _exec_num; this.m_AppealType = _appeal_type; this.m_ButtonText = _button_text; this.m_AppealText = _appeal_text; this.m_IsShowStepup = _is_show_stepup; this.m_IsNoUseFree = _is_nouse_free; this.m_CostType = _cost_type; this.m_Category = _category; }
public GachaButtonParam(GachaButtonParam _param) { this.m_Cost = _param.Cost; this.m_StepIndex = _param.StepIndex; this.m_StepMax = _param.StepMax; this.m_TicketNum = _param.TicketNum; this.m_ExecNum = _param.ExecNum; this.m_AppealType = _param.AppealType; this.m_ButtonText = _param.ButtonText; this.m_AppealText = _param.AppealText; this.m_IsShowStepup = _param.IsShowStepup; this.m_IsNoUseFree = _param.IsNoUseFree; this.m_CostType = _param.CostType; this.m_Category = _param.Category; }
private bool UpdateCostBG(GachaCostType _cost_type = GachaCostType.NONE) { if (_cost_type == GachaCostType.NONE || _cost_type == GachaCostType.ALL) { DebugUtility.LogError("コストタイプが指定されていません"); return(false); } if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.costBG, (UnityEngine.Object)null)) { DebugUtility.LogError("コストアイコンを表示するオブジェクトが指定されていません"); return(false); } if (_cost_type == GachaCostType.TICKET) { ((Component)this.costBG.get_transform().get_parent()).get_gameObject().SetActive(false); return(true); } ((Component)this.costBG.get_transform().get_parent()).get_gameObject().SetActive(true); ((ImageArray)this.costBG.GetComponent <ImageArray>()).ImageIndex = _cost_type == GachaCostType.COIN || _cost_type == GachaCostType.COIN_P ? 0 : 1; return(true); }
private bool UpdateCostNumber(int _cost, int _exec_num, GachaCostType _cost_type, GachaCategory _gacha_category, bool _is_nouse_free = false) { Transform child1 = this.costBG.get_transform().FindChild("num"); Transform child2 = this.costBG.get_transform().FindChild("num_free"); if (UnityEngine.Object.op_Equality((UnityEngine.Object)child1, (UnityEngine.Object)null) || UnityEngine.Object.op_Equality((UnityEngine.Object)child2, (UnityEngine.Object)null)) { DebugUtility.LogError("消費コストを表示するオブジェクトが存在しません"); return(false); } ((Component)child1).get_gameObject().SetActive(false); ((Component)child2).get_gameObject().SetActive(false); bool flag = false; switch (_gacha_category) { case GachaCategory.NONE: if (_cost == 0) { flag = true; break; } break; case GachaCategory.DEFAULT_RARE: flag = _exec_num == 1 && _cost_type == GachaCostType.COIN && !_is_nouse_free && this.gm.Player.CheckFreeGachaCoin(); break; default: flag = _exec_num == 1 && this.gm.Player.CheckFreeGachaGold(); break; } ((Component)child2).get_gameObject().SetActive(flag); ((Component)child1).get_gameObject().SetActive(!flag); this.RefreshCostNum(_cost); return(true); }