mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Fixed Player List Update
This commit is contained in:
@@ -21,7 +21,7 @@ end
|
|||||||
local function queue_update(tick)
|
local function queue_update(tick)
|
||||||
local data = _global()
|
local data = _global()
|
||||||
local tick = is_type(tick,'table') and tick.tick or is_type(tick,'number') and tick or game.tick
|
local tick = is_type(tick,'table') and tick.tick or is_type(tick,'number') and tick or game.tick
|
||||||
if tick + data.delay > data.update then
|
if tick + data.delay > data.update - data.intervial then
|
||||||
data.update = tick + data.delay
|
data.update = tick + data.delay
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -44,13 +44,13 @@ Gui.left.add{
|
|||||||
if rank.short_hand == '' then
|
if rank.short_hand == '' then
|
||||||
player_list.add{
|
player_list.add{
|
||||||
type='label',
|
type='label',
|
||||||
style='caption_style',
|
style='caption_label',
|
||||||
caption={'player-list.format-nil',tick_to_display_format(player.online_time),player.name}
|
caption={'player-list.format-nil',tick_to_display_format(player.online_time),player.name}
|
||||||
}.style.font_color = rank.colour
|
}.style.font_color = rank.colour
|
||||||
else
|
else
|
||||||
player_list.add{
|
player_list.add{
|
||||||
type='label',
|
type='label',
|
||||||
style='caption_style',
|
style='caption_label',
|
||||||
caption={'player-list.format',tick_to_display_format(player.online_time),player.name,rank.short_hand}
|
caption={'player-list.format',tick_to_display_format(player.online_time),player.name,rank.short_hand}
|
||||||
}.style.font_color = rank.colour
|
}.style.font_color = rank.colour
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user