KaduRo Posted March 27, 2014 Share Posted March 27, 2014 السلام عليكم شباب هل في طريقة أني استخدم امر guiSetVisible لازرار وليبل بدون النافذه بدون لأكرر هذا الامر ؟؟ يعني مثال guiSetVisible(button1, false) guiSetVisible(button2 , false) guiSetVisible(label1 , false) -- ألخ هل تنفع الجداول ؟ Link to comment
iPrestege Posted March 27, 2014 Share Posted March 27, 2014 أكيــد تنفــع لـ أي Gui Element والجدوال كذلك ._. Link to comment
KaduRo Posted March 27, 2014 Author Share Posted March 27, 2014 window = {} if window then button= guiCreateButton(698, 550, 96, 33, "", false) button2 = guiCreateButton(597, 550, 96, 33, "", false) label = guiCreateEdit(622, 488, 172, 26, "", false) label2 = guiCreateEdit(622, 514, 172, 26, "", false) guiSetVisible(false) end function playerenter () if window then guiSetVisible(true) end end addEventHandler("onPlayerJoin" , root , playerenter) جربت اللي فوق بس يطلع لي خطا بالguivisible لأنه جدول وثانيآ اخي اقصد ابي اجمع جميع الازرار في امر واحد واحطه بالguivisible Link to comment
al-Kobra Posted March 27, 2014 Share Posted March 27, 2014 window = guiCreateWindow ( 0, 0, 0.5, 0.4, "", true ) button= guiCreateButton(698, 550, 96, 33, "", false, window) button2 = guiCreateButton(597, 550, 96, 33, "", false, window) label = guiCreateEdit(622, 488, 172, 26, "", false, window) label2 = guiCreateEdit(622, 514, 172, 26, "", false, window) showCursor ( guiGetVisible(window) ) كذا اصلا اول مايدخل اللاعب تفتح اللوحة تلقائيا ,, بس اذا سويت ريستارت هم بتشتغل بس اذا تبغيها مثل طريقتك ,, window = guiCreateWindow ( 0, 0, 0.5, 0.4, "", true ) button= guiCreateButton(698, 550, 96, 33, "", false, window) button2 = guiCreateButton(597, 550, 96, 33, "", false, window) label = guiCreateEdit(622, 488, 172, 26, "", false, window) label2 = guiCreateEdit(622, 514, 172, 26, "", false, window) guiSetVisible(window,false) showCursor ( guiGetVisible(window) ) function playerenter () guiSetVisible(window, not guiGetVisible(window) ) showCursor ( guiGetVisible(window) ) end addEventHandler("onPlayerJoin" , root, playerenter) Link to comment
abu5lf Posted March 27, 2014 Share Posted March 27, 2014 for _, gButton in pairs ( getElementsByType( 'gui-button', resourceRoot ) ) do guiSetVisible( gButton, false ) end * هالمثال يخفي لك كل الازرة اللي سويتها من نفس المود 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