|
@@ -1,7 +1,9 @@
|
|
|
using FairyGUI;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Text.RegularExpressions;
|
|
|
+using cn.sharesdk.unity3d;
|
|
|
using UI.RoleInfo;
|
|
|
+using UnityEngine;
|
|
|
|
|
|
namespace GFGGame
|
|
|
{
|
|
@@ -15,6 +17,7 @@ namespace GFGGame
|
|
|
{
|
|
|
_ui.Dispose();
|
|
|
}
|
|
|
+
|
|
|
_ui = null;
|
|
|
base.Dispose();
|
|
|
}
|
|
@@ -131,6 +134,7 @@ namespace GFGGame
|
|
|
{
|
|
|
messageSuc = "已扣除物品" + itemId + "*" + itemNum;
|
|
|
}
|
|
|
+
|
|
|
GMController.SendGMCommand($"getItem {itemId} {itemNum}", messageSuc).Coroutine();
|
|
|
}
|
|
|
else
|
|
@@ -147,6 +151,7 @@ namespace GFGGame
|
|
|
PromptController.Instance.ShowFloatTextPrompt("请输入数字");
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
string lv = _ui.m_ComBtn.m_txtRoleLv.text;
|
|
|
string messageSuc = "等级提升至" + lv;
|
|
|
|
|
@@ -163,6 +168,7 @@ namespace GFGGame
|
|
|
PromptController.Instance.ShowFloatTextPrompt("请输入数字");
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
string content = _ui.m_ComBtn.m_txtChapter.text + " " + _ui.m_ComBtn.m_txtChapterLv.text;
|
|
|
string messageSuc = string.Format("当前关卡第{0}章第{1}关", _ui.m_ComBtn.m_txtChapter.text,
|
|
|
_ui.m_ComBtn.m_txtChapterLv.text);
|
|
@@ -227,6 +233,7 @@ namespace GFGGame
|
|
|
{
|
|
|
continue;
|
|
|
}
|
|
|
+
|
|
|
LeagueSkillCfg skillCfg = LeagueSkillCfgArray.Instance.GetCfg(skillId);
|
|
|
// List<LeagueSkillCfg> lastSkillCfgs = LeagueSkillCfgArray.Instance.GetCfgsBytypeAndlayer(_type, skillCfg.layer - 1);
|
|
|
// for (int j = 0; j < lastSkillCfgs.Count; j++)
|
|
@@ -243,8 +250,10 @@ namespace GFGGame
|
|
|
PromptController.Instance.ShowFloatTextPrompt("消耗不足");
|
|
|
break;
|
|
|
}
|
|
|
+
|
|
|
await SkillSProxy.ReqActiveSkill(SkillType.LeagueSkill, skillId);
|
|
|
}
|
|
|
+
|
|
|
PromptController.Instance.ShowFloatTextPrompt("学习结束");
|
|
|
}
|
|
|
|
|
@@ -255,6 +264,7 @@ namespace GFGGame
|
|
|
{
|
|
|
GameGlobal.skipGuide = true;
|
|
|
}
|
|
|
+
|
|
|
OnClickBtnGetAllDressUpItem();
|
|
|
OnClickBtnGetAllCardItem();
|
|
|
|
|
@@ -270,7 +280,8 @@ namespace GFGGame
|
|
|
{
|
|
|
var chapterCount = StoryChapterCfgArray.Instance.GetCfgsBysubType(ConstInstanceZonesSubType.Normal).Count;
|
|
|
_ui.m_ComBtn.m_txtChapter.text = "" + chapterCount;
|
|
|
- StoryChapterCfg storyChapterCfg = StoryChapterCfgArray.Instance.GetCfgBysubTypeAndorder(ConstInstanceZonesSubType.Normal, chapterCount);
|
|
|
+ StoryChapterCfg storyChapterCfg =
|
|
|
+ StoryChapterCfgArray.Instance.GetCfgBysubTypeAndorder(ConstInstanceZonesSubType.Normal, chapterCount);
|
|
|
_ui.m_ComBtn.m_txtChapterLv.text = "" + storyChapterCfg.levelCount;
|
|
|
}
|
|
|
|
|
@@ -278,6 +289,7 @@ namespace GFGGame
|
|
|
{
|
|
|
FightDataManager.Instance.maxFightSpeed = 8;
|
|
|
}
|
|
|
+
|
|
|
private void OnClickBtnMaterials()
|
|
|
{
|
|
|
List<ItemCfg> itemCfgs = ItemCfgArray.Instance.GetCfgsByitemType(ConstItemType.ITEM);
|
|
@@ -288,7 +300,6 @@ namespace GFGGame
|
|
|
string successMessage = string.Format("已获取 【{0} * {1}】", itemCfgs[i].name, 1000);
|
|
|
GMController.SendGMCommand("getItem " + content, successMessage).Coroutine();
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
private void OnClickBtnGetSuit()
|
|
@@ -299,6 +310,7 @@ namespace GFGGame
|
|
|
{
|
|
|
PromptController.Instance.ShowFloatTextPrompt("套装配置不存在");
|
|
|
}
|
|
|
+
|
|
|
for (int i = 0; i < suitCfg.partsArr.Length; i++)
|
|
|
{
|
|
|
string content = string.Format("{0} {1}", suitCfg.partsArr[i], 1);
|
|
@@ -306,6 +318,7 @@ namespace GFGGame
|
|
|
string successMessage = string.Format("已获取 【{0} * {1}】", name, 1000);
|
|
|
GMController.SendGMCommand("getItem " + content, successMessage).Coroutine();
|
|
|
}
|
|
|
+
|
|
|
for (int i = 0; i < suitCfg.partsOptionalArr.Length; i++)
|
|
|
{
|
|
|
string content = string.Format("{0} {1}", suitCfg.partsOptionalArr[i], 1);
|
|
@@ -314,6 +327,7 @@ namespace GFGGame
|
|
|
GMController.SendGMCommand("getItem " + content, successMessage).Coroutine();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
private void OnClickBtnGM(EventContext context)
|
|
|
{
|
|
|
string content = _ui.m_inputGM.text;
|
|
@@ -323,6 +337,7 @@ namespace GFGGame
|
|
|
PromptController.Instance.ShowFloatTextPrompt("请按照指定格式输入物品信息", MessageType.ERR);
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
switch (infos[0])
|
|
|
{
|
|
|
case "cjstime":
|
|
@@ -331,6 +346,7 @@ namespace GFGGame
|
|
|
PromptController.Instance.ShowFloatTextPrompt("请输入以秒为单位的正确的时间戳");
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
LuckyBoxDataManager.Instance.startTime = int.Parse(infos[1]);
|
|
|
PromptController.Instance.ShowFloatTextPrompt("设置成功");
|
|
|
|
|
@@ -341,6 +357,7 @@ namespace GFGGame
|
|
|
PromptController.Instance.ShowFloatTextPrompt("请输入以秒为单位的正确的时间戳");
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
LuckyBoxDataManager.Instance.endTime = int.Parse(infos[1]);
|
|
|
PromptController.Instance.ShowFloatTextPrompt("设置成功");
|
|
|
break;
|
|
@@ -369,17 +386,48 @@ namespace GFGGame
|
|
|
if (string.IsNullOrEmpty(num)) return;
|
|
|
GMController.SendGMCommand($"addNum {roleNumType} {num}", "").Coroutine();
|
|
|
}
|
|
|
+
|
|
|
private void OnClickShareTest1(EventContext context = null)
|
|
|
{
|
|
|
-
|
|
|
+ QDShareManager.Instance.SubmitPolicyGrantResult();
|
|
|
+ ShareContent content = new ShareContent();
|
|
|
+ content.SetText("this is a test string.");
|
|
|
+ content.SetImageUrl("https://f1.webshare.mob.com/code/demo/img/1.jpg");
|
|
|
+ content.SetTitle("test title");
|
|
|
+ content.SetSite("Mob-ShareSDK");
|
|
|
+ content.SetComment("test description");
|
|
|
+ content.SetShareType(ContentType.Image);
|
|
|
+ PlatformType[] platformTypes = new[]
|
|
|
+ { PlatformType.WeChatMoments, PlatformType.WeChat, PlatformType.WeChatFavorites };
|
|
|
+ QDShareManager.Instance.ShowPlatformList(platformTypes, content);
|
|
|
}
|
|
|
+
|
|
|
private void OnClickShareTest2(EventContext context = null)
|
|
|
{
|
|
|
-
|
|
|
+ ShareContent content = new ShareContent();
|
|
|
+ content.SetText("this is a test string.");
|
|
|
+ content.SetImageUrl("https://f1.webshare.mob.com/code/demo/img/1.jpg");
|
|
|
+ content.SetTitle("test title");
|
|
|
+ content.SetTitleUrl("http://www.mob.com");
|
|
|
+ content.SetSite("Mob-ShareSDK");
|
|
|
+ content.SetSiteUrl("http://www.mob.com");
|
|
|
+ content.SetUrl("http://www.mob.com");
|
|
|
+ content.SetComment("test description");
|
|
|
+ //content.SetMusicUrl("http://mp3.mwap8.com/destdir/Music/2009/20090601/ZuiXuanMinZuFeng20090601119.mp3");
|
|
|
+ content.SetShareType(ContentType.Image);
|
|
|
+ QDShareManager.Instance.ShowShareContentEditor(PlatformType.WeChat, content);
|
|
|
}
|
|
|
+
|
|
|
private void OnClickShareTest3(EventContext context = null)
|
|
|
{
|
|
|
-
|
|
|
+ ShareContent content = new ShareContent();
|
|
|
+ content.SetText("this is a test string.");
|
|
|
+ content.SetImageUrl("https://f1.webshare.mob.com/code/demo/img/1.jpg");
|
|
|
+ content.SetTitle("test title");
|
|
|
+ content.SetSite("Mob-ShareSDK");
|
|
|
+ content.SetComment("test description");
|
|
|
+ content.SetShareType(ContentType.Image);
|
|
|
+ QDShareManager.Instance.ShareContent(PlatformType.WeChat, content);
|
|
|
}
|
|
|
}
|
|
|
}
|