mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Fixed Bug With Tab Restriction
This commit is contained in:
@@ -33,6 +33,9 @@ function add_frame.tab(name,default_display,default_tooltip,restriction,frame,ev
|
||||
if not name then error('Tab requires a name') end
|
||||
if not frame then error('Tab requires a frame') end
|
||||
table.insert(frames.tabs,{name,default_display,frame,event})
|
||||
local temp_restriction = nil
|
||||
if type(restriction) == 'number' then temp_restriction = restriction end
|
||||
local restriction = temp_restriction or string_to_rank(restriction).power or 0
|
||||
for _,f in pairs(frames.center) do if f[1] == frame then table.insert(f[3],{name,restriction}) end end
|
||||
ExpGui.add_input.button(name,default_display,default_tooltip,draw_frame.tab)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user