drk Posted February 17, 2012 Share Posted February 17, 2012 I want to make a gui table like this: local gui = { var = guiCreateLabel(...), var2 = guiCreateLabel(...) } And use guiSetVisible to set all elements in the table visible? Link to comment
Aibo Posted February 17, 2012 Share Posted February 17, 2012 for key, element in pairs(gui) do guiSetVisible(element, true) end Link to comment
drk Posted February 17, 2012 Author Share Posted February 17, 2012 I tried, but I get error. local gui_Table = { gui['profile_label'] = guiCreateLabel((20/800)*sx,(312/600)*sy,(158/800)*sx,(29/600)*sy,'Profile',true,gui['panel']), gui['stats_label'] = guiCreateLabel((20/800)*sx,(358/600)*sy,(158/800)*sx,(29/600)*sy,'Stats',true,gui['panel']), gui['shop_label'] = guiCreateLabel((21/800)*sx,(405/600)*sy,(158/800)*sx,(29/600)*sy,'Shop',true,gui['panel']), gui['top_label'] = guiCreateLabel((21/800)*sx,(452/600)*sy,(158/800)*sx,(29/600)*sy,'Top',true,gui['panel']), gui['sms_label'] = guiCreateLabel((44/800)*sx,(495/600)*sy,(110/800)*sx,(22/600)*sy,'SMS',true,gui['panel']), gui['time_label'] = guiCreateLabel((14/800)*sx,(241/600)*sy,(169/800)*sx,(34/600)*sy,'23:00',true,gui['panel']), gui['time'] = guiCreateStaticImage((13/800)*sx,(210/600)*sy,(172/800)*sx,(77/600)*sy,'_utils/_data/_image/memo_hover.png',true,gui['panel']), gui['panel'] = guiCreateStaticImage((0/800)*sx,(194/600)*sy,(197/800)*sx,(378/600)*sy,'_utils/_data/_image/main.png',true,false), gui['button1'] = guiCreateStaticImage((19/800)*sx,(298/600)*sy,(160/800)*sx,(41/600)*sy,'_utils/_data/_image/button1.png',true,gui['panel']), gui['button2'] = guiCreateStaticImage((19/800)*sx,(344/600)*sy,(160/800)*sx,(41/600)*sy,'_utils/_data/_image/button1.png',true,gui['panel']), gui['button3'] = guiCreateStaticImage((20/800)*sx,(389/600)*sy,(160/800)*sx,(42/600)*sy,'_utils/_data/_image/button1.png',true,gui['panel']), gui['button4'] = guiCreateStaticImage((20/800)*sx,(436/600)*sy,(160/800)*sx,(42/600)*sy,'_utils/_data/_image/button1.png',true,gui['panel']), gui['button5'] = guiCreateStaticImage((45/800)*sx,(488/600)*sy,(111/800)*sx,(30/600)*sy,'_utils/_data/_image/button1.png',true,gui['panel']), gui['more'] = guiCreateStaticImage((76/800)*sx,(527/600)*sy,(44/800)*sx,(37/600)*sy,'_utils/_data/_image/options.png',true,gui['panel']) } Expected to close '{' Link to comment
Evil-Cod3r Posted February 17, 2012 Share Posted February 17, 2012 i tryed all things to fix it its say unexpected symbol near = ??? Link to comment
drk Posted February 17, 2012 Author Share Posted February 17, 2012 I don't want to someone fix it.. Only to explain me how to add gui elements into a table and using the table name to show / hide the elements like in race mode ( race_client.lua ) Link to comment
Castillo Posted February 17, 2012 Share Posted February 17, 2012 local gui_Table = { ['profile_label'] = guiCreateLabel((20/800)*sx,(312/600)*sy,(158/800)*sx,(29/600)*sy,'Profile',true,gui['panel']), ['stats_label'] = guiCreateLabel((20/800)*sx,(358/600)*sy,(158/800)*sx,(29/600)*sy,'Stats',true,gui['panel']), ['shop_label'] = guiCreateLabel((21/800)*sx,(405/600)*sy,(158/800)*sx,(29/600)*sy,'Shop',true,gui['panel']), ['top_label'] = guiCreateLabel((21/800)*sx,(452/600)*sy,(158/800)*sx,(29/600)*sy,'Top',true,gui['panel']), ['sms_label'] = guiCreateLabel((44/800)*sx,(495/600)*sy,(110/800)*sx,(22/600)*sy,'SMS',true,gui['panel']), ['time_label'] = guiCreateLabel((14/800)*sx,(241/600)*sy,(169/800)*sx,(34/600)*sy,'23:00',true,gui['panel']), ['time'] = guiCreateStaticImage((13/800)*sx,(210/600)*sy,(172/800)*sx,(77/600)*sy,'_utils/_data/_image/memo_hover.png',true,gui['panel']), ['panel'] = guiCreateStaticImage((0/800)*sx,(194/600)*sy,(197/800)*sx,(378/600)*sy,'_utils/_data/_image/main.png',true,false), ['button1'] = guiCreateStaticImage((19/800)*sx,(298/600)*sy,(160/800)*sx,(41/600)*sy,'_utils/_data/_image/button1.png',true,gui['panel']), ['button2'] = guiCreateStaticImage((19/800)*sx,(344/600)*sy,(160/800)*sx,(41/600)*sy,'_utils/_data/_image/button1.png',true,gui['panel']), ['button3'] = guiCreateStaticImage((20/800)*sx,(389/600)*sy,(160/800)*sx,(42/600)*sy,'_utils/_data/_image/button1.png',true,gui['panel']), ['button4'] = guiCreateStaticImage((20/800)*sx,(436/600)*sy,(160/800)*sx,(42/600)*sy,'_utils/_data/_image/button1.png',true,gui['panel']), ['button5'] = guiCreateStaticImage((45/800)*sx,(488/600)*sy,(111/800)*sx,(30/600)*sy,'_utils/_data/_image/button1.png',true,gui['panel']), ['more'] = guiCreateStaticImage((76/800)*sx,(527/600)*sy,(44/800)*sx,(37/600)*sy,'_utils/_data/_image/options.png',true,gui['panel']) } guiSetVisible(gui_Table["profile_label"], false) Link to comment
Aibo Posted February 17, 2012 Share Posted February 17, 2012 your syntax is wrong. you already placing your elements into a table called gui. in table syntax its: { key = value } and gui['blabla'] is not a valid table key. and Solidsnake14 forgot to edit parent element that is still gui['panel'] Link to comment
drk Posted February 17, 2012 Author Share Posted February 17, 2012 your syntax is wrong.you already placing your elements into a table called gui. in table syntax its: { key = value } and gui['blabla'] is not a valid table key. and Solidsnake14 forgot to edit parent element that is still gui['panel'] No problem Aibo, I can change haha I understand now. Link to comment
Kenix Posted February 17, 2012 Share Posted February 17, 2012 local gui_Table = { __main = function( ) panel = guiCreateStaticImage( (0/800)*sx,(194/600)*sy,(197/800)*sx,(378/600)*sy,'_utils/_data/_image/main.png',true,false ) profile_label = guiCreateLabel( (20/800)*sx,(312/600)*sy,(158/800)*sx,(29/600)*sy,'Profile',true,panel ) stats_label = guiCreateLabel( (20/800)*sx,(358/600)*sy,(158/800)*sx,(29/600)*sy,'Stats',true,panel ) shop_label = guiCreateLabel( (21/800)*sx,(405/600)*sy,(158/800)*sx,(29/600)*sy,'Shop',true,panel ) top_label = guiCreateLabel( (21/800)*sx,(452/600)*sy,(158/800)*sx,(29/600)*sy,'Top',true,panel ) sms_label = guiCreateLabel( (44/800)*sx,(495/600)*sy,(110/800)*sx,(22/600)*sy,'SMS',true,panel ) time_label = guiCreateLabel( (14/800)*sx,(241/600)*sy,(169/800)*sx,(34/600)*sy,'23:00',true,panel ) time = guiCreateStaticImage( (13/800)*sx,(210/600)*sy,(172/800)*sx,(77/600)*sy,'_utils/_data/_image/memo_hover.png',true,panel ) button1 = guiCreateStaticImage( (19/800)*sx,(298/600)*sy,(160/800)*sx,(41/600)*sy,'_utils/_data/_image/button1.png',true,panel ) button2 = guiCreateStaticImage( (19/800)*sx,(344/600)*sy,(160/800)*sx,(41/600)*sy,'_utils/_data/_image/button1.png',true,panel ) button3 = guiCreateStaticImage( (20/800)*sx,(389/600)*sy,(160/800)*sx,(42/600)*sy,'_utils/_data/_image/button1.png',true,panel ) button4 = guiCreateStaticImage( (20/800)*sx,(436/600)*sy,(160/800)*sx,(42/600)*sy,'_utils/_data/_image/button1.png',true,panel ) button5 = guiCreateStaticImage( (45/800)*sx,(488/600)*sy,(111/800)*sx,(30/600)*sy,'_utils/_data/_image/button1.png',true,panel ) more = guiCreateStaticImage( (76/800)*sx,(527/600)*sy,(44/800)*sx,(37/600)*sy,'_utils/_data/_image/options.png',true,panel ) return panel end; __visible = function( el,state ) return guiSetVisible( el, state ) end; __destroy = function( el ) if isElement( el ) then return destroyElement( el ) end return false end; } local parent = gui_Table.__main( ) gui_Table.__visible( parent,false ) Link to comment
drk Posted February 17, 2012 Author Share Posted February 17, 2012 local gui_Table = { __main = function( ) panel = guiCreateStaticImage( (0/800)*sx,(194/600)*sy,(197/800)*sx,(378/600)*sy,'_utils/_data/_image/main.png',true,false ) profile_label = guiCreateLabel( (20/800)*sx,(312/600)*sy,(158/800)*sx,(29/600)*sy,'Profile',true,panel ) stats_label = guiCreateLabel( (20/800)*sx,(358/600)*sy,(158/800)*sx,(29/600)*sy,'Stats',true,panel ) shop_label = guiCreateLabel( (21/800)*sx,(405/600)*sy,(158/800)*sx,(29/600)*sy,'Shop',true,panel ) top_label = guiCreateLabel( (21/800)*sx,(452/600)*sy,(158/800)*sx,(29/600)*sy,'Top',true,panel ) sms_label = guiCreateLabel( (44/800)*sx,(495/600)*sy,(110/800)*sx,(22/600)*sy,'SMS',true,panel ) time_label = guiCreateLabel( (14/800)*sx,(241/600)*sy,(169/800)*sx,(34/600)*sy,'23:00',true,panel ) time = guiCreateStaticImage( (13/800)*sx,(210/600)*sy,(172/800)*sx,(77/600)*sy,'_utils/_data/_image/memo_hover.png',true,panel ) button1 = guiCreateStaticImage( (19/800)*sx,(298/600)*sy,(160/800)*sx,(41/600)*sy,'_utils/_data/_image/button1.png',true,panel ) button2 = guiCreateStaticImage( (19/800)*sx,(344/600)*sy,(160/800)*sx,(41/600)*sy,'_utils/_data/_image/button1.png',true,panel ) button3 = guiCreateStaticImage( (20/800)*sx,(389/600)*sy,(160/800)*sx,(42/600)*sy,'_utils/_data/_image/button1.png',true,panel ) button4 = guiCreateStaticImage( (20/800)*sx,(436/600)*sy,(160/800)*sx,(42/600)*sy,'_utils/_data/_image/button1.png',true,panel ) button5 = guiCreateStaticImage( (45/800)*sx,(488/600)*sy,(111/800)*sx,(30/600)*sy,'_utils/_data/_image/button1.png',true,panel ) more = guiCreateStaticImage( (76/800)*sx,(527/600)*sy,(44/800)*sx,(37/600)*sy,'_utils/_data/_image/options.png',true,panel ) return panel end; __visible = function( el,state ) return guiSetVisible( el, state ) end; __destroy = function( el ) if isElement( el ) then return destroyElement( el ) end return false end; } local parent = gui_Table.__main( ) gui_Table.__visible( parent,false ) Can you explain me this: return panel end; __visible = function( el,state ) return guiSetVisible( el, state ) end; __destroy = function( el ) if isElement( el ) then return destroyElement( el ) end return false end; } local parent = gui_Table.__main( ) gui_Table.__visible( parent,false ) Link to comment
Kenix Posted February 17, 2012 Share Posted February 17, 2012 (edited) Functions in table. This code: local gui_Table = { __main = function( ) panel = guiCreateStaticImage( (0/800)*sx,(194/600)*sy,(197/800)*sx,(378/600)*sy,'_utils/_data/_image/main.png',true,false ) profile_label = guiCreateLabel( (20/800)*sx,(312/600)*sy,(158/800)*sx,(29/600)*sy,'Profile',true,panel ) stats_label = guiCreateLabel( (20/800)*sx,(358/600)*sy,(158/800)*sx,(29/600)*sy,'Stats',true,panel ) shop_label = guiCreateLabel( (21/800)*sx,(405/600)*sy,(158/800)*sx,(29/600)*sy,'Shop',true,panel ) top_label = guiCreateLabel( (21/800)*sx,(452/600)*sy,(158/800)*sx,(29/600)*sy,'Top',true,panel ) sms_label = guiCreateLabel( (44/800)*sx,(495/600)*sy,(110/800)*sx,(22/600)*sy,'SMS',true,panel ) time_label = guiCreateLabel( (14/800)*sx,(241/600)*sy,(169/800)*sx,(34/600)*sy,'23:00',true,panel ) time = guiCreateStaticImage( (13/800)*sx,(210/600)*sy,(172/800)*sx,(77/600)*sy,'_utils/_data/_image/memo_hover.png',true,panel ) button1 = guiCreateStaticImage( (19/800)*sx,(298/600)*sy,(160/800)*sx,(41/600)*sy,'_utils/_data/_image/button1.png',true,panel ) button2 = guiCreateStaticImage( (19/800)*sx,(344/600)*sy,(160/800)*sx,(41/600)*sy,'_utils/_data/_image/button1.png',true,panel ) button3 = guiCreateStaticImage( (20/800)*sx,(389/600)*sy,(160/800)*sx,(42/600)*sy,'_utils/_data/_image/button1.png',true,panel ) button4 = guiCreateStaticImage( (20/800)*sx,(436/600)*sy,(160/800)*sx,(42/600)*sy,'_utils/_data/_image/button1.png',true,panel ) button5 = guiCreateStaticImage( (45/800)*sx,(488/600)*sy,(111/800)*sx,(30/600)*sy,'_utils/_data/_image/button1.png',true,panel ) more = guiCreateStaticImage( (76/800)*sx,(527/600)*sy,(44/800)*sx,(37/600)*sy,'_utils/_data/_image/options.png',true,panel ) return panel end; __visible = function( el,state ) return guiSetVisible( el, state ) end; __destroy = function( el ) if isElement( el ) then return destroyElement( el ) end return false end; } Same local gui_Table = { ['__main'] = function( ) panel = guiCreateStaticImage( (0/800)*sx,(194/600)*sy,(197/800)*sx,(378/600)*sy,'_utils/_data/_image/main.png',true,false ) profile_label = guiCreateLabel( (20/800)*sx,(312/600)*sy,(158/800)*sx,(29/600)*sy,'Profile',true,panel ) stats_label = guiCreateLabel( (20/800)*sx,(358/600)*sy,(158/800)*sx,(29/600)*sy,'Stats',true,panel ) shop_label = guiCreateLabel( (21/800)*sx,(405/600)*sy,(158/800)*sx,(29/600)*sy,'Shop',true,panel ) top_label = guiCreateLabel( (21/800)*sx,(452/600)*sy,(158/800)*sx,(29/600)*sy,'Top',true,panel ) sms_label = guiCreateLabel( (44/800)*sx,(495/600)*sy,(110/800)*sx,(22/600)*sy,'SMS',true,panel ) time_label = guiCreateLabel( (14/800)*sx,(241/600)*sy,(169/800)*sx,(34/600)*sy,'23:00',true,panel ) time = guiCreateStaticImage( (13/800)*sx,(210/600)*sy,(172/800)*sx,(77/600)*sy,'_utils/_data/_image/memo_hover.png',true,panel ) button1 = guiCreateStaticImage( (19/800)*sx,(298/600)*sy,(160/800)*sx,(41/600)*sy,'_utils/_data/_image/button1.png',true,panel ) button2 = guiCreateStaticImage( (19/800)*sx,(344/600)*sy,(160/800)*sx,(41/600)*sy,'_utils/_data/_image/button1.png',true,panel ) button3 = guiCreateStaticImage( (20/800)*sx,(389/600)*sy,(160/800)*sx,(42/600)*sy,'_utils/_data/_image/button1.png',true,panel ) button4 = guiCreateStaticImage( (20/800)*sx,(436/600)*sy,(160/800)*sx,(42/600)*sy,'_utils/_data/_image/button1.png',true,panel ) button5 = guiCreateStaticImage( (45/800)*sx,(488/600)*sy,(111/800)*sx,(30/600)*sy,'_utils/_data/_image/button1.png',true,panel ) more = guiCreateStaticImage( (76/800)*sx,(527/600)*sy,(44/800)*sx,(37/600)*sy,'_utils/_data/_image/options.png',true,panel ) return panel end; ['__visible'] = function( el,state ) return guiSetVisible( el, state ) end; ['__destroy'] = function( el ) if isElement( el ) then return destroyElement( el ) end return false end; } You can call: local parent = gui_Table.__main( ) gui_Table.__visible( parent,false ) or local parent = gui_Table['__main']( ) gui_Table['__visible']( parent,false ) Edited February 17, 2012 by Guest Link to comment
Kenix Posted February 17, 2012 Share Posted February 17, 2012 I know this. What not understand? Link to comment
drk Posted February 17, 2012 Author Share Posted February 17, 2012 Your code, i'm saying here "What the fuck, what is it" LOL haha I can't use parent variable for guiGetVisible? Link to comment
Kenix Posted February 17, 2012 Share Posted February 17, 2012 (edited) Your code, i'm saying here "What the , what is it" LOL haha I can't use parent variable for guiGetVisible? You can ,because it return gui-element . Just example: local parent = gui_Table.__main( ) -- so it returned gui-element( static image ) guiSetAlpha( parent,0.7 ) guiSetEnabled( parent,false ) guiSetVisible( parent,not guiGetVisible( parent ) ) Edited February 17, 2012 by Guest Link to comment
drk Posted February 17, 2012 Author Share Posted February 17, 2012 And if I want to change, example, the font I can use gui_Table['panel'] ? Sorry for being noob, I don't understand. Link to comment
Kenix Posted February 17, 2012 Share Posted February 17, 2012 I not understand you what you mean. Link to comment
drk Posted February 17, 2012 Author Share Posted February 17, 2012 I can use like gui_Table['panel'] to set the image alpha, or use like this to change the font. Link to comment
Kenix Posted February 17, 2012 Share Posted February 17, 2012 Font for image oO? Yes you can do everything with this. I see you examples. local parent = gui_Table.__main( ) -- so it returned gui-element( static image ) guiSetAlpha( parent,0.7 ) guiSetEnabled( parent,false ) guiSetVisible( parent,not guiGetVisible( parent ) ) Link to comment
drk Posted February 17, 2012 Author Share Posted February 17, 2012 (edited) Font for image oO?Yes you can do everything with this. I see you examples. 'Font for image oO?' My bad haha But it's only a example, you understand. But If I want to set a font to a label in the main function can you show me a example? Edited February 17, 2012 by Guest Link to comment
Kenix Posted February 17, 2012 Share Posted February 17, 2012 Font for image oO?Yes you can do everything with this. I see you examples. 'Font for image oO?' My bad haha But it's only a example, you understand. So you understand this? Link to comment
drk Posted February 17, 2012 Author Share Posted February 17, 2012 Font for image oO?Yes you can do everything with this. I see you examples. 'Font for image oO?' My bad haha But it's only a example, you understand. So you understand this? Now, yes. But If I want to set a font to a label in the main function can you show me a example? Link to comment
Kenix Posted February 17, 2012 Share Posted February 17, 2012 (edited) local gui_Table = { __main = function( ) local panel = guiCreateStaticImage( (0/800)*sx,(194/600)*sy,(197/800)*sx,(378/600)*sy,'_utils/_data/_image/main.png',true,false ); return panel, { profile_label = guiCreateLabel( (20/800)*sx,(312/600)*sy,(158/800)*sx,(29/600)*sy,'Profile',true,panel ); stats_label = guiCreateLabel( (20/800)*sx,(358/600)*sy,(158/800)*sx,(29/600)*sy,'Stats',true,panel ); shop_label = guiCreateLabel( (21/800)*sx,(405/600)*sy,(158/800)*sx,(29/600)*sy,'Shop',true,panel ); top_label = guiCreateLabel( (21/800)*sx,(452/600)*sy,(158/800)*sx,(29/600)*sy,'Top',true,panel ); sms_label = guiCreateLabel( (44/800)*sx,(495/600)*sy,(110/800)*sx,(22/600)*sy,'SMS',true,panel ); time_label = guiCreateLabel( (14/800)*sx,(241/600)*sy,(169/800)*sx,(34/600)*sy,'23:00',true,panel ); time = guiCreateStaticImage( (13/800)*sx,(210/600)*sy,(172/800)*sx,(77/600)*sy,'_utils/_data/_image/memo_hover.png',true,panel ); button1 = guiCreateStaticImage( (19/800)*sx,(298/600)*sy,(160/800)*sx,(41/600)*sy,'_utils/_data/_image/button1.png',true,panel ); button2 = guiCreateStaticImage( (19/800)*sx,(344/600)*sy,(160/800)*sx,(41/600)*sy,'_utils/_data/_image/button1.png',true,panel ); button3 = guiCreateStaticImage( (20/800)*sx,(389/600)*sy,(160/800)*sx,(42/600)*sy,'_utils/_data/_image/button1.png',true,panel ); button4 = guiCreateStaticImage( (20/800)*sx,(436/600)*sy,(160/800)*sx,(42/600)*sy,'_utils/_data/_image/button1.png',true,panel ); button5 = guiCreateStaticImage( (45/800)*sx,(488/600)*sy,(111/800)*sx,(30/600)*sy,'_utils/_data/_image/button1.png',true,panel ); more = guiCreateStaticImage( (76/800)*sx,(527/600)*sy,(44/800)*sx,(37/600)*sy,'_utils/_data/_image/options.png',true,panel ); } end; __font = function( el,font ) return guiSetFont( el,font ) end; __visible = function( el,state ) return guiSetVisible( el, state ) end; __destroy = function( el ) if isElement( el ) then return destroyElement( el ) end return false end; } local _,t = gui_Table.__main( ) guiSetFont( t.stats_label,'sa-header' ) Updated. Edited February 17, 2012 by Guest Link to comment
drk Posted February 17, 2012 Author Share Posted February 17, 2012 local gui_Table = { __main = function( ) local panel = guiCreateStaticImage( (0/800)*sx,(194/600)*sy,(197/800)*sx,(378/600)*sy,'_utils/_data/_image/main.png',true,false ); return panel, { profile_label = guiCreateLabel( (20/800)*sx,(312/600)*sy,(158/800)*sx,(29/600)*sy,'Profile',true,panel ); stats_label = guiCreateLabel( (20/800)*sx,(358/600)*sy,(158/800)*sx,(29/600)*sy,'Stats',true,panel ); shop_label = guiCreateLabel( (21/800)*sx,(405/600)*sy,(158/800)*sx,(29/600)*sy,'Shop',true,panel ); top_label = guiCreateLabel( (21/800)*sx,(452/600)*sy,(158/800)*sx,(29/600)*sy,'Top',true,panel ); sms_label = guiCreateLabel( (44/800)*sx,(495/600)*sy,(110/800)*sx,(22/600)*sy,'SMS',true,panel ); time_label = guiCreateLabel( (14/800)*sx,(241/600)*sy,(169/800)*sx,(34/600)*sy,'23:00',true,panel ); time = guiCreateStaticImage( (13/800)*sx,(210/600)*sy,(172/800)*sx,(77/600)*sy,'_utils/_data/_image/memo_hover.png',true,panel ); button1 = guiCreateStaticImage( (19/800)*sx,(298/600)*sy,(160/800)*sx,(41/600)*sy,'_utils/_data/_image/button1.png',true,panel ); button2 = guiCreateStaticImage( (19/800)*sx,(344/600)*sy,(160/800)*sx,(41/600)*sy,'_utils/_data/_image/button1.png',true,panel ); button3 = guiCreateStaticImage( (20/800)*sx,(389/600)*sy,(160/800)*sx,(42/600)*sy,'_utils/_data/_image/button1.png',true,panel ); button4 = guiCreateStaticImage( (20/800)*sx,(436/600)*sy,(160/800)*sx,(42/600)*sy,'_utils/_data/_image/button1.png',true,panel ); button5 = guiCreateStaticImage( (45/800)*sx,(488/600)*sy,(111/800)*sx,(30/600)*sy,'_utils/_data/_image/button1.png',true,panel ); more = guiCreateStaticImage( (76/800)*sx,(527/600)*sy,(44/800)*sx,(37/600)*sy,'_utils/_data/_image/options.png',true,panel ); } end; __font = function( el,font ) return guiSetFont( el,font ) end; __visible = function( el,state ) return guiSetVisible( el, state ) end; __destroy = function( el ) if isElement( el ) then return destroyElement( el ) end return false end; } local parent = gui_Table.__main( ) guiSetFont( parent.stats_label,'sa-header' ) Thanks dude. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now