Added Gui.cam_link

This commit is contained in:
Cooldude2606
2018-01-03 00:06:51 +00:00
parent 1725f79e3c
commit fb482dbcbb
2 changed files with 86 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ left._left = {}
-- used for debugging
function left.override_open(state)
global.over_ride_left_can_open = state
Gui._global().over_ride_left_can_open = state
end
--- Used to add a left gui frame
-- @usage Gui.left.add{name='foo',caption='Foo',tooltip='just testing',open_on_join=true,can_open=function,draw=function}
@@ -142,7 +142,7 @@ function left._left.toggle(event)
local success, err = pcall(_left.can_open,player)
if not success then error(err)
elseif err == true then open = true
elseif global.over_ride_left_can_open then
elseif Gui._global().over_ride_left_can_open then
if is_type(Ranking,'table') and Ranking._presets and Ranking._presets().meta.rank_count > 0 then
if Ranking.get_rank(player):allowed(_left.name) then open = true
else open = {gui.unauthorized} end