The toolbar is a set of settings for individual tools. An example toolbar for Shape Tool consists of Tool size integer, Fill shape boolean, and fill color.
If several tools contain the same setting (same Setting Names), the toolbar will save and restore them on tool change. For example, if you change tool size in
Pen Tool to 5px and then select
Line Tool, the toolbar will still contain the same 5px tool size.
To get a setting, use the
GetSetting method, for example:
Creating toolbars is very easy, you just need to inherit from any
Toolbar class. Then initialize your settings in the constructor.
To associate any Toolbar with the tool, assign
Toolbar variable in the Tool constructor
To learn about Settings, check out this guide
All available toolbars can be found in PixiEditor.Models.Tools.ToolSettings.Toolbars namespace