Forgot to make center local

This commit is contained in:
Cooldude2606
2017-12-19 19:40:51 +00:00
parent 77a1cd387e
commit bdf3ea07b8
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ Any changes that you may make to the code are yours but that does not make the s
Discord: https://discord.gg/r6dC2uK
]]
center = {}
local center = {}
center._center = {}
function center.add(obj)
@@ -83,7 +83,7 @@ function center._center:callback(frame)
self._tabs[self.name..'_'..first_tab](tab_scroll)
tab_scroll.style.height = 300
tab_scroll.style.width = 500
tab_bar_scroll.style.height = 80
tab_bar_scroll.style.minimal_height = 40
tab_bar_scroll.style.width = 500
frame.parent.add{type='frame',name='temp'}.destroy()--recenter the GUI
end

View File

@@ -44,7 +44,7 @@ pcall(require,'/Addons/playerRanks')
Ranking._auto_edit_ranks()
-- testing the center gui
center.add{
Gui.center.add{
name='test-center',
caption='Gui Center',
tooltip='Just a gui test'