Transfer detail panel to resource browser.
This commit is contained in:
@@ -4,14 +4,9 @@ using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Cryville.Crtr.Browsing.UI {
|
||||
public class ResourceBrowserMaster : MonoBehaviour {
|
||||
[SerializeField]
|
||||
Button m_playButton;
|
||||
[SerializeField]
|
||||
Button m_configButton;
|
||||
[SerializeField]
|
||||
ConfigPanelMaster m_configPanel;
|
||||
[SerializeField]
|
||||
@@ -22,8 +17,6 @@ namespace Cryville.Crtr.Browsing.UI {
|
||||
PathedResourceBrowser m_mainBrowser;
|
||||
[SerializeField]
|
||||
SettingsBrowser m_settingsBrowser;
|
||||
[SerializeField]
|
||||
DetailPanel m_detailPanel;
|
||||
|
||||
BrowserTab _currentTab;
|
||||
readonly Dictionary<BrowserTab, ResourceBrowser> _tabs = new Dictionary<BrowserTab, ResourceBrowser>();
|
||||
@@ -57,17 +50,8 @@ namespace Cryville.Crtr.Browsing.UI {
|
||||
}
|
||||
}
|
||||
|
||||
public void ShowDetail(int id, ChartDetail detail) {
|
||||
// SlideIntoView(1);
|
||||
m_detailPanel.Load(id, detail);
|
||||
m_playButton.gameObject.SetActive(true);
|
||||
m_configButton.gameObject.SetActive(true);
|
||||
}
|
||||
|
||||
public bool Back() {
|
||||
// if (_slideDest == 0) return false;
|
||||
// SlideIntoView(_slideDest - 1);
|
||||
return true;
|
||||
return true; // TODO
|
||||
}
|
||||
|
||||
public void Open(int id, ChartDetail detail) {
|
||||
|
Reference in New Issue
Block a user