赛事功能完善
创建比赛按钮;loading页面more按钮等
This commit is contained in:
1 parent
eed2d13624
commit
e76b5c443f
55 files changed
+7805
-3376
No files matched your search
@@ -50,6 +50,17 @@ public class HomeController : PFUIPanel
|
||||
UIManager.AddEvent(BtnMatch.gameObject, EventTriggerType.PointerEnter, OnHover);
|
||||
UIManager.AddEvent(BtnMatch.gameObject, EventTriggerType.PointerExit, OnExit);
|
||||
BtnTraining = BtnContainer.Find("BtnTraining");
|
||||
UIManager.AddEvent(BtnTraining.gameObject, EventTriggerType.PointerClick, (e) =>
|
||||
{
|
||||
var path = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\PowerFun\Rhino.PowerFun.exe";
|
||||
//Debug.Log(System.IO.File.Exists(path + ));
|
||||
if (!System.IO.File.Exists(path))
|
||||
{
|
||||
return;
|
||||
}
|
||||
Utils.ExecFile(path);
|
||||
Application.Quit();
|
||||
});
|
||||
UIManager.AddEvent(BtnTraining.gameObject, EventTriggerType.PointerEnter, OnHover);
|
||||
UIManager.AddEvent(BtnTraining.gameObject, EventTriggerType.PointerExit, OnExit);
|
||||
var avatar = userInfo.Find("Avatar").GetComponent<RawImage>();
|
||||
|
||||
@@ -56,6 +56,12 @@ public class UserInfoController : PFUIPanel
|
||||
editBtn.gameObject.SetActive(false);
|
||||
});
|
||||
summaryPanel = transform.Find("SummaryPanel");
|
||||
//创建比赛
|
||||
var createBtn = summaryPanel.Find("CreateBtn").gameObject;
|
||||
UIManager.AddEvent(createBtn, EventTriggerType.PointerClick, (b) =>
|
||||
{
|
||||
Application.OpenURL(App.CurrentUser.WebHost + "#/Mine/EditMatch?Token=" + App.CurrentUser.cookie);
|
||||
});
|
||||
}
|
||||
public override void Show()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user