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
2 changed files with 16 additions and 12 deletions
|
|
@ -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, ...
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue