Ldoc compliant

This commit is contained in:
Cooldude2606 committed 2019-05-29 22:24:04 +01:00
1 parent 53f9c51c0e
commit e187059ae0
94 files changed
+15315 -479

No files matched your search

+3 -3
View File
@@ -36,7 +36,7 @@ function Toolbar.permission_alias(define_name,permisison_name)
end
--- Adds a new button to the toolbar
-- @tparam[opt] name string when given allows an alias to the button for the permission system
-- @tparam[opt] string name when given allows an alias to the button for the permission system
-- @treturn table the button define
function Toolbar.new_button(name)
local button =
@@ -51,7 +51,7 @@ function Toolbar.new_button(name)
end
--- Adds an existing buttton to the toolbar
-- @tparam button table the button define for the button to be added
-- @tparam table button the button define for the button to be added
function Toolbar.add_button(button)
table.insert(Toolbar.buttons,button)
Gui.allow_player_to_toggle_top_element_visibility(button.name)
@@ -66,7 +66,7 @@ function Toolbar.add_button(button)
end
--- Updates the player's toolbar with an new buttons or expected change in auth return
-- @tparam player LuaPlayer the player to update the toolbar for
-- @tparam LuaPlayer player the player to update the toolbar for
function Toolbar.update(player)
local top = Gui.get_top_element_flow(player)
if not top then return end