mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 13:01:39 +09:00
Added A custom Command Prosesser and a bit more
This commit is contained in:
@@ -111,7 +111,7 @@ function player_table_functions.draw(player,frame,filters,input_location)
|
||||
then player_table.add{name=p.name.."status", type="label", caption="Online"}
|
||||
else player_table.add{name=p.name.."s", type="label", caption="Offline"} end
|
||||
player_table.add{name=p.name.."online_time", type="label", caption=(tick_to_hour(p.online_time)..'H '..(tick_to_min(p.online_time)-60*tick_to_hour(p.online_time))..'M')}
|
||||
player_table.add{name=p.name.."rank", type="label", caption=get_rank(p).shortHand}
|
||||
player_table.add{name=p.name.."rank", type="label", caption=get_rank(p).short_hand}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -33,7 +33,10 @@ function toolbar.draw(player)
|
||||
toolbar_frame.clear()
|
||||
for _,btn in pairs(toolbar.buttons) do
|
||||
local rank = get_rank(player)
|
||||
if btn[2] >= rank.power then
|
||||
local temp_restriction = nil
|
||||
if type(btn[2]) == 'number' then temp_restriction = btn[2] end
|
||||
local restriction = temp_restriction or string_to_rank(btn[2]).power or 0
|
||||
if restriction >= rank.power then
|
||||
ExpGui.add_input.draw_button(toolbar_frame,btn[1])
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user