mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 12:16:37 +09:00
Change to sync docs
This commit is contained in:
@@ -4,7 +4,9 @@
|
||||
-- @author Cooldude2606
|
||||
-- @license https://github.com/explosivegaming/scenario/blob/master/LICENSE
|
||||
|
||||
-- this file will be loaded when ExpGamingCore/Gui is present
|
||||
--- This file will be loaded when ExpGamingCore/Gui is present
|
||||
-- @function _comment
|
||||
|
||||
|
||||
local Sync_gui_functions = {}
|
||||
|
||||
@@ -35,6 +37,7 @@ local function label_format(label,width)
|
||||
end
|
||||
|
||||
--- Creates a center gui that will appear on join
|
||||
-- @table server-info
|
||||
-- @local call to Gui.Center
|
||||
Gui.center.add{
|
||||
name='server-info',
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
-- @author Cooldude2606
|
||||
-- @license https://github.com/explosivegaming/scenario/blob/master/LICENSE
|
||||
|
||||
-- this file will be loaded when ExpGamingCore/Ranking is present
|
||||
|
||||
--- This file will be loaded when ExpGamingCore/Ranking is present
|
||||
-- @function _comment
|
||||
|
||||
--- Used as a redirect to Ranking._base_preset that will set the rank given to a player apon joining
|
||||
-- @usage Sync.set_ranks{player_name=rank_name,...}
|
||||
-- @see Ranking._base_preset
|
||||
function Sync.set_ranks(...)
|
||||
Ranking._base_preset(...)
|
||||
end
|
||||
@@ -30,8 +30,7 @@ function Sync.count_ranks()
|
||||
return _ranks
|
||||
end
|
||||
|
||||
--- Adds a caption to the info gui that shows the rank given to the player
|
||||
-- @local callback for Sync.add_to_gui
|
||||
-- Adds a caption to the info gui that shows the rank given to the player
|
||||
if Sync.add_to_gui then
|
||||
Sync.add_to_gui(function(player,frame)
|
||||
return 'You have been assigned the rank \''..Ranking.get_rank(player).name..'\''
|
||||
|
||||
Reference in New Issue
Block a user