新页面框架(PC)
This commit is contained in:
1 parent
ef3e3a8321
commit
fa144dbaa0
21 files changed
+5457
-137
No files matched your search
@@ -102,6 +102,7 @@ public class MainController : BaseScene
|
||||
else
|
||||
{
|
||||
UIManager.ShowHomePanel();
|
||||
//UIManager.ShowNewRouteOverviewPanel();
|
||||
//UIManager.ShowUserInfoPanel();
|
||||
//UIManager.ShowEditUserPanel();
|
||||
//UIManager.ShowBigMapPanel();
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4af62cb706fda9942811083d25f8979c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,18 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class NewRouteGroupController : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2959aae525eea154bbb9c039b9166fd5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class NewRouteOverviewController: PFUIPanel
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
Transform tmpGroup;
|
||||
Transform tmpItem;
|
||||
void Start()
|
||||
{
|
||||
tmpGroup = Resources.Load<Transform>("UI/Prefab/NewRoute/RouteGroup");
|
||||
tmpItem = Resources.Load<Transform>("UI/Prefab/NewRoute/RouteItem");
|
||||
var rect = transform.Find("Container/Right/Scroll View/Viewport/Content")
|
||||
.GetComponent<RectTransform>();
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
var group = Instantiate<Transform>(tmpGroup);
|
||||
for (int j = 0; j < 10; j++)
|
||||
{
|
||||
var item = Instantiate<Transform>(tmpItem);
|
||||
item.SetParent(group.Find("Content"));
|
||||
}
|
||||
group.SetParent(rect);
|
||||
group.localScale = Vector3.one;
|
||||
}
|
||||
LayoutRebuilder.ForceRebuildLayoutImmediate(rect);
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 198d3ec3822927f44af9fb241ac00195
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -310,7 +310,20 @@ public class UIManager : MonoBehaviour
|
||||
UIManager.Show(UIManager.Instance.RowerSelector, null, true);
|
||||
}
|
||||
/*划船机页面*/
|
||||
|
||||
#region 新版路线页面
|
||||
private NewRouteOverviewController mNewRouteOverviewController;
|
||||
public NewRouteOverviewController NewRouteOverviewPanel
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetPanelInstance("NewRouteOverviewPanel", ref this.mNewRouteOverviewController);
|
||||
}
|
||||
}
|
||||
public static void ShowNewRouteOverviewPanel()
|
||||
{
|
||||
UIManager.Show(UIManager.Instance.NewRouteOverviewPanel, UIManager.Instance.MainPanel);
|
||||
}
|
||||
#endregion
|
||||
private CountDownAnimation mCountDownAnimation;
|
||||
public CountDownAnimation CountDownAnimation
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user