提交修改
This commit is contained in:
@@ -403,14 +403,17 @@ public class ConfigLinkViewerWindow : EditorWindow
|
||||
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.BeginHorizontal(GUILayout.ExpandHeight(true));
|
||||
float innerHeight = windowHeight - 80; // 减去头部和边距
|
||||
|
||||
EditorGUILayout.BeginHorizontal(GUILayout.Height(innerHeight));
|
||||
|
||||
float leftPanelWidth = Mathf.Clamp(windowWidth * 0.3f, 180f, 300f);
|
||||
float rightPanelWidth = windowWidth - leftPanelWidth - 20f;
|
||||
|
||||
EditorGUILayout.BeginVertical(GUILayout.Width(leftPanelWidth), GUILayout.ExpandHeight(true));
|
||||
EditorGUILayout.BeginVertical(GUILayout.Width(leftPanelWidth));
|
||||
EditorGUILayout.LabelField($"配置表列表 ({filteredTables.Count}):", EditorStyles.miniBoldLabel);
|
||||
relationScrollPos = EditorGUILayout.BeginScrollView(relationScrollPos, false, true, GUILayout.ExpandHeight(true));
|
||||
float scrollHeight = innerHeight - 40; // 减去标签高度和边距
|
||||
relationScrollPos = EditorGUILayout.BeginScrollView(relationScrollPos, false, true, GUILayout.Height(scrollHeight));
|
||||
|
||||
GUIStyle listButtonStyle = new GUIStyle(EditorStyles.label) { wordWrap = false, stretchWidth = true };
|
||||
|
||||
@@ -432,9 +435,9 @@ public class ConfigLinkViewerWindow : EditorWindow
|
||||
EditorGUILayout.EndScrollView();
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(GUILayout.Width(rightPanelWidth), GUILayout.ExpandHeight(true));
|
||||
EditorGUILayout.BeginVertical(GUILayout.Width(rightPanelWidth));
|
||||
EditorGUILayout.LabelField("当前表详情:", EditorStyles.miniBoldLabel);
|
||||
detailScrollPos = EditorGUILayout.BeginScrollView(detailScrollPos, false, true, GUILayout.ExpandHeight(true));
|
||||
detailScrollPos = EditorGUILayout.BeginScrollView(detailScrollPos, false, true, GUILayout.Height(scrollHeight));
|
||||
DrawCurrentTableInfo(rightPanelWidth);
|
||||
EditorGUILayout.EndScrollView();
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
Reference in New Issue
Block a user