mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
fix: Merge Armature inspector breaks animator editor styles (#531)
Also fix another style leak in ESO
This commit is contained in:
parent
1410503609
commit
07eedb370d
@ -22,8 +22,8 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
|
||||
internal static void InitStyles()
|
||||
{
|
||||
buttonStyle = EditorStyles.miniButtonRight;
|
||||
labelStyle = EditorStyles.label;
|
||||
buttonStyle = new GUIStyle(EditorStyles.miniButtonRight);
|
||||
labelStyle = new GUIStyle(EditorStyles.label);
|
||||
labelStyle.wordWrap = true;
|
||||
|
||||
buttonStyle.fixedWidth = 40f;
|
||||
|
@ -53,14 +53,14 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
{
|
||||
var val = !propLockMode.hasMultipleDifferentValues && propLockMode.enumValueIndex == (int) index;
|
||||
|
||||
var selectionStyle = val ? (GUIStyle) "flow node 1" : (GUIStyle) "flow node 0";
|
||||
var selectionStyle = new GUIStyle(val ? (GUIStyle) "flow node 1" : (GUIStyle) "flow node 0");
|
||||
selectionStyle.padding = new RectOffset(0, 0, 0, 0);
|
||||
selectionStyle.margin = new RectOffset(0, 0, 5, 5);
|
||||
|
||||
var boldLabel = EditorStyles.boldLabel;
|
||||
var boldLabel = new GUIStyle(EditorStyles.boldLabel);
|
||||
boldLabel.wordWrap = true;
|
||||
|
||||
var normalLabel = EditorStyles.label;
|
||||
var normalLabel = new GUIStyle(EditorStyles.label);
|
||||
normalLabel.wordWrap = true;
|
||||
|
||||
EditorGUILayout.BeginVertical(selectionStyle);
|
||||
|
Loading…
Reference in New Issue
Block a user