Panel_AssetProperties 삭제
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dc00f08d5af79bf438ee98d2587e2b8a
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -9,7 +9,6 @@ namespace Studio.Manage
|
||||
{
|
||||
var canvas_static = CanvasManager.instance.GetCanvas<Canvas_Static>();
|
||||
//canvas_popup.panel_assetlibrary.scrollView.onSelect.AddListener(canvas_popup.panel_assetproperties.Open);
|
||||
canvas_popup.panel_assetproperties.onClickPreview += canvas_popup.panel_predefinedtype.Open;
|
||||
canvas_popup.panel_thumbnail.onGetPosition += canvas_popup.panel_assetlibrary.GetPositionX;
|
||||
|
||||
canvas_popup.panel_start.onClickNewProject += canvas_popup.panel_newprojectinfo.Open;
|
||||
|
||||
@@ -32,7 +32,6 @@ namespace Studio
|
||||
public Panel_AssetLibrary panel_assetlibrary;
|
||||
public Panel_InterworkingDataList panel_interworkingdatalist;
|
||||
public Panel_InterferedObjectList panel_interferedobjectlist;
|
||||
public Panel_AssetProperties panel_assetproperties;
|
||||
public Panel_PredefinedType panel_predefinedtype;
|
||||
public Panel_DynamicObjectInfo panel_dynamicobjectinfo;
|
||||
// public Panel_ObjectInfo panel_objectinfo;
|
||||
@@ -74,7 +73,6 @@ namespace Studio
|
||||
}
|
||||
|
||||
var fbxFileManager = ManagerHub.instance.Get<FBXFileManager>();
|
||||
panel_assetproperties.onOpen += fbxFileManager.GetCustomAssetData;
|
||||
panel_thumbnail.onOpen += fbxFileManager.GetCustomAssetData;
|
||||
|
||||
canvasHandler = new PopupCanvasHandler(this);
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
using Ookii.Dialogs;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using Studio.AssetLibraryTree;
|
||||
using Studio.HierarchyTree;
|
||||
using Studio.Util;
|
||||
using XRLib.UI;
|
||||
using static Studio.UI.Panel_PredefinedType;
|
||||
|
||||
namespace Studio.UI
|
||||
{
|
||||
public class Panel_AssetProperties : PanelBase
|
||||
{
|
||||
public TextMeshProUGUI Text_Name;
|
||||
public TextMeshProUGUI Text_CreateDate;
|
||||
public TextMeshProUGUI Text_LastRevisionDate;
|
||||
public TextMeshProUGUI Text_UploadDate;
|
||||
public TextMeshProUGUI Text_Creator;
|
||||
public TextMeshProUGUI Text_Manager;
|
||||
public Button Button_Close;
|
||||
// public Button Button_Preview;
|
||||
|
||||
public Action<string[,]> onClickPreview;
|
||||
public Func<string, CustomAssetData> onOpen;
|
||||
|
||||
public override void AfterAwake()
|
||||
{
|
||||
//Button_Preview.onClick.AddListener(OnClickPreview);
|
||||
Button_Close.onClick.AddListener(() => gameObject.SetActive(false));
|
||||
SetActive(false);
|
||||
}
|
||||
|
||||
public void Open(List<AssetLibraryItem> selectedItems)
|
||||
{
|
||||
Init();
|
||||
|
||||
if (selectedItems.Count > 1 || selectedItems.Count == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
CustomAssetData assetData = onOpen?.Invoke(selectedItems[0].name);
|
||||
if (assetData != null)
|
||||
{
|
||||
SetActive(true);
|
||||
SetUI(assetData);
|
||||
}
|
||||
}
|
||||
|
||||
private void SetUI(CustomAssetData assetData)
|
||||
{
|
||||
Text_Name.text = assetData.name;
|
||||
Text_CreateDate.text = assetData.createDate;
|
||||
Text_LastRevisionDate.text = assetData.LastRevisionDate;
|
||||
Text_UploadDate.text = assetData.UploadDate;
|
||||
Text_Creator.text = assetData.Creator;
|
||||
Text_Manager.text = assetData.Manager;
|
||||
}
|
||||
|
||||
private void Init()
|
||||
{
|
||||
Text_Name.text = string.Empty;
|
||||
Text_CreateDate.text = string.Empty;
|
||||
Text_LastRevisionDate.text = string.Empty;
|
||||
Text_UploadDate.text = string.Empty;
|
||||
Text_Creator.text = string.Empty;
|
||||
Text_Manager.text = string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cc7dbdd5e09c548429526a91bc950827
|
||||
Reference in New Issue
Block a user