2020-10-28 06:39:26 +11:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
2021-04-04 03:41:36 +10:00
|
|
|
|
using UnityExplorer.UI.Inspectors;
|
2020-10-28 06:39:26 +11:00
|
|
|
|
|
2021-03-30 19:50:04 +11:00
|
|
|
|
namespace UnityExplorer.UI.Main.Home
|
2020-10-28 06:39:26 +11:00
|
|
|
|
{
|
2021-03-18 17:17:29 +11:00
|
|
|
|
public class HomePage : BaseMenuPage
|
2020-10-28 06:39:26 +11:00
|
|
|
|
{
|
|
|
|
|
public override string Name => "Home";
|
|
|
|
|
|
|
|
|
|
public static HomePage Instance { get; internal set; }
|
|
|
|
|
|
2021-04-07 17:20:42 +10:00
|
|
|
|
public override MenuPages Type => MenuPages.Home;
|
|
|
|
|
|
2021-03-18 18:38:51 +11:00
|
|
|
|
public override bool Init()
|
2020-10-28 06:39:26 +11:00
|
|
|
|
{
|
|
|
|
|
Instance = this;
|
|
|
|
|
|
|
|
|
|
ConstructMenu();
|
|
|
|
|
|
2020-10-28 20:52:40 +11:00
|
|
|
|
new SceneExplorer();
|
|
|
|
|
|
|
|
|
|
new InspectorManager();
|
|
|
|
|
|
2020-10-28 06:39:26 +11:00
|
|
|
|
SceneExplorer.Instance.Init();
|
2021-03-18 18:38:51 +11:00
|
|
|
|
|
|
|
|
|
return true;
|
2020-10-28 06:39:26 +11:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Update()
|
|
|
|
|
{
|
|
|
|
|
SceneExplorer.Instance.Update();
|
|
|
|
|
InspectorManager.Instance.Update();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void ConstructMenu()
|
|
|
|
|
{
|
|
|
|
|
GameObject parent = MainMenu.Instance.PageViewport;
|
|
|
|
|
|
2021-03-30 19:50:04 +11:00
|
|
|
|
Content = UIFactory.CreateHorizontalGroup(parent, "HomePage", true, true, true, true, 3, new Vector4(1,1,1,1)).gameObject;
|
2020-10-28 06:39:26 +11:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|