11
This commit is contained in:
parent
5d125f70ff
commit
ed68b1fab6
@ -1,10 +1,10 @@
|
||||
namespace AlicizaX.UI.Extension.Editor
|
||||
{
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
public static class GUISkinHelper
|
||||
namespace AlicizaX.UI.Extension.Editor
|
||||
{
|
||||
public class GUILayoutHelper
|
||||
{
|
||||
public static void DrawProperty(SerializedProperty property, GUISkin skin, string content)
|
||||
{
|
3
Editor/Helper/GUILayoutHelper.cs.meta
Normal file
3
Editor/Helper/GUILayoutHelper.cs.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ae2d399a59dd439e9a971c236816d30e
|
||||
timeCreated: 1753445439
|
@ -1,18 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 746429e6d3987364d90618a933645ac4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 200569
|
||||
packageName: Dark - Complete Horror UI
|
||||
packageVersion: 2.1.7
|
||||
assetPath: Assets/Dark - Complete Horror UI/Scripts/Editor Handlers/DarkUIEditorHandler.cs
|
||||
uploadId: 610850
|
@ -187,7 +187,7 @@ public class UXButtonEditor : Editor
|
||||
EditorGUILayout.PropertyField(m_Mode);
|
||||
EditorGUI.EndDisabledGroup();
|
||||
|
||||
var interactable = GUISkinHelper.DrawToggle(m_Interactable.boolValue, customSkin, "Interactable");
|
||||
var interactable = GUILayoutHelper.DrawToggle(m_Interactable.boolValue, customSkin, "Interactable");
|
||||
m_Interactable.boolValue = interactable;
|
||||
|
||||
GUILayout.Space(1);
|
||||
@ -216,14 +216,14 @@ public class UXButtonEditor : Editor
|
||||
|
||||
private void DrawAudioTab()
|
||||
{
|
||||
GUISkinHelper.DrawProperty(hoverAudioClip, customSkin, "Hover Sound", "Play", () =>
|
||||
GUILayoutHelper.DrawProperty(hoverAudioClip, customSkin, "Hover Sound", "Play", () =>
|
||||
{
|
||||
if (hoverAudioClip.objectReferenceValue != null)
|
||||
{
|
||||
PlayAudio((AudioClip)hoverAudioClip.objectReferenceValue);
|
||||
}
|
||||
});
|
||||
GUISkinHelper.DrawProperty(clickAudioClip, customSkin, "Click Sound", "Play", () =>
|
||||
GUILayoutHelper.DrawProperty(clickAudioClip, customSkin, "Click Sound", "Play", () =>
|
||||
{
|
||||
if (hoverAudioClip.objectReferenceValue != null)
|
||||
{
|
||||
@ -251,7 +251,7 @@ public class UXButtonEditor : Editor
|
||||
|
||||
if (m_Mode.enumValueIndex == (int)ButtonModeType.Toggle)
|
||||
{
|
||||
GUISkinHelper.DrawProperty(m_UXGroup, customSkin, "UXGroup");
|
||||
GUILayoutHelper.DrawProperty(m_UXGroup, customSkin, "UXGroup");
|
||||
|
||||
UXGroup newGroup = (UXGroup)m_UXGroup.objectReferenceValue;
|
||||
if (newGroup != group)
|
||||
|
Loading…
Reference in New Issue
Block a user