mirror of
https://github.com/maxartz15/MA_TextureAtlasser.git
synced 2024-11-21 21:05:38 +01:00
Update MA_TextureAtlasserProInspectorView.cs
This commit is contained in:
parent
05b4ea9f80
commit
b2a005356d
@ -13,6 +13,7 @@ namespace MA_TextureAtlasserPro
|
|||||||
private MA_TextureAtlasserProQuad lastSelectedQuad;
|
private MA_TextureAtlasserProQuad lastSelectedQuad;
|
||||||
private bool isEditing = false;
|
private bool isEditing = false;
|
||||||
private GUIStyle labelStyle = new GUIStyle(GUI.skin.label);
|
private GUIStyle labelStyle = new GUIStyle(GUI.skin.label);
|
||||||
|
private Vector2 scrollPos = Vector2.zero;
|
||||||
|
|
||||||
public MA_TextureAtlasserProInspectorView(MA_TextureAtlasserProWindow currentEditorWindow, string title) : base(currentEditorWindow, title)
|
public MA_TextureAtlasserProInspectorView(MA_TextureAtlasserProWindow currentEditorWindow, string title) : base(currentEditorWindow, title)
|
||||||
{
|
{
|
||||||
@ -37,6 +38,10 @@ namespace MA_TextureAtlasserPro
|
|||||||
}
|
}
|
||||||
|
|
||||||
GUILayout.BeginArea(editorViewRect, EditorStyles.helpBox);
|
GUILayout.BeginArea(editorViewRect, EditorStyles.helpBox);
|
||||||
|
using (var scrollViewScope = new EditorGUILayout.ScrollViewScope(scrollPos, false, false))
|
||||||
|
{
|
||||||
|
scrollPos = scrollViewScope.scrollPosition;
|
||||||
|
|
||||||
GUILayout.BeginVertical(GUILayout.ExpandWidth(true));
|
GUILayout.BeginVertical(GUILayout.ExpandWidth(true));
|
||||||
|
|
||||||
GUILayout.Label("Quad Name");
|
GUILayout.Label("Quad Name");
|
||||||
@ -90,6 +95,7 @@ namespace MA_TextureAtlasserPro
|
|||||||
SerializedObject serializedObject = new SerializedObject(curWindow.textureAtlas.selectedTextureQuad);
|
SerializedObject serializedObject = new SerializedObject(curWindow.textureAtlas.selectedTextureQuad);
|
||||||
serializedObject.Update();
|
serializedObject.Update();
|
||||||
|
|
||||||
|
|
||||||
if (curWindow.textureAtlas.selectedTextureQuad.modelGroups != null)
|
if (curWindow.textureAtlas.selectedTextureQuad.modelGroups != null)
|
||||||
{
|
{
|
||||||
SerializedProperty modelGroupsSP = serializedObject.FindProperty("modelGroups");
|
SerializedProperty modelGroupsSP = serializedObject.FindProperty("modelGroups");
|
||||||
@ -164,7 +170,7 @@ namespace MA_TextureAtlasserPro
|
|||||||
|
|
||||||
GUILayout.Label("x " + curWindow.textureAtlas.selectedTextureQuad.guiRect.x.ToString() + ", y " + curWindow.textureAtlas.selectedTextureQuad.guiRect.y.ToString());
|
GUILayout.Label("x " + curWindow.textureAtlas.selectedTextureQuad.guiRect.x.ToString() + ", y " + curWindow.textureAtlas.selectedTextureQuad.guiRect.y.ToString());
|
||||||
GUILayout.Label("w " + curWindow.textureAtlas.selectedTextureQuad.guiRect.width.ToString() + ", h " + curWindow.textureAtlas.selectedTextureQuad.guiRect.height.ToString(), labelStyle);
|
GUILayout.Label("w " + curWindow.textureAtlas.selectedTextureQuad.guiRect.width.ToString() + ", h " + curWindow.textureAtlas.selectedTextureQuad.guiRect.height.ToString(), labelStyle);
|
||||||
|
}
|
||||||
GUILayout.EndVertical();
|
GUILayout.EndVertical();
|
||||||
GUILayout.EndArea();
|
GUILayout.EndArea();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user