CreateToolbar (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Aboy5643 Made Page |
m Text replacement - "<SyntaxHighlight code="lua">" to "<syntaxhighlight lang="lua">" |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{protected}} | |||
<onlyinclude>{{Method|name = CreateToolbar | <onlyinclude>{{Method|name = CreateToolbar | ||
|returns = Toolbar | |returns = [[RBX.lua.Toolbar (Object)|Toolbar]] | ||
|description = Returns a new [[Toolbar]]. | |protected = true | ||
|description = Returns a new [[RBX.lua.Toolbar (Object)|Toolbar]]. | |||
|object = Plugin | |object = Plugin | ||
|arguments = [[ | |arguments = [[string]] <var>name</var> | ||
}}</onlyinclude> | }}</onlyinclude> | ||
Line 12: | Line 13: | ||
{{Example| | {{Example| | ||
< | This code creates a toolbar with the name "ExampleToolbar": | ||
local | <syntaxhighlight lang="lua"> | ||
local Plugin = PluginManager():CreatePlugin() | |||
local Toolbar = Plugin:CreateToolbar(" | local Toolbar = Plugin:CreateToolbar("ExampleToolbar") | ||
</ | </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")