Add read-only tab icon for pathed resource browser.

This commit is contained in:
2023-11-30 15:15:32 +08:00
parent 4051ea8874
commit beeca3b5f9
5 changed files with 147 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ namespace Cryville.Crtr.Browsing.UI {
public abstract class ResourceBrowser : MonoBehaviour {
[SerializeField]
Sprite m_icon;
public Sprite Icon { get { return m_icon; } }
public virtual Sprite Icon { get { return m_icon; } }
protected ResourceBrowserMaster Master { get; private set; }
protected void Init(ResourceBrowserMaster master) {