amazing import spam

This commit is contained in:
reisenlol 2026-01-28 01:22:27 -08:00
parent 655a116647
commit 3160bff7a3
No known key found for this signature in database
1016 changed files with 801 additions and 51 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: 945de8189a19b914f8d54c4af7ea2187
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 186447
packageName: Damage Numbers Pro
packageVersion: 4.47
assetPath: Assets/DamageNumbersPro/Scripts/Internal/Editor/DNPEditorInternal.cs
uploadId: 731065

View file

@ -0,0 +1,89 @@
#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
namespace DamageNumbersPro.Internal
{
[CustomEditor(typeof(DNPPreset))]
public class DNPPresetEditor : Editor
{
public override void OnInspectorGUI()
{
//Prepare:
GUIStyle labelStyle = new GUIStyle(GUI.skin.label);
labelStyle.richText = true;
//Copying:
EditorGUILayout.Space(4);
DamageNumber dn = (DamageNumber) EditorGUILayout.ObjectField(null, typeof(DamageNumber), true,GUILayout.Height(80));
GUIStyle dropStyle = new GUIStyle(GUI.skin.box);
dropStyle.alignment = TextAnchor.MiddleCenter;
Rect lastRect = GUILayoutUtility.GetLastRect();
GUI.Box(lastRect, "Drop damage number here.", dropStyle);
if(dn != null)
{
DNPPreset preset = (DNPPreset)target;
Undo.RegisterCompleteObjectUndo(preset, "Copied damage number.");
preset.Get(dn);
serializedObject.ApplyModifiedProperties();
}
//Get First Property:
SerializedProperty currentProperty = serializedObject.FindProperty("changeFontAsset");
//Display Properties:
EditorGUILayout.BeginVertical();
bool visible = true;
do
{
bool isNewCategory = currentProperty.name.StartsWith("change") || currentProperty.name == "hideVerticalTexts";
if (isNewCategory)
{
visible = true;
EditorGUILayout.EndVertical();
EditorGUILayout.Space();
EditorGUILayout.BeginVertical("Helpbox");
}
if(visible)
{
if(isNewCategory)
{
EditorGUILayout.BeginHorizontal();
EditorGUILayout.PrefixLabel("<size=14><b>" + currentProperty.displayName + "</b></size>", labelStyle);
EditorGUILayout.PropertyField(currentProperty, GUIContent.none, true);
EditorGUILayout.EndHorizontal();
}
else
{
EditorGUILayout.PropertyField(currentProperty, true);
}
}
if (isNewCategory)
{
visible = currentProperty.boolValue;
if(visible && currentProperty.name.StartsWith("change"))
{
DNPEditorInternal.Lines();
}
}
} while (currentProperty.NextVisible(false));
EditorGUILayout.EndVertical();
//Save Changes:
serializedObject.ApplyModifiedProperties();
}
}
}
#endif

View file

@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: c55b1576eec682446928e58fab62ee59
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 186447
packageName: Damage Numbers Pro
packageVersion: 4.47
assetPath: Assets/DamageNumbersPro/Scripts/Internal/Editor/DNPPresetEditor.cs
uploadId: 731065

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: 668f6245f82e2b8428228e6bf559c394
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 186447
packageName: Damage Numbers Pro
packageVersion: 4.47
assetPath: Assets/DamageNumbersPro/Scripts/Internal/Editor/DamageNumberEditor.cs
uploadId: 731065