1.5.2: Fixed issue, where toolbar styles modified a style directly in a Unity GUISkin thereby given incorrect buttons in other windows
This commit is contained in:
parent
1d27a259e4
commit
faf964ac93
|
|
@ -19,21 +19,25 @@ namespace Module.NavigationTool.Editor.Toolbar
|
|||
return;
|
||||
|
||||
this.skin = skin;
|
||||
popup = skin.FindStyle("ToolbarPopup");
|
||||
button = skin.FindStyle("toolbarbutton");
|
||||
buttonNoPadding = skin.FindStyle("toolbarbutton");
|
||||
buttonNoPadding.padding = new RectOffset();
|
||||
slider = skin.FindStyle("ToolbarSlider");
|
||||
label = skin.FindStyle("ToolbarLabel");
|
||||
labelCenter = skin.FindStyle("ToolbarLabel");
|
||||
labelCenter.alignment = TextAnchor.MiddleCenter;
|
||||
popup = new GUIStyle(skin.FindStyle("ToolbarPopup"));
|
||||
button = new GUIStyle(skin.FindStyle("toolbarbutton"));
|
||||
slider = new GUIStyle(skin.FindStyle("ToolbarSlider"));
|
||||
label = new GUIStyle(skin.FindStyle("ToolbarLabel"));
|
||||
|
||||
buttonNoPadding = new GUIStyle(skin.FindStyle("toolbarbutton"))
|
||||
{
|
||||
padding = new RectOffset()
|
||||
};
|
||||
|
||||
labelCenter = new GUIStyle(skin.FindStyle("ToolbarLabel"))
|
||||
{
|
||||
alignment = TextAnchor.MiddleCenter
|
||||
};
|
||||
|
||||
settingsGroup = new GUIStyle
|
||||
{
|
||||
margin = new RectOffset(8, 0, 8, 0)
|
||||
};
|
||||
|
||||
// Available: ToolbarBoldLabel, ToolbarBottom, ToolbarButtonLeft, ToolbarButtonRight, ToolbarDropDown,
|
||||
// ToolbarLabel, ToolbarTextField, ...
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "com.module.navigationtool",
|
||||
"version": "1.5.1",
|
||||
"version": "1.5.2",
|
||||
"displayName": "Module.NavigationTool",
|
||||
"description": "Support for navigation tools, like favorites, history and toolbars",
|
||||
"unity": "2019.2",
|
||||
|
|
|
|||
Loading…
Reference in a new issue