FAHD+18 Posted December 24, 2016 Posted December 24, 2016 سوال انا الان اسوي مثلا لوحة قوانين واسوي بها combobox تمام عايز لما اضغط عليها يجيلي اختيارات ولما اضغط علي اختيار يجيلي لوحه شكرا
^iiEcoo'x_) Posted December 24, 2016 Posted December 24, 2016 addEventHandler("onClientGUIClick",root,function() if guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == true then guiSetVisible( GUIEditor.window[1], true) end end) 1
FAHD+18 Posted December 24, 2016 Author Posted December 24, 2016 طيب بكتب وين مثلا انا عامل اقسام مثل Arabic و English ازاي احدد
Abu-Solo Posted December 24, 2016 Posted December 24, 2016 (edited) --------لو عندك ازرار تغيير اللغة استخدم هذا الكود addEventHandler("onClientGUIClick",root,function() if source == Arabic then guiSetText(YourButtonOrLabelName,"Register") elseif source == English then guiSetText(YourButtonOrLabelName,"انشاء حساب") end end ) ----- YourButtonOrLabelName = حط اسم النافذة او اسم الزرار او اسم الليبل اللي تبي كلامه يتغير ! انا سويتلك مثال بسيط فوق واذا تبيه اول ما يضغط علي الـ CheckBox addEventHandler("onClientGUIClick",root,function() if guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == true then guiSetText(YourButtonOrLabelName,"حياكم الله في السيرفر") elseif guiCheckBoxGetSelected(GUIEditor.checkbox[2] == true then guiSetText(YourButtonOrLabelName,"Welcome to the server") end end) + انت حاط موضوعك في القسم الغلط لازم يكون في قسم البرمج @ Edited December 24, 2016 by Abu-Solo 1
MR.GRAND Posted December 24, 2016 Posted December 24, 2016 I think he said something about comboBox no checkBox ^ أعتقد هو قال عن الكومبو بوكس مو التشيك بوكس 1
Abu-Solo Posted December 24, 2016 Posted December 24, 2016 (edited) guiComboBoxGetSelected guiComboBoxGetItemText guiSetVisible Edited December 24, 2016 by Abu-Solo
Jw8. Posted December 24, 2016 Posted December 24, 2016 Spoiler guiComboBoxGetSelected guiComboBoxGetItemText
FAHD+18 Posted December 24, 2016 Author Posted December 24, 2016 الكود جاهز شباب combo box اتمني الافادة
SycroX Posted December 25, 2016 Posted December 25, 2016 انتا تبي لوحة قوانين مثل الي كانت في Gta-Ws ؟ الي هي كومبو بوكس فيه اختيار اللغة و جريد لست فيه المحتويات و لما يدوس علي الجريد لست يحط المعلومات في لابل ؟
Abu-Solo Posted December 25, 2016 Posted December 25, 2016 3 hours ago, #Skrillex said: انتا تبي لوحة قوانين مثل الي كانت في Gta-Ws ؟ الي هي كومبو بوكس فيه اختيار اللغة و جريد لست فيه المحتويات و لما يدوس علي الجريد لست يحط المعلومات في لابل ؟ يب هذا قصده يبي اول ما يختار شئ من الكومبو بوكس يجيه لوحة ثانية
Kara Posted December 25, 2016 Posted December 25, 2016 window = guiCreateWindow(...); combobox = guiCreateComboBox(...); Button = guiCreateButton(...); guiComboBoxAddItem(combobox, "الخيار رقم1"); guiComboBoxAddItem(combobox, "الخيار رقم 2"); addEventHandler("onClientGUIClick", resourceRoot, function () if source == Button then local comboboxxx = guiComboBoxGetSelected(combobox); if cubox == 1 then guiSetVisible(window,true) end end end ); 1
Abu-Solo Posted December 25, 2016 Posted December 25, 2016 On ٢٦/٣/١٤٣٨ هـ at 5:34 PM, Kara said: window = guiCreateWindow(...); combobox = guiCreateComboBox(...); Button = guiCreateButton(...); guiComboBoxAddItem(combobox, "الخيار رقم1"); guiComboBoxAddItem(combobox, "الخيار رقم 2"); addEventHandler("onClientGUIClick", resourceRoot, function () if source == Button then local comboboxxx = guiComboBoxGetSelected(combobox); if cubox == 1 then guiSetVisible(window,true) end end end ); عندك خطأ ,.. هذا التصحيح addEventHandler("onClientGUIClick", resourceRoot, function () if source == Button then local comboboxxx = guiComboBoxGetSelected(combobox); if comboboxxx == 1 then guiSetVisible(window,true) end end end ); #Edit: On ٢٦/٣/١٤٣٨ هـ at 5:34 PM, Kara said: window = guiCreateWindow(...); combobox = guiCreateComboBox(...); Button = guiCreateButton(...); guiComboBoxAddItem(combobox, "الخيار رقم1"); guiComboBoxAddItem(combobox, "الخيار رقم 2"); addEventHandler("onClientGUIClick", resourceRoot, function () if source == Button then local comboboxxx = guiComboBoxGetSelected(combobox); if cubox == 1 then guiSetVisible(window,true) end end end );
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