Tool: Fixed issue with missing icons for scene (single/additive) toggle button in Unity 6000.0b
This commit is contained in:
parent
06420f1ad4
commit
1c6f548770
|
|
@ -2,6 +2,11 @@
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
|
||||||
|
## [1.9.3] - 2024-03-23
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fixed issue with missing icons for scene (single/additive) toggle button in Unity 6000.0b
|
||||||
|
|
||||||
## [1.9.2] - 2023-09-18
|
## [1.9.2] - 2023-09-18
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
||||||
|
|
@ -61,12 +61,16 @@ namespace Module.NavigationTool.Editor.Toolbar
|
||||||
|
|
||||||
if (tempIsAdditive)
|
if (tempIsAdditive)
|
||||||
{
|
{
|
||||||
|
#if !UNITY_6000_0_OR_NEWER
|
||||||
GUI.Label(rect, styles.iconSceneAdditive, styles.labelCenter);
|
GUI.Label(rect, styles.iconSceneAdditive, styles.labelCenter);
|
||||||
|
#endif
|
||||||
GUI.Label(rect, Styles.LABEL_SCENE_ADDITIVE, styles.labelCenter);
|
GUI.Label(rect, Styles.LABEL_SCENE_ADDITIVE, styles.labelCenter);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#if !UNITY_6000_0_OR_NEWER
|
||||||
GUI.Label(rect, styles.iconSceneSingle, styles.labelCenter);
|
GUI.Label(rect, styles.iconSceneSingle, styles.labelCenter);
|
||||||
|
#endif
|
||||||
GUI.Label(rect, Styles.LABEL_SCENE_SINGLE, styles.labelCenter);
|
GUI.Label(rect, Styles.LABEL_SCENE_SINGLE, styles.labelCenter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -211,8 +215,15 @@ namespace Module.NavigationTool.Editor.Toolbar
|
||||||
|
|
||||||
private static class Styles
|
private static class Styles
|
||||||
{
|
{
|
||||||
|
#if UNITY_6000_0_OR_NEWER
|
||||||
|
public static readonly GUIContent LABEL_SCENE_ADDITIVE = new GUIContent("A", "Additive scene loading (toogle to Single)");
|
||||||
|
public static readonly GUIContent LABEL_SCENE_SINGLE = new GUIContent("S", "Single scene loading (toggle to Additive)");
|
||||||
|
#else
|
||||||
public static readonly GUIContent LABEL_SCENE_ADDITIVE = new GUIContent(string.Empty, "Additive scene loading (toogle to Single)");
|
public static readonly GUIContent LABEL_SCENE_ADDITIVE = new GUIContent(string.Empty, "Additive scene loading (toogle to Single)");
|
||||||
public static readonly GUIContent LABEL_SCENE_SINGLE = new GUIContent(string.Empty, "Single scene loading (toggle to Additive)");
|
public static readonly GUIContent LABEL_SCENE_SINGLE = new GUIContent(string.Empty, "Single scene loading (toggle to Additive)");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
public static readonly GUIContent LABEL_SCENE_CREATE = new GUIContent(string.Empty, "Create a new scene");
|
public static readonly GUIContent LABEL_SCENE_CREATE = new GUIContent(string.Empty, "Create a new scene");
|
||||||
public const float BUTTON_WIDTH = 24.0f;
|
public const float BUTTON_WIDTH = 24.0f;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,10 @@ namespace Module.NavigationTool.Editor.Toolbar
|
||||||
public GUIStyle centeredMiniLabel;
|
public GUIStyle centeredMiniLabel;
|
||||||
|
|
||||||
public GUIContent iconPlusSmall;
|
public GUIContent iconPlusSmall;
|
||||||
|
#if !UNITY_6000_0_OR_NEWER
|
||||||
public GUIContent iconSceneAdditive;
|
public GUIContent iconSceneAdditive;
|
||||||
public GUIContent iconSceneSingle;
|
public GUIContent iconSceneSingle;
|
||||||
|
#endif
|
||||||
public GUIContent iconDisconnect;
|
public GUIContent iconDisconnect;
|
||||||
public GUIContent iconProject;
|
public GUIContent iconProject;
|
||||||
public GUIContent iconSettings;
|
public GUIContent iconSettings;
|
||||||
|
|
@ -62,14 +64,20 @@ namespace Module.NavigationTool.Editor.Toolbar
|
||||||
if (EditorGUIUtility.isProSkin)
|
if (EditorGUIUtility.isProSkin)
|
||||||
{
|
{
|
||||||
iconPlusSmall = EditorGUIUtility.IconContent("d_CreateAddNew");
|
iconPlusSmall = EditorGUIUtility.IconContent("d_CreateAddNew");
|
||||||
|
|
||||||
|
#if !UNITY_6000_0_OR_NEWER
|
||||||
iconSceneAdditive = EditorGUIUtility.IconContent("d_winbtn_win_restore_h");
|
iconSceneAdditive = EditorGUIUtility.IconContent("d_winbtn_win_restore_h");
|
||||||
iconSceneSingle = EditorGUIUtility.IconContent("d_winbtn_win_max_h");
|
iconSceneSingle = EditorGUIUtility.IconContent("d_winbtn_win_max_h");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
iconPlusSmall = EditorGUIUtility.IconContent("CreateAddNew");
|
iconPlusSmall = EditorGUIUtility.IconContent("CreateAddNew");
|
||||||
|
|
||||||
|
#if !UNITY_6000_0_OR_NEWER
|
||||||
iconSceneAdditive = EditorGUIUtility.IconContent("winbtn_win_restore_h");
|
iconSceneAdditive = EditorGUIUtility.IconContent("winbtn_win_restore_h");
|
||||||
iconSceneSingle = EditorGUIUtility.IconContent("winbtn_win_max_h");
|
iconSceneSingle = EditorGUIUtility.IconContent("winbtn_win_max_h");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
iconDisconnect = EditorGUIUtility.IconContent("d_CacheServerDisconnected");
|
iconDisconnect = EditorGUIUtility.IconContent("d_CacheServerDisconnected");
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "com.module.navigationtool",
|
"name": "com.module.navigationtool",
|
||||||
"version": "1.9.2",
|
"version": "1.9.3",
|
||||||
"displayName": "Module.NavigationTool",
|
"displayName": "Module.NavigationTool",
|
||||||
"description": "Support for navigation tools, like favorites, history and toolbars",
|
"description": "Support for navigation tools, like favorites, history and toolbars",
|
||||||
"unity": "2019.2",
|
"unity": "2019.2",
|
||||||
|
|
@ -18,5 +18,6 @@
|
||||||
"name": "Anders Ejlersen",
|
"name": "Anders Ejlersen",
|
||||||
"email": "anders@ejlersen.info",
|
"email": "anders@ejlersen.info",
|
||||||
"url": "https://www.ejlersen.info"
|
"url": "https://www.ejlersen.info"
|
||||||
}
|
},
|
||||||
}
|
"_fingerprint": "06420f1ad404ea844ae5d2f3a0a3f841703632f5"
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue