Settings: Renamed toggle to collection view, instead of list view, since it describes more accurately the change
This commit is contained in:
parent
41f56dff99
commit
f1e33f5e6b
|
|
@ -43,7 +43,7 @@ namespace Module.UIToolkit.Editor
|
||||||
|
|
||||||
if (_ussCollectionView != null)
|
if (_ussCollectionView != null)
|
||||||
{
|
{
|
||||||
if (settings.listViewDisableMaxHeight)
|
if (settings.collectionViewDisableMaxHeight)
|
||||||
ve.styleSheets.Add(_ussCollectionView);
|
ve.styleSheets.Add(_ussCollectionView);
|
||||||
else
|
else
|
||||||
ve.styleSheets.Remove(_ussCollectionView);
|
ve.styleSheets.Remove(_ussCollectionView);
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ namespace Module.UIToolkit.Editor
|
||||||
[Serializable]
|
[Serializable]
|
||||||
internal sealed class Settings
|
internal sealed class Settings
|
||||||
{
|
{
|
||||||
public bool listViewDisableMaxHeight;
|
public bool collectionViewDisableMaxHeight = true;
|
||||||
|
|
||||||
private static Settings _settings;
|
private static Settings _settings;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,8 @@ namespace Module.UIToolkit.Editor
|
||||||
EditorGUI.BeginChangeCheck();
|
EditorGUI.BeginChangeCheck();
|
||||||
EditorGUILayout.BeginVertical();
|
EditorGUILayout.BeginVertical();
|
||||||
|
|
||||||
EditorGUILayout.LabelField("List View", EditorStyles.boldLabel);
|
EditorGUILayout.LabelField("Collection View", EditorStyles.boldLabel);
|
||||||
settings.listViewDisableMaxHeight = EditorGUILayout.Toggle("Disable Max Height", settings.listViewDisableMaxHeight);
|
settings.collectionViewDisableMaxHeight = EditorGUILayout.Toggle("Disable Max Height", settings.collectionViewDisableMaxHeight);
|
||||||
|
|
||||||
EditorGUILayout.EndVertical();
|
EditorGUILayout.EndVertical();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue