|
@@ -43,6 +43,7 @@ namespace GFGGame
|
|
|
_ui.m_ComBtn.m_btnMaxFightSpeed.onClick.Add(OnClickBtnMaxFightSpeed);
|
|
|
_ui.m_ComBtn.m_btnCardMaterials.onClick.Add(OnClickBtnMaterials);
|
|
|
_ui.m_ComBtn.m_btnGetSuit.onClick.Add(OnClickBtnGetSuit);
|
|
|
+ _ui.m_ComBtn.m_btnWealth.onClick.Add(OnClickBtnWealth);
|
|
|
_ui.m_btnAddItem.onClick.Add(OnClickBtnAddItem);
|
|
|
_ui.m_btnGM.onClick.Add(OnClickBtnGM);
|
|
|
_ui.m_btnAddNum.onClick.Add(OnClickBtnAddCount);
|
|
@@ -50,20 +51,6 @@ namespace GFGGame
|
|
|
_ui.m_ComBtn.m_btnTeaPartyStart.onClick.Add(OnClickBtnTeaPartyStart);
|
|
|
}
|
|
|
|
|
|
- private void OnClickBtnLeagueSetNum(EventContext context)
|
|
|
- {
|
|
|
- var setType = _ui.m_ComBtn.m_SetLeagueNumType.text;
|
|
|
- var setNum = _ui.m_ComBtn.m_SetNum.text;
|
|
|
- GMController.SendGMCommand($"setLeagueValue 0 {setType} {setNum}", "").Coroutine();
|
|
|
- }
|
|
|
-
|
|
|
- private void OnClickBtnLeagueAddNum(EventContext context)
|
|
|
- {
|
|
|
- var addType = _ui.m_ComBtn.m_AddLeagueNumType.text;
|
|
|
- var addNum = _ui.m_ComBtn.m_AddNum.text;
|
|
|
- GMController.SendGMCommand($"setLeagueValue 1 {addType} {addNum}", "").Coroutine();
|
|
|
- }
|
|
|
-
|
|
|
protected override void OnShown()
|
|
|
{
|
|
|
base.OnShown();
|
|
@@ -83,6 +70,27 @@ namespace GFGGame
|
|
|
GMController.GetAllDressUpItem().Coroutine();
|
|
|
}
|
|
|
|
|
|
+ private void OnClickBtnWealth(EventContext context = null)
|
|
|
+ {
|
|
|
+ AddItemByGM(ConstItemID.POWER, 10000);
|
|
|
+ AddItemByGM(ConstItemID.GOLD, 10000);
|
|
|
+ AddItemByGM(ConstItemID.DIAMOND_RED, 10000);
|
|
|
+ }
|
|
|
+
|
|
|
+ private void OnClickBtnLeagueSetNum(EventContext context)
|
|
|
+ {
|
|
|
+ var setType = _ui.m_ComBtn.m_SetLeagueNumType.text;
|
|
|
+ var setNum = _ui.m_ComBtn.m_SetNum.text;
|
|
|
+ GMController.SendGMCommand($"setLeagueValue 0 {setType} {setNum}", "").Coroutine();
|
|
|
+ }
|
|
|
+
|
|
|
+ private void OnClickBtnLeagueAddNum(EventContext context)
|
|
|
+ {
|
|
|
+ var addType = _ui.m_ComBtn.m_AddLeagueNumType.text;
|
|
|
+ var addNum = _ui.m_ComBtn.m_AddNum.text;
|
|
|
+ GMController.SendGMCommand($"setLeagueValue 1 {addType} {addNum}", "").Coroutine();
|
|
|
+ }
|
|
|
+
|
|
|
private void OnClickBtnGetAllCardItem()
|
|
|
{
|
|
|
GMController.GetAllCardItem().Coroutine();
|
|
@@ -100,19 +108,23 @@ namespace GFGGame
|
|
|
|
|
|
int itemId = int.Parse(infos[0]);
|
|
|
int itemNum = int.Parse(infos[1]);
|
|
|
- if (itemId > 0)
|
|
|
+ AddItemByGM(itemId, itemNum);
|
|
|
+ }
|
|
|
+
|
|
|
+ private void AddItemByGM(int itemId, int itemNum)
|
|
|
+ {
|
|
|
+ if (itemId > 0 && itemNum != 0)
|
|
|
{
|
|
|
string messageSuc;
|
|
|
if (itemNum > 0)
|
|
|
{
|
|
|
messageSuc = "已获得物品" + itemId + "*" + itemNum;
|
|
|
- GMController.SendGMCommand("getItem " + content, messageSuc).Coroutine();
|
|
|
}
|
|
|
- else if (itemNum < 0)
|
|
|
+ else
|
|
|
{
|
|
|
messageSuc = "已扣除物品" + itemId + "*" + itemNum;
|
|
|
- GMController.SendGMCommand("getItem " + content, messageSuc).Coroutine();
|
|
|
}
|
|
|
+ GMController.SendGMCommand($"getItem {itemId} {itemNum}", messageSuc).Coroutine();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -242,6 +254,7 @@ namespace GFGGame
|
|
|
OnClickBtnSetChapter();
|
|
|
OnClickBtnSkipCheckOpen();
|
|
|
OnClickBtnMaterials();
|
|
|
+ OnClickBtnWealth();
|
|
|
}
|
|
|
|
|
|
private void InitChapterText()
|