CreateToolbar (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
m Text replacement - "<code lua>" to "<SyntaxHighlight code="lua">"
m Text replacement - "<SyntaxHighlight code="lua">" to "<syntaxhighlight lang="lua">"
 
(One intermediate revision by the same user not shown)
Line 14: Line 14:
{{Example|
{{Example|
This code creates a toolbar with the name "ExampleToolbar":
This code creates a toolbar with the name "ExampleToolbar":
<SyntaxHighlight code="lua">
<syntaxhighlight lang="lua">
local Plugin = PluginManager():CreatePlugin()
local Plugin = PluginManager():CreatePlugin()
local Toolbar = Plugin:CreateToolbar("ExampleToolbar")
local Toolbar = Plugin:CreateToolbar("ExampleToolbar")
</SyntaxHighlight>
</syntaxhighlight>
}}
}}


[[Category:Methods]]
[[Category:Methods]]

Latest revision as of 06:18, 27 April 2023

Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
CreateToolbar( string name )
Returns Toolbar
Description: Returns a new Toolbar.
Member of: Plugin


Example

This code creates a toolbar with the name "ExampleToolbar":

local Plugin = PluginManager():CreatePlugin()
local Toolbar = Plugin:CreateToolbar("ExampleToolbar")