ivor Posted March 23, 2017 Posted March 23, 2017 سلام الله عليكم اظن ان معظمكم يعرف لوحة القروبات حقت عرب كوم المنشورة وابي اطورها مابي اطول فالكلام , بخش ف الموضوع انا ابي اكواد تخلي جروب توب فالاحتلال ملون يعني 1 الى 3 لون و من 3 الى 5 لون والتاني لون وشكرآ
^iiEcoo'x_) Posted March 23, 2017 Posted March 23, 2017 سويها من مود النقاط ، اول وثاني وثالث ليبل او دي اكس بلون !
ivor Posted March 23, 2017 Author Posted March 23, 2017 4 minutes ago, #_iMr.[E]coo said: سويها من مود النقاط ، اول وثاني وثالث ليبل او دي اكس بلون ! وضح مقصدك !.
#BrosS Posted March 23, 2017 Posted March 23, 2017 بما انك تحب مواضيع المودات المنشورة استخدم مود الجروبات حق أي اس المنشور , فيه توب الاحتلال ملون ::))))))))))))))))))))))))
ivor Posted March 23, 2017 Author Posted March 23, 2017 5 minutes ago, #BrosS said: بما انك تحب مواضيع المودات المنشورة استخدم مود الجروبات حق أي اس المنشور , فيه توب الاحتلال ملون ::)))))))))))))))))))))))) انا قولت بطورة ي حلو وبنشرة ماقلت بخليه لي
#BrosS Posted March 23, 2017 Posted March 23, 2017 Just now, #!Error.xD said: انا قولت بطورة ي حلو وبنشرة ماقلت بخليه لي المود حقك فيه توب احتلال اصلا ؟
ivor Posted March 23, 2017 Author Posted March 23, 2017 1 minute ago, #BrosS said: المود حقك فيه توب احتلال اصلا ؟ يب مود قروبات حق عرب كوم فيه Groups Top بس مافيه تنسيق يعني لو قروب لفل 10 تلقاه واخد المرتبه حقت انشاءة ابي يصير فيها ترتيب
ivor Posted March 23, 2017 Author Posted March 23, 2017 Group_Top_Window = guiCreateWindow(x/2-185,y/2-225,370,440,"[ArabCommunity] - Groups Top",false) guiSetAlpha(Group_Top_Window, 0.9) guiWindowSetSizable(Group_Top_Window,false) Group_Top_Grid = guiCreateGridList(19,28,330,350,false,Group_Top_Window) guiGridListSetSelectionMode(Group_Top_Grid,1) guiGridListAddColumn(Group_Top_Grid,"Group",0.5) guiGridListAddColumn(Group_Top_Grid,"Xp",0.189) guiGridListAddColumn(Group_Top_Grid,"LVL",0.189) guiSetVisible(Group_Top_Window, false) Group_Top_Button = guiCreateButton(150,408,68,25,"Close",false,Group_Top_Window) guiSetProperty(Group_Top_Button, "HoverTextColour", "FFFFFC00") guiSetProperty(Group_Top_Button, "PushedTextColour", "FF00FF00") guiSetProperty(Group_Top_Button, "NormalTextColour", "FF00FCFF")
#BrosS Posted March 23, 2017 Posted March 23, 2017 الأكواد هذي مو المطوبة قلت اللي تضيف الجروبات بالجريد لست مو اللوحة
ivor Posted March 23, 2017 Author Posted March 23, 2017 3 minutes ago, #BrosS said: الأكواد هذي مو المطوبة قلت اللي تضيف الجروبات بالجريد لست مو اللوحة ddEvent("GroupTOPList", true) addEventHandler("GroupTOPList", root, function(groups) guiGridListClear(Group_Top_Grid) for i, group in pairs(groups) do local row = guiGridListAddRow(Group_Top_Grid) guiGridListSetItemText(Group_Top_Grid, row, 1, group["group_name"], false, false) guiGridListSetItemText(Group_Top_Grid, row, 2, group["group_xp"], false, true) local xp = group["group_xp"] if ( tonumber(xp) >= 0 ) and ( tonumber(xp) <= 5000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 1", false, true) elseif ( tonumber(xp) > 5000 ) and ( tonumber(xp) <= 10000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 2", false, true) elseif ( tonumber(xp) > 10000 ) and ( tonumber(xp) <= 20000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 3", false, true) elseif ( tonumber(xp) > 20000 ) and ( tonumber(xp) <= 40000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 4", false, true) elseif ( tonumber(xp) > 40000 ) and ( tonumber(xp) <= 80000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 5", false, true) elseif ( tonumber(xp) > 80000 ) and ( tonumber(xp) <= 160000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 6", false, true) elseif ( tonumber(xp) > 160000 ) and ( tonumber(xp) <= 320000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 7", false, true) elseif ( tonumber(xp) > 320000 ) and ( tonumber(xp) <= 640000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 8", false, true) elseif ( tonumber(xp) > 640000 ) and ( tonumber(xp) <= 1000000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 9", false, true) elseif ( tonumber(xp) > 1000000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 10", false, true) end end end) ذي ؟ حسب مافهمت منك ذذ
#BrosS Posted March 23, 2017 Posted March 23, 2017 تبي تحط ألوان , ارني محاولتك يا فتى guiGridListSetItemColor
ivor Posted March 23, 2017 Author Posted March 23, 2017 Just now, #BrosS said: تبي تحط ألوان , ارني محاولتك يا فتى guiGridListSetItemColor addEvent("GroupTOPList", true) addEventHandler("GroupTOPList", root, function(groups) guiGridListClear(Group_Top_Grid) for i, group in pairs(groups) do local row = guiGridListAddRow(Group_Top_Grid) guiGridListSetItemText(Group_Top_Grid, row, 1, group["group_name"], false, false) guiGridListSetItemText(Group_Top_Grid, row, 2, group["group_xp"], false, true) local xp = group["group_xp"] if ( tonumber(xp) >= 0 ) and ( tonumber(xp) <= 5000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 1", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 ) elseif ( tonumber(xp) > 5000 ) and ( tonumber(xp) <= 10000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 2", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 ) elseif ( tonumber(xp) > 10000 ) and ( tonumber(xp) <= 20000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 3", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 ) elseif ( tonumber(xp) > 20000 ) and ( tonumber(xp) <= 40000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 4", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 ) elseif ( tonumber(xp) > 40000 ) and ( tonumber(xp) <= 80000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 5", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 ) elseif ( tonumber(xp) > 80000 ) and ( tonumber(xp) <= 160000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 6", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 100, 0 ) elseif ( tonumber(xp) > 160000 ) and ( tonumber(xp) <= 320000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 7", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 100, 0 ) elseif ( tonumber(xp) > 320000 ) and ( tonumber(xp) <= 640000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 8", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 100, 255, 0 ) elseif ( tonumber(xp) > 640000 ) and ( tonumber(xp) <= 1000000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 9", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 100, 255, 0 ) elseif ( tonumber(xp) > 1000000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 10", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 100, 255, 0 ) end end end) م في مستحيل سمعتهم يقولون كذا صح؟
#Soking Posted March 23, 2017 Posted March 23, 2017 1 minute ago, #!Error.xD said: addEvent("GroupTOPList", true) addEventHandler("GroupTOPList", root, function(groups) guiGridListClear(Group_Top_Grid) for i, group in pairs(groups) do local row = guiGridListAddRow(Group_Top_Grid) guiGridListSetItemText(Group_Top_Grid, row, 1, group["group_name"], false, false) guiGridListSetItemText(Group_Top_Grid, row, 2, group["group_xp"], false, true) local xp = group["group_xp"] if ( tonumber(xp) >= 0 ) and ( tonumber(xp) <= 5000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 1", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 ) elseif ( tonumber(xp) > 5000 ) and ( tonumber(xp) <= 10000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 2", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 ) elseif ( tonumber(xp) > 10000 ) and ( tonumber(xp) <= 20000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 3", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 ) elseif ( tonumber(xp) > 20000 ) and ( tonumber(xp) <= 40000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 4", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 ) elseif ( tonumber(xp) > 40000 ) and ( tonumber(xp) <= 80000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 5", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 0, 0 ) elseif ( tonumber(xp) > 80000 ) and ( tonumber(xp) <= 160000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 6", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 100, 0 ) elseif ( tonumber(xp) > 160000 ) and ( tonumber(xp) <= 320000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 7", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 255, 100, 0 ) elseif ( tonumber(xp) > 320000 ) and ( tonumber(xp) <= 640000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 8", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 100, 255, 0 ) elseif ( tonumber(xp) > 640000 ) and ( tonumber(xp) <= 1000000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 9", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 100, 255, 0 ) elseif ( tonumber(xp) > 1000000 ) then guiGridListSetItemText(Group_Top_Grid, row, 3, "LVL 10", false, true) guiGridListSetItemColor ( Group_Top_Grid, row, 3, 100, 255, 0 ) end end end) م في مستحيل سمعتهم يقولون كذا صح؟ جربت الكود انت ؟؟
#BrosS Posted March 23, 2017 Posted March 23, 2017 1 minute ago, #Soking said: جربت الكود انت ؟؟ الكود شغال على ما اعتقد
ivor Posted March 23, 2017 Author Posted March 23, 2017 1 minute ago, #Soking said: جربت الكود انت ؟؟ يب واشتغل تمام guiGridListSetItemColor ( Group_Top_Grid, row,1,2 3, 255, 0, 0 ) تظبط كذا؟ لو بخليها ع الكل الاسم واللفل والاكس بي
#BrosS Posted March 23, 2017 Posted March 23, 2017 4 minutes ago, #!Error.xD said: يب واشتغل تمام guiGridListSetItemColor ( Group_Top_Grid, row,1,2 3, 255, 0, 0 ) تظبط كذا؟ لو بخليها ع الكل الاسم واللفل والاكس بي حط لكل كولمن لون ماينفع هيك :-
ivor Posted March 23, 2017 Author Posted March 23, 2017 2 minutes ago, #BrosS said: حط لكل كولمن لون ماينفع هيك :- الكود ظبط بس ع الاكس بي انا ابي اخلي اللون يصير ع الاسم حق القروب واللفل والاكس بي كيف؟
#BrosS Posted March 23, 2017 Posted March 23, 2017 Just now, #!Error.xD said: الكود ظبط بس ع الاكس بي انا ابي اخلي اللون يصير ع الاسم حق القروب واللفل والاكس بي كيف؟ 3 minutes ago, #BrosS said: حط لكل كولمن لون
#BrosS Posted March 23, 2017 Posted March 23, 2017 1 minute ago, #!Error.xD said: مافهمتك guiGridListSetItemColor ( element gridList, int rowIndex, int columnIndex gridList == اسم الجريد لست rowIndex == الرو حقك اللي معرفه columnIndex == رقم الكولم شايف انت مثلا حاطط guiGridListSetItemColor ( Group_Top_Grid, row, 3, 100, 255, 0 ) يعني لونت الكولمن 3 فقط -- اتمنى الفكرة تكون وصلت
ivor Posted March 23, 2017 Author Posted March 23, 2017 guiGridListSetItemColor ( Group_Top_Grid, row, 255, 0, 0 ) تظبط كذا؟
#BrosS Posted March 23, 2017 Posted March 23, 2017 5 minutes ago, #!Error.xD said: guiGridListSetItemColor ( Group_Top_Grid, row, 255, 0, 0 ) تظبط كذا؟ لا اتمنى انك تجرب قبل ان تتكلم
ivor Posted March 23, 2017 Author Posted March 23, 2017 Just now, #BrosS said: لا وش رايك تساعد ؟ وتقول احولها ل شو بلظبط
#BrosS Posted March 23, 2017 Posted March 23, 2017 Just now, #!Error.xD said: وش رايك تساعد ؟ وتقول احولها ل شو بلظبط وش رايك تركز بكلامي فوق
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