|
@@ -75,20 +75,7 @@ namespace GFGGame
|
|
_ui.m_btnPhoto.visible = true;
|
|
_ui.m_btnPhoto.visible = true;
|
|
_ui.m_btnAction.visible = false;
|
|
_ui.m_btnAction.visible = false;
|
|
|
|
|
|
- // MonthlyCardPrivilegeCfg privilegeCfg = MonthlyCardPrivilegeCfgArray.Instance.GetCfg(MonthCardPrivilegeType.Privilege3);
|
|
|
|
- // string[] items = new string[3 + privilegeCfg.value1Arr[0] + privilegeCfg.value2Arr[0]];
|
|
|
|
- // for (int i = 0; i < items.Length; i++)
|
|
|
|
- // {
|
|
|
|
- // if (i <= 3)
|
|
|
|
- // {
|
|
|
|
-
|
|
|
|
- // }else if(i<=(3+privilegeCfg.value1Arr[0])){
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- // }else if()
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
- _ui.m_comboBox.items = new string[] { "我的套装一", "我的套装二", "我的套装三", "我的套装四", "我的套装五", "我的套装六" };
|
|
|
|
|
|
+ // _ui.m_comboBox.items = new string[] { "我的套装一", "我的套装二", "我的套装三", "我的套装四", "我的套装五", "我的套装六" };
|
|
_ui.m_partsList.m_comboBoxRarity.items = new string[] { "高稀有度", "低稀有度", "最近获得" };
|
|
_ui.m_partsList.m_comboBoxRarity.items = new string[] { "高稀有度", "低稀有度", "最近获得" };
|
|
|
|
|
|
InitLists();
|
|
InitLists();
|
|
@@ -148,6 +135,8 @@ namespace GFGGame
|
|
_sceneObject = GameObject.Instantiate(_scenePrefab);
|
|
_sceneObject = GameObject.Instantiate(_scenePrefab);
|
|
}
|
|
}
|
|
MyDressUpHelper.dressUpObj.setSceneObj(_sceneObject);
|
|
MyDressUpHelper.dressUpObj.setSceneObj(_sceneObject);
|
|
|
|
+
|
|
|
|
+ _ui.m_comboBox.items = CustomSuitDataManager.GetSuitPosItems();
|
|
_ui.m_comboBox.selectedIndex = CustomSuitDataManager.currentIndex;
|
|
_ui.m_comboBox.selectedIndex = CustomSuitDataManager.currentIndex;
|
|
MyDressUpHelper.PutOnSuitSavedByPos(CustomSuitDataManager.currentIndex);
|
|
MyDressUpHelper.PutOnSuitSavedByPos(CustomSuitDataManager.currentIndex);
|
|
// UpdateStepBtn();
|
|
// UpdateStepBtn();
|
|
@@ -216,6 +205,19 @@ namespace GFGGame
|
|
}
|
|
}
|
|
private void OnComboBoxChanged()
|
|
private void OnComboBoxChanged()
|
|
{
|
|
{
|
|
|
|
+ if (_ui.m_comboBox.selectedIndex == CustomSuitDataManager.currentIndex) return;
|
|
|
|
+ if (CustomSuitDataManager.GetPosType(_ui.m_comboBox.selectedIndex) == MonthCardType.Gold && !RoleDataManager.CheckIsMonthCardOpenByType(MonthCardType.Gold))
|
|
|
|
+ {
|
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("开通金卡开启");
|
|
|
|
+ _ui.m_comboBox.selectedIndex = CustomSuitDataManager.currentIndex;
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if (CustomSuitDataManager.GetPosType(_ui.m_comboBox.selectedIndex) == MonthCardType.BlackGold && !RoleDataManager.CheckIsMonthCardOpenByType(MonthCardType.BlackGold))
|
|
|
|
+ {
|
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("开通黑金卡开启");
|
|
|
|
+ _ui.m_comboBox.selectedIndex = CustomSuitDataManager.currentIndex;
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
MyDressUpHelper.PutOnSuitSavedByPos(_ui.m_comboBox.selectedIndex);
|
|
MyDressUpHelper.PutOnSuitSavedByPos(_ui.m_comboBox.selectedIndex);
|
|
}
|
|
}
|
|
|
|
|