Mr.Mostafa Posted June 12, 2018 Author Share Posted June 12, 2018 5 minutes ago, #DesTroeyR said: اطرح اكوادك كاملة Copy_List = { {"=[ :.@.¤,¸¸,¤السلام¨¤¨عليكم¨°¨ورحمة¨°¨الله¨¤¨وبركاته¤,¸¸,¤ ]="}, {"=[ ؤعًلٍيًكُــــمُ أإآٍلًسٍـــلآم وًرًحًمٍــــةَ ألًلًه ؤبًرٍكًـــآإأتًــه ]="}, {"=[ ≈ ▌ اٌلِسُلِاٌمِ عٍلِيٌكُمِ وِرُحٍمِةُ اٌلِلِهٌ وِبّرُكُاٌتْهٌ ▌≈ ]="}, } for i,GR in ipairs(Copy_List) do local row = guiGridListAddRow(System_grid) guiGridListSetItemText(System_grid,row,1,GR[1],false,false) guiGridListSetItemData(System_grid,row,1,{GR[2],GR[3],GR[4]}) guiGridListSetItemColor(System_grid,row,1,math.random(1,255),math.random(2,255),math.random(3,255)) end Link to comment
Doffy Posted June 12, 2018 Share Posted June 12, 2018 2 minutes ago, Mr.Mostafa said: Copy_List = { {"=[ :.@.¤,¸¸,¤السلام¨¤¨عليكم¨°¨ورحمة¨°¨الله¨¤¨وبركاته¤,¸¸,¤ ]="}, {"=[ ؤعًلٍيًكُــــمُ أإآٍلًسٍـــلآم وًرًحًمٍــــةَ ألًلًه ؤبًرٍكًـــآإأتًــه ]="}, {"=[ ≈ ▌ اٌلِسُلِاٌمِ عٍلِيٌكُمِ وِرُحٍمِةُ اٌلِلِهٌ وِبّرُكُاٌتْهٌ ▌≈ ]="}, } for i,GR in ipairs(Copy_List) do local row = guiGridListAddRow(System_grid) guiGridListSetItemText(System_grid,row,1,GR[1],false,false) guiGridListSetItemData(System_grid,row,1,{GR[2],GR[3],GR[4]}) guiGridListSetItemColor(System_grid,row,1,math.random(1,255),math.random(2,255),math.random(3,255)) end اطرح كود فتح اللوحة طيب Link to comment
Mr.Mostafa Posted June 12, 2018 Author Share Posted June 12, 2018 2 minutes ago, #DesTroeyR said: اطرح كود فتح اللوحة طيب وش دخله ؟ + bindKey("n","down", function () guiSetVisible(System_Wnd,not guiGetVisible(System_Wnd)) showCursor(guiGetVisible(System_Wnd)) end ) Link to comment
Doffy Posted June 12, 2018 Share Posted June 12, 2018 Just now, Mr.Mostafa said: وش دخله ؟ + bindKey("n","down", function () guiSetVisible(System_Wnd,not guiGetVisible(System_Wnd)) showCursor(guiGetVisible(System_Wnd)) end ) جرب bindKey("n","down", function () guiSetVisible(System_Wnd,not guiGetVisible(System_Wnd)) showCursor(guiGetVisible(System_Wnd)) addA5tsarat( ) end ) Copy_List = { {"=[ :.@.¤,¸¸,¤السلام¨¤¨عليكم¨°¨ورحمة¨°¨الله¨¤¨وبركاته¤,¸¸,¤ ]="}, {"=[ ؤعًلٍيًكُــــمُ أإآٍلًسٍـــلآم وًرًحًمٍــــةَ ألًلًه ؤبًرٍكًـــآإأتًــه ]="}, {"=[ ≈ ▌ اٌلِسُلِاٌمِ عٍلِيٌكُمِ وِرُحٍمِةُ اٌلِلِهٌ وِبّرُكُاٌتْهٌ ▌≈ ]="}, } function addA5tsarat( ) for i,GR in ipairs(Copy_List) do local row = guiGridListAddRow(System_grid) guiGridListSetItemText(System_grid,row,1,GR[1],false,false) guiGridListSetItemData(System_grid,row,1,{GR[2],GR[3],GR[4]}) guiGridListSetItemColor(System_grid,row,1,math.random(1,255),math.random(2,255),math.random(3,255)) end end addEventHandler("onClientGUIChanged", root, function() if ( source == textbox ) then if ( guiGetText ( source ) == "" ) then addA5tsarat( ) else guiGridListClear ( gridlist ) for i=0, guiGridListGetRowCount ( gridlist ) do local text = guiGridListGetItemText ( gridlist, i, columm ) if ( string.find ( text, guiGetText ( textbox ) ) ) then local newRow = guiGridListAddRow ( gridlist ) guiGridListSetItemText ( gridlist, newRow, columm, text, false, false ) end end end end end ) Link to comment
Mr.Mostafa Posted June 12, 2018 Author Share Posted June 12, 2018 11 minutes ago, #DesTroeyR said: جرب bindKey("n","down", function () guiSetVisible(System_Wnd,not guiGetVisible(System_Wnd)) showCursor(guiGetVisible(System_Wnd)) addA5tsarat( ) end ) Copy_List = { {"=[ :.@.¤,¸¸,¤السلام¨¤¨عليكم¨°¨ورحمة¨°¨الله¨¤¨وبركاته¤,¸¸,¤ ]="}, {"=[ ؤعًلٍيًكُــــمُ أإآٍلًسٍـــلآم وًرًحًمٍــــةَ ألًلًه ؤبًرٍكًـــآإأتًــه ]="}, {"=[ ≈ ▌ اٌلِسُلِاٌمِ عٍلِيٌكُمِ وِرُحٍمِةُ اٌلِلِهٌ وِبّرُكُاٌتْهٌ ▌≈ ]="}, } function addA5tsarat( ) for i,GR in ipairs(Copy_List) do local row = guiGridListAddRow(System_grid) guiGridListSetItemText(System_grid,row,1,GR[1],false,false) guiGridListSetItemData(System_grid,row,1,{GR[2],GR[3],GR[4]}) guiGridListSetItemColor(System_grid,row,1,math.random(1,255),math.random(2,255),math.random(3,255)) end end addEventHandler("onClientGUIChanged", root, function() if ( source == textbox ) then if ( guiGetText ( source ) == "" ) then addA5tsarat( ) else guiGridListClear ( gridlist ) for i=0, guiGridListGetRowCount ( gridlist ) do local text = guiGridListGetItemText ( gridlist, i, columm ) if ( string.find ( text, guiGetText ( textbox ) ) ) then local newRow = guiGridListAddRow ( gridlist ) guiGridListSetItemText ( gridlist, newRow, columm, text, false, false ) end end end end end ) نفس المشكلة لما اكتب اي شي القريد ليست ينصفر وما يجي الي كتبت عنه Link to comment
Rockyz Posted June 12, 2018 Share Posted June 12, 2018 Copy_List = { {'=[ :.@.¤, ¸¸, ¤السلام¨¤¨عليكم¨°¨ورحمة¨°¨الله¨¤¨وبركاته¤, ¸¸, ¤ ]='}, {'=[ ؤعًلٍيًكُــــمُ أإآٍلًسٍـــلآم وًرًحًمٍــــةَ ألًلًه ؤبًرٍكًـــآإأتًــه ]='}, {'=[ ≈ ▌ اٌلِسُلِاٌمِ عٍلِيٌكُمِ وِرُحٍمِةُ اٌلِلِهٌ وِبّرُكُاٌتْهٌ ▌≈ ]='}, } bindKey('n', 'down', function() guiSetVisible(System_Wnd, not guiGetVisible(System_Wnd)) showCursor(guiGetVisible(System_Wnd)) refreshShort() end) function refreshShort() for i, GR in ipairs(Copy_List) do local row = guiGridListAddRow(System_grid) guiGridListSetItemText(System_grid, row, 1, GR[1], false, false) guiGridListSetItemData(System_grid, row, 1, {GR[2], GR[3], GR[4]}) guiGridListSetItemColor(System_grid, row, 1, math.random(1, 255), math.random(2, 255), math.random(3, 255)) end end addEventHandler('onClientGUIChanged', resourceRoot, function() if source == Wnd2.edit[1] then local textVar = guiGetText(Wnd2.edit[1]) if textVar == '' then refreshShort() else for k, v in ipairs(Copy_List) do if string.find(v[1]:upper(), textVar:upper()) then local row = guiGridListAddRow(System_grid) guiGridListSetItemText(System_grid, row, 1, v[1], false, false); guiGridListSetItemData(System_grid, row, 1, {v[2], v[3], v[4]}) guiGridListSetItemColor(System_grid, row, 1, math.random(1, 255), math.random(2, 255), math.random(3, 255)) end end end end end) Link to comment
Doffy Posted June 12, 2018 Share Posted June 12, 2018 1 minute ago, #,+( _xiRoc[K]; > said: Copy_List = { {'=[ :.@.¤, ¸¸, ¤السلام¨¤¨عليكم¨°¨ورحمة¨°¨الله¨¤¨وبركاته¤, ¸¸, ¤ ]='}, {'=[ ؤعًلٍيًكُــــمُ أإآٍلًسٍـــلآم وًرًحًمٍــــةَ ألًلًه ؤبًرٍكًـــآإأتًــه ]='}, {'=[ ≈ ▌ اٌلِسُلِاٌمِ عٍلِيٌكُمِ وِرُحٍمِةُ اٌلِلِهٌ وِبّرُكُاٌتْهٌ ▌≈ ]='}, } bindKey('n', 'down', function() guiSetVisible(System_Wnd, not guiGetVisible(System_Wnd)) showCursor(guiGetVisible(System_Wnd)) refreshShort() end) function refreshShort() for i, GR in ipairs(Copy_List) do local row = guiGridListAddRow(System_grid) guiGridListSetItemText(System_grid, row, 1, GR[1], false, false) guiGridListSetItemData(System_grid, row, 1, {GR[2], GR[3], GR[4]}) guiGridListSetItemColor(System_grid, row, 1, math.random(1, 255), math.random(2, 255), math.random(3, 255)) end end addEventHandler('onClientGUIChanged', resourceRoot, function() if source == Wnd2.edit[1] then local textVar = guiGetText(Wnd2.edit[1]) if textVar == '' then refreshShort() else for k, v in ipairs(Copy_List) do if string.find(v[1]:upper(), textVar:upper()) then local row = guiGridListAddRow(System_grid) guiGridListSetItemText(System_grid, row, 1, v[1], false, false); guiGridListSetItemData(System_grid, row, 1, {v[2], v[3], v[4]}) guiGridListSetItemColor(System_grid, row, 1, math.random(1, 255), math.random(2, 255), math.random(3, 255)) end end end end end) 0.0 ماني شايف اي فرق بين كودك وكودي غير انك حطيت الجدول فوق كود فتح اللوحة Link to comment
Rockyz Posted June 12, 2018 Share Posted June 12, 2018 (edited) 4 minutes ago, #DesTroeyR said: 0.0 ماني شايف اي فرق بين كودك وكودي غير انك حطيت الجدول فوق كود فتح اللوحة كودك غلط شوف وافهم guiGridListClear ( gridlist ) for i=0, guiGridListGetRowCount ( gridlist ) do كانك تسوي كذا for i=0,0 ولا تتفلسف مرة ثانية عزيزي Edited June 12, 2018 by #,+( _xiRoc[K]; > 1 Link to comment
Mr.Mostafa Posted June 12, 2018 Author Share Posted June 12, 2018 (edited) 3 minutes ago, #,+( _xiRoc[K]; > said: كودك غلط شوف وافهم guiGridListClear ( gridlist ) for i=0, guiGridListGetRowCount ( gridlist ) do - 4 minutes ago, #,+( _xiRoc[K]; > said: كودك غلط شوف وافهم guiGridListClear ( gridlist ) for i=0, guiGridListGetRowCount ( gridlist ) do حقك مب شغال ما يسوي شي حتي ما عاد يصفر القريد ليست ض1 Edited June 12, 2018 by Mr.Mostafa Link to comment
Rockyz Posted June 12, 2018 Share Posted June 12, 2018 (edited) اوه اعذرني نسيت فنكشن الحذف Copy_List = { {'=[ :.@.¤, ¸¸, ¤السلام¨¤¨عليكم¨°¨ورحمة¨°¨الله¨¤¨وبركاته¤, ¸¸, ¤ ]='}, {'=[ ؤعًلٍيًكُــــمُ أإآٍلًسٍـــلآم وًرًحًمٍــــةَ ألًلًه ؤبًرٍكًـــآإأتًــه ]='}, {'=[ ≈ ▌ اٌلِسُلِاٌمِ عٍلِيٌكُمِ وِرُحٍمِةُ اٌلِلِهٌ وِبّرُكُاٌتْهٌ ▌≈ ]='}, } bindKey('n', 'down', function() guiSetVisible(System_Wnd, not guiGetVisible(System_Wnd)) showCursor(guiGetVisible(System_Wnd)) refreshShort() end) function refreshShort() guiGridListClear(Copy_List) for i, GR in ipairs(Copy_List) do local row = guiGridListAddRow(System_grid) guiGridListSetItemText(System_grid, row, 1, GR[1], false, false) guiGridListSetItemData(System_grid, row, 1, {GR[2], GR[3], GR[4]}) guiGridListSetItemColor(System_grid, row, 1, math.random(1, 255), math.random(2, 255), math.random(3, 255)) end end addEventHandler('onClientGUIChanged', resourceRoot, function() if source == Wnd2.edit[1] then local textVar = guiGetText(Wnd2.edit[1]) if textVar == '' then refreshShort() else guiGridListClear(Copy_List) for k, v in ipairs(Copy_List) do if string.find(v[1]:upper(), textVar:upper()) then local row = guiGridListAddRow(System_grid) guiGridListSetItemText(System_grid, row, 1, v[1], false, false); guiGridListSetItemData(System_grid, row, 1, {v[2], v[3], v[4]}) guiGridListSetItemColor(System_grid, row, 1, math.random(1, 255), math.random(2, 255), math.random(3, 255)) end end end end end) اذا ماضبط عطني الديبق Edited June 12, 2018 by #,+( _xiRoc[K]; > Link to comment
Doffy Posted June 12, 2018 Share Posted June 12, 2018 6 minutes ago, #,+( _xiRoc[K]; > said: كودك غلط شوف وافهم guiGridListClear ( gridlist ) for i=0, guiGridListGetRowCount ( gridlist ) do كانك تسوي كذا for i=0,0 ولا تتفلسف مرة ثانية عزيزي ههه Link to comment
Rockyz Posted June 12, 2018 Share Posted June 12, 2018 Just now, #DesTroeyR said: ههه استغفر الله بس ماقلت شي يضحك ترا Link to comment
Rockyz Posted June 12, 2018 Share Posted June 12, 2018 (edited) 34 minutes ago, #,+( _xiRoc[K]; > said: اوه اعذرني نسيت فنكشن الحذف Copy_List = { {'=[ :.@.¤, ¸¸, ¤السلام¨¤¨عليكم¨°¨ورحمة¨°¨الله¨¤¨وبركاته¤, ¸¸, ¤ ]='}, {'=[ ؤعًلٍيًكُــــمُ أإآٍلًسٍـــلآم وًرًحًمٍــــةَ ألًلًه ؤبًرٍكًـــآإأتًــه ]='}, {'=[ ≈ ▌ اٌلِسُلِاٌمِ عٍلِيٌكُمِ وِرُحٍمِةُ اٌلِلِهٌ وِبّرُكُاٌتْهٌ ▌≈ ]='}, } bindKey('n', 'down', function() guiSetVisible(System_Wnd, not guiGetVisible(System_Wnd)) showCursor(guiGetVisible(System_Wnd)) refreshShort() end) function refreshShort() guiGridListClear(Copy_List) for i, GR in ipairs(Copy_List) do local row = guiGridListAddRow(System_grid) guiGridListSetItemText(System_grid, row, 1, GR[1], false, false) guiGridListSetItemData(System_grid, row, 1, {GR[2], GR[3], GR[4]}) guiGridListSetItemColor(System_grid, row, 1, math.random(1, 255), math.random(2, 255), math.random(3, 255)) end end addEventHandler('onClientGUIChanged', resourceRoot, function() if source == Wnd2.edit[1] then local textVar = guiGetText(Wnd2.edit[1]) if textVar == '' then refreshShort() else guiGridListClear(Copy_List) for k, v in ipairs(Copy_List) do if string.find(v[1]:upper(), textVar:upper()) then local row = guiGridListAddRow(System_grid) guiGridListSetItemText(System_grid, row, 1, v[1], false, false); guiGridListSetItemData(System_grid, row, 1, {v[2], v[3], v[4]}) guiGridListSetItemColor(System_grid, row, 1, math.random(1, 255), math.random(2, 255), math.random(3, 255)) end end end end end) اذا ماضبط عطني الديبق جربته ضبط اذا ماضبط معك امسح سطر 18 - 34 انت كاتب GR[2], GR[3], GR[4] وفي الجدول مافيه الا GR[1] Edited June 12, 2018 by #,+( _xiRoc[K]; > Link to comment
Mr.Mostafa Posted June 12, 2018 Author Share Posted June 12, 2018 5 hours ago, #,+( _xiRoc[K]; > said: جربته ضبط اذا ماضبط معك امسح سطر 18 - 34 انت كاتب GR[2], GR[3], GR[4] وفي الجدول مافيه الا GR[1] ما اشتغل وما يبحث للاسف! Link to comment
Rockyz Posted June 12, 2018 Share Posted June 12, 2018 Just now, Mr.Mostafa said: ما اشتغل وما يبحث للاسف! اطرح كل اكوادك انا مجربه و شغال 100% Link to comment
Mr.Mostafa Posted June 12, 2018 Author Share Posted June 12, 2018 ملحوظة الاكواد دي مع اضافة الكود حقك - يعني شيل كود حقك الاول لو تبي تضيف تاني FontLabel = guiCreateFont( "Font.ttf", 10 ) FontButton = guiCreateFont( "Font.ttf", 10 ) FontWnd = guiCreateFont( "Font.ttf", 15 ) Copy_List = { {"=[ :.@.¤,¸¸,¤السلام¨¤¨عليكم¨°¨ورحمة¨°¨الله¨¤¨وبركاته¤,¸¸,¤ ]="}, {"=[ ؤعًلٍيًكُــــمُ أإآٍلًسٍـــلآم وًرًحًمٍــــةَ ألًلًه ؤبًرٍكًـــآإأتًــه ]="}, {"=[ ≈ ▌ اٌلِسُلِاٌمِ عٍلِيٌكُمِ وِرُحٍمِةُ اٌلِلِهٌ وِبّرُكُاٌتْهٌ ▌≈ ]="}, {"=[ آإأيً مًسٍآإأعًـــدًةٍةً آإأؤؤ أإآسًتٍفًسُآإأر نٍآأإدًنــــــيً ]="}, {"=[ آإأهــلآ وسهــلآ بككء يآإأ معذبــهم ياكنــق ألطآإأرآإأت #(WEEELLLCCCOOOMMME)# ]="}, {"=[ .@.°¨¨¨™¤¦¤™¨¨¨°~*§.كيف.الحال.ان.شاء.الله.بخير.§*~°¨¨¨™¤¦¤™¨¨¨°.@ ]="}, {"=[ ~*_@ولـكمؤؤؤؤؤؤؤؤؤؤؤ#(WELCOME)#ؤؤؤؤؤؤؤؤؤؤؤؤؤء@_*~ ]="}, {"=[ §¤~^~¤§~.ღ:ღ.وُوُوُلڪمہمہمہ]§[בبہيًّبہ]§[قےلبہيًّ]§[وُوُ.ღ:ღ~§¤~^~¤§ ]="}, {"=[ بــآإأآآآآآآ#(BAACCKK)#آآآآآآآككء ]="}, {"=[ بـــرررؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤ#(BBRRRBB)#ؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤب ]="}, {"=[ ❤▌بّرُبّ عٍﻧَ اٌذّﻧَكُمِ شْوِيٌ وِرُاٌجِعٍ ▌❤≈ ]="}, {"=[ تــــيــ#(TTEEETT)#ــيـت خــذ رآإأأأأحتــك يآلغـــــلآء ]="}, {"=[ ❤▌ تْيٌتْ خًذّ رُاٌحٍتْكُ يٌاٌلِغَاٌلِيٌ ▌❤≈ ]="}, {"=[ ≈ ❤ بّاٌيٌ اٌشْوِفّكُمِ عٍلِىْ خًيٌرُ ❤≈ ]="}, {"=[ حـــرررررك#(GO GO GO !)#حرررررك لآهنـــت = سلآب + سحب موتــررء ]="}, {"=[ ﺣرَڳڳ ۑﺂ̣̥̐ﻟ̣̣ﻏﺂ̣̥̐ﻟ̣̣ۑ ﻟ̣̣ﺂ̣̥̐ﭠ̯خّرَﺑ ﻋﻟ̣̣ﮯ ﻏۑرَڳ ]="}, {"=[ تــــممء آإأأألدعـــــ#(WaaaR KiiinG)#ــــس من قبل عمـــكككء ]="}, {"=[ :.@.ض1.هہهہهہهہهہهہهہهہهہهہهہهہهہهہہهہ.ض1.@. ]="}, {"=[ هآإأهآإآهآإأ#(LØØØ×ØØØ×ØØØL)# ضًحٍكُتٍنًيُ ؤآإأنًآ مآإألًي نفًسء ]="}, {"=[ هآهآهآهآهآهآهآه (( ضحگتني وآنآ مآلي نفس اضحك))هآهآهآهآهآهآهآهآ ]="}, {"=[ ツツ█هہهہهہهہهہ أخُ بِطًنہيّ هہهہهہهہهہ█ツツ ]="}, {"=[ هـهـهـهـهـهـهـه#(LØØØ×ØØØ×ØØØL)#هـهـهـهـهـهـهـه ]="}, {"=[ يدؤؤؤؤؤؤ#(YØU)#ؤؤؤؤؤؤؤم عــزككء ونبـــظء قلبـــكككء ]="}, {"=[ يِسًلٌمَؤُؤًؤِؤَؤُ يُآإألًغُلٍأأأأ يٍآإأكَنُــــًق آإألًسٍيٌرَفٍررر ]="}, {"=[ آإألًــــــفً مًبٍرًرًرًرً#(PRRRØØØØØØØØØ)#رًرًرًؤؤؤؤؤؤؤؤ#(PRRRØØØØØØØØØ)#كككككء ]="}, {"=[ X_X ههَهَهَهَهَ looََََ=))َََََoolهَهَهَهَه ]="}, {"=[ آإأنًــتُ آإألآحًلُــــــــى يآإألًمُهٌجًؤؤؤؤؤؤؤؤؤؤؤؤلٍ ]="}, {"=[ سُبٍحًــــآإأنً آإألًلًهُ آإألًذٍي خًـلٍقُ آإألُسٍمًآإأؤؤؤآإأت وًآإألآرض ]="}, {"=[ مًآإأيُـــــلًفــٍظً مًـــنٍ قُؤؤؤل آإألآ لًدُيٍـــهِ رًقُيُـــبٌ عًتٍيُــــد ]="}, {"=[ تًؤًؤًؤًؤًمَآإأنًؤُؤُؤُؤُررر أآإلًسٍيُـــرٍفًــر يًآإأ أحٍلًــىً آإألًزآإأءًرٍيُـــنً ]="}, {"=[ كًفٍـؤؤؤؤؤؤؤؤؤؤؤؤ#(PRRRØØØØØØØØØ)#يآإأمًحُتِرًرًرًرًفـــــــءء ]="}, {"=[ صًبٍآإأآآآآآآآح آإألًخٍيًـــــــر يآإأحًبٍيًبً قًلٍبُـــــي ]="}, {"=[ مًســــُآإأء آإألًنًـــــــؤؤؤؤرً يـــآإأ قًـــمًـرُرُرُرُ ]="}, {"=[ آإألًنُؤؤؤؤؤؤؤؤؤؤؤؤؤؤرًرًرً كٌكٌلًـــهً نٍؤُؤُؤُؤُؤُؤُرُرُرُرُكًكًء يًآإأعًسٍـــل ]="}, {"=[ كًلآمًــــــكًكًء ذًهٌــبٌ لًدٍيُــنًآإأ ؤتًوًآإأجًدِكًكً نًؤًؤًرُ يُسُطُع عُلٍيٍنًآإأ ]="}, } GUIEditor = { tab = {}, staticimage = {}, label = {} } local screenW, screenH = guiGetScreenSize() System_Wnd = guiCreateStaticImage((screenW - 721) / 2, (screenH - 421) / 2, 721, 421, "Wnd0.png", false) guiSetAlpha(System_Wnd, 0.85) guiSetProperty(System_Wnd, "ImageColours", "tl:FF000000 tr:FF000000 bl:FF000000 br:FF000000") guiSetVisible(System_Wnd,false) System_Label = guiCreateLabel(0, 0, 722, 40, "=[ Copy System ]=", false, System_Wnd) guiSetFont(System_Label, FontWnd) guiLabelSetColor(System_Label, 207, 0, 68) guiLabelSetHorizontalAlign(System_Label, "center", false) guiLabelSetVerticalAlign(System_Label, "center") TabPanel_Mode = guiCreateTabPanel(4, 44, 713, 342, false, System_Wnd) GUIEditor.tab[1] = guiCreateTab("~* Help *~", TabPanel_Mode) GUIEditor.label[1] = guiCreateLabel(4, 6, 404, 25, "* Note : For You Can Do Bind In F8 you Must Follow Next Steps !", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[1], FontLabel) guiLabelSetColor(GUIEditor.label[1], 53, 207, 0) GUIEditor.label[2] = guiCreateLabel(4, 31, 404, 17, "=======================================================================", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 207, 0, 0) GUIEditor.label[3] = guiCreateLabel(4, 53, 371, 24, "1- Write In F8 : Bind <Here Put Number such 1> say", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 207, 199, 0) GUIEditor.label[4] = guiCreateLabel(4, 77, 371, 24, "2- Paste Your Text Will Be In That Number !", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 207, 199, 0) GUIEditor.label[5] = guiCreateLabel(4, 101, 371, 24, "3- Press On Number To Show Your Text In Chat Box !", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetColor(GUIEditor.label[5], 207, 199, 0) GUIEditor.label[6] = guiCreateLabel(4, 125, 404, 17, "=======================================================================", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[6], "default-bold-small") guiLabelSetColor(GUIEditor.label[6], 207, 0, 0) GUIEditor.label[7] = guiCreateLabel(4, 142, 404, 25, "* Note : Don't Put : < Or > In F8 Put Only Steps !", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[7], FontLabel) guiLabelSetColor(GUIEditor.label[7], 53, 207, 0) GUIEditor.label[8] = guiCreateLabel(693, 6, 15, 307, "\\\n//\n\\\n//\n\\\n//\n\\\n//\n\\\n//\n\\\n//\n\\\n//\n\\\n//\n\\\n//\n\\\n//\n\\\n//\n\\\n//", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[8], "default-bold-small") guiLabelSetColor(GUIEditor.label[8], 207, 19, 0) GUIEditor.label[9] = guiCreateLabel(5, 298, 688, 15, "============================================================================", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[9], "default-bold-small") guiLabelSetColor(GUIEditor.label[9], 207, 19, 0) GUIEditor.label[10] = guiCreateLabel(9, 201, 674, 63, "* Welcome To Server *", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[10], "sa-gothic") guiLabelSetColor(GUIEditor.label[10], 0, 209, 181) GUIEditor.tab[2] = guiCreateTab("~* Text *~", TabPanel_Mode) GUIEditor.label[11] = guiCreateLabel(5, 298, 688, 15, "============================================================================", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[11], "default-bold-small") guiLabelSetColor(GUIEditor.label[11], 207, 19, 0) GUIEditor.label[12] = guiCreateLabel(693, 6, 15, 307, "\\\n//\n\\\n//\n\\\n//\n\\\n//\n\\\n//\n\\\n//\n\\\n//\n\\\n//\n\\\n//\n\\\n//\n\\\n//\n\\\n//", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[12], "default-bold-small") guiLabelSetColor(GUIEditor.label[12], 207, 19, 0) System_grid = guiCreateGridList(5, 7, 322, 291, false, GUIEditor.tab[2]) guiGridListAddColumn(System_grid, "# Text ... ", 0.9) System_Box = guiCreateEdit(331, 10, 357, 26, "", false, GUIEditor.tab[2]) guiSetProperty(System_Box, "NormalTextColour", "FFD10000") guiSetFont(System_Box,"default-bold-small") --guiEditSetReadOnly(System_Box, true) GUIEditor.staticimage[1] = guiCreateStaticImage(456, 42, 108, 26, "Wnd0.png", false, GUIEditor.tab[2]) guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:FFD1CE00 tr:FFD1CE00 bl:FFD1CE00 br:FFD1CE00") Copy_Button = guiCreateLabel(456, 42, 108, 26, "Copy Text", false, GUIEditor.tab[2]) guiSetFont(Copy_Button, FontButton) guiLabelSetColor(Copy_Button, 0, 24, 209) guiLabelSetHorizontalAlign(Copy_Button, "center", false) guiLabelSetVerticalAlign(Copy_Button, "center") GUIEditor.label[13] = guiCreateLabel(394, 78, 231, 55, "Welcome", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[13], "sa-gothic") guiLabelSetColor(GUIEditor.label[13], 29, 209, 0) guiLabelSetHorizontalAlign(GUIEditor.label[13], "center", false) GUIEditor.label[14] = guiCreateLabel(394, 133, 231, 55, "To", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[14], "sa-gothic") guiLabelSetColor(GUIEditor.label[14], 209, 68, 0) guiLabelSetHorizontalAlign(GUIEditor.label[14], "center", false) GUIEditor.label[15] = guiCreateLabel(394, 188, 231, 55, "Server", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[15], "sa-gothic") guiLabelSetColor(GUIEditor.label[15], 0, 209, 206) guiLabelSetHorizontalAlign(GUIEditor.label[15], "center", false) GUIEditor.label[16] = guiCreateLabel(625, 68, 15, 189, "||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[16], "default-bold-small") guiLabelSetColor(GUIEditor.label[16], 209, 201, 0) GUIEditor.label[17] = guiCreateLabel(379, 68, 15, 189, "||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[17], "default-bold-small") guiLabelSetColor(GUIEditor.label[17], 209, 201, 0) GUIEditor.label[18] = guiCreateLabel(372, 257, 268, 36, "******", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[18], "sa-gothic") guiLabelSetColor(GUIEditor.label[18], 209, 0, 108) guiLabelSetHorizontalAlign(GUIEditor.label[18], "center", false) GUIEditor.label[22] = guiCreateLabel(4, 390, 447, 27, "# This Panel Created For Q.6", false, System_Wnd) guiSetFont(GUIEditor.label[22], FontLabel) guiLabelSetColor(GUIEditor.label[22], 209, 54, 0) guiLabelSetHorizontalAlign(GUIEditor.label[22], "left", false) guiLabelSetVerticalAlign(GUIEditor.label[22], "center") GUIEditor.staticimage[2] = guiCreateStaticImage(602, 390, 115, 26, "Wnd0.png", false, System_Wnd) guiSetProperty(GUIEditor.staticimage[2], "ImageColours", "tl:FFD10000 tr:FFD10000 bl:FFD10000 br:FFD10000") System_Close = guiCreateLabel(602, 390, 115, 26, "Close Window", false, System_Wnd) guiSetFont(System_Close, FontButton) guiLabelSetColor(System_Close, 0, 209, 206) guiLabelSetHorizontalAlign(System_Close, "center", false) guiLabelSetVerticalAlign(System_Close, "center") setElementData(Copy_Button, "tooltip-text", "نســـخ ألنــص", false) setElementData(System_Close, "tooltip-text", "إغــلاق ألنــافذة", false) setElementData(GUIEditor.label[3], "tooltip-text", "أكتب في أف 8 Bind <هنا رقم الاختصار> say", false) setElementData(GUIEditor.label[4], "tooltip-text", "ضع ألنص ألذي سيكون بذلك ألرقم", false) setElementData(GUIEditor.label[5], "tooltip-text", "إضغط على ألزر لرؤيـة ألاختصار في صندوق ألمحادثة", false) bindKey('n', 'down', function() guiSetVisible(System_Wnd, not guiGetVisible(System_Wnd)) showCursor(guiGetVisible(System_Wnd)) refreshShort() end) addEventHandler("onClientGUIClick",root, function () if source == System_Close then if ( guiGetVisible(System_Wnd) == false ) then end guiSetVisible (System_Wnd, false ) showCursor(false) guiSetInputEnabled(false) end end ) function refreshShort() guiGridListClear(Copy_List) for i, GR in ipairs(Copy_List) do local row = guiGridListAddRow(System_grid) guiGridListSetItemText(System_grid, row, 1, GR[1], false, false) guiGridListSetItemColor(System_grid, row, 1, math.random(1, 255), math.random(2, 255), math.random(3, 255)) end end addEventHandler('onClientGUIChanged', resourceRoot, function() if source == System_Box then local textVar = guiGetText(System_Box) if textVar == '' then refreshShort() else guiGridListClear(Copy_List) for k, v in ipairs(Copy_List) do if string.find(v[1]:upper(), textVar:upper()) then local row = guiGridListAddRow(System_grid) guiGridListSetItemText(System_grid, row, 1, v[1], false, false); guiGridListSetItemColor(System_grid, row, 1, math.random(1, 255), math.random(2, 255), math.random(3, 255)) end end end end end) function Select() local TexT_Show = guiGridListGetItemText ( System_grid, guiGridListGetSelectedItem ( System_grid ), 1 ) guiSetText (System_Box, TexT_Show ) end addEventHandler ("onClientGUIClick", System_grid, Select, false) addEventHandler ("onClientGUIClick", root, function() if ( source == Copy_Button ) then local COPY = guiGetText ( System_Box ) setClipboard( COPY ) end end ) local sw, sh = guiGetScreenSize() local tooltips = {} local color = { 0, 0, 0 } local background = { 255, 255, 255 } local font = { face = "default-bold", size = 1, maxwidth = 300 } function tooltipShow() --outputChatBox(getElementType(source)) if getElementData(source, "tooltip-text") and getElementType(source):find("gui-", 1, true) then local x,y = guiGetPosition(source, false) local parent = getElementParent(source) while getElementType(parent) ~= "guiroot" do if getElementData(source, "tooltip-text") == getElementData(parent, "tooltip-text") then return false end local px, py = guiGetPosition(parent, false) x, y = x + px, y + py if getElementType(parent) == "gui-tab" then y = y + 24 end parent = getElementParent(parent) end local w,h = guiGetSize(source, false) x = x + w/2 tooltips[source] = {} local fonts = getElementData(source, "tooltip-font") if fonts then tooltips[source].font = gettok(fonts, 1, " ") or font.face tooltips[source].fontsize = tonumber(gettok(fonts, 2, " ")) or font.size else tooltips[source].font = font.face tooltips[source].fontsize = font.size end tooltips[source].text = getElementData(source, "tooltip-text") tooltips[source].w = math.ceil(dxGetTextWidth(tooltips[source].text, tooltips[source].fontsize, tooltips[source].font)) tooltips[source].h = math.ceil(dxGetFontHeight(tooltips[source].fontsize, tooltips[source].font)) if tooltips[source].w > font.maxwidth then tooltips[source].h = tooltips[source].h*math.ceil(tooltips[source].w/font.maxwidth) tooltips[source].w = font.maxwidth end tooltips[source].arrow = x tooltips[source].x = math.floor(math.min(math.max(x - tooltips[source].w/2, 16), sw - tooltips[source].w-16)) tooltips[source].y = math.floor(y - tooltips[source].h - 12) if tooltips[source].y < 16 then tooltips[source].y = math.floor(y + h + 12) tooltips[source].bottom = true end tooltips[source].ticks = 1 tooltips[source].step = 1 -- color tooltips[source].br, tooltips[source].bg, tooltips[source].bb = unpack(background) local tcolor = getElementData(source, "tooltip-color") local bcolor = getElementData(source, "tooltip-background") if tcolor then tooltips[source].r, tooltips[source].g, tooltips[source].b = getColorFromString(tcolor) else tooltips[source].r, tooltips[source].g, tooltips[source].b = unpack(color) end if bcolor then tooltips[source].br, tooltips[source].bg, tooltips[source].bb = getColorFromString(bcolor) else tooltips[source].br, tooltips[source].bg, tooltips[source].bb = unpack(background) end end end addEventHandler("onClientMouseEnter", root, tooltipShow) function tooltipHide(element) local e = isElement(element) and element or source if tooltips[e] then tooltips[e].ticks = 10 tooltips[e].step = -1 end end addEventHandler("onClientMouseLeave", root, tooltipHide) addEventHandler("onClientGUIClick", root, tooltipHide) function tooltipRender() for element, tooltip in pairs(tooltips) do if tooltip.ticks < 0 or not isElement(element) then tooltips[element] = nil else local alpha = math.min(tooltip.ticks*25, 255) drawTooltip(tooltip, alpha) if tooltip.ticks < 255 then tooltip.ticks = tooltip.ticks + tooltip.step end if not guiGetVisible(element) then tooltips[element] = nil end end end end addEventHandler("onClientRender", root, tooltipRender) function drawTooltip(tooltip, alpha) local offset = math.max((254-alpha)/25, 0) -- corners dxDrawImageSection(tooltip.x-16, tooltip.y-16-offset, 16, 16, 0, 0, 16, 16, "sprite.png", 0, 0, 0, tocolor(tooltip.br,tooltip.bg,tooltip.bb,alpha), true) dxDrawImageSection(tooltip.x+tooltip.w, tooltip.y-16-offset, 16, 16, 32, 0, 16, 16, "sprite.png", 0, 0, 0, tocolor(tooltip.br,tooltip.bg,tooltip.bb,alpha), true) dxDrawImageSection(tooltip.x-16, tooltip.y+tooltip.h-offset, 16, 16, 0, 32, 16, 16, "sprite.png", 0, 0, 0, tocolor(tooltip.br,tooltip.bg,tooltip.bb,alpha), true) dxDrawImageSection(tooltip.x+tooltip.w, tooltip.y+tooltip.h-offset, 16, 16, 32, 32, 16, 16, "sprite.png", 0, 0, 0, tocolor(tooltip.br,tooltip.bg,tooltip.bb,alpha), true) -- v-sides dxDrawImageSection(tooltip.x, tooltip.y-16-offset, tooltip.w, 16, 16, 0, 16, 16, "sprite.png", 0, 0, 0, tocolor(tooltip.br,tooltip.bg,tooltip.bb,alpha), true) dxDrawImageSection(tooltip.x, tooltip.y+tooltip.h-offset, tooltip.w, 16, 16, 32, 16, 16, "sprite.png", 0, 0, 0, tocolor(tooltip.br,tooltip.bg,tooltip.bb,alpha), true) -- h-sides dxDrawImageSection(tooltip.x-16, tooltip.y-offset, 16, tooltip.h, 0, 16, 16, 16, "sprite.png", 0, 0, 0, tocolor(tooltip.br,tooltip.bg,tooltip.bb,alpha), true) dxDrawImageSection(tooltip.x+tooltip.w, tooltip.y-offset, 16, tooltip.h, 32, 16, 16, 16, "sprite.png", 0, 0, 0, tocolor(tooltip.br,tooltip.bg,tooltip.bb,alpha), true) -- center dxDrawImageSection(tooltip.x, tooltip.y-offset, tooltip.w, tooltip.h, 16, 16, 16, 16, "sprite.png", 0, 0, 0, tocolor(tooltip.br,tooltip.bg,tooltip.bb,alpha), true) -- arrow if tooltip.bottom then dxDrawImageSection(tooltip.arrow-16, tooltip.y-24-offset, 32, 24, 0, 48, 32, 24, "sprite.png", 180, 0, 0, tocolor(tooltip.br,tooltip.bg,tooltip.bb,alpha), true) else dxDrawImageSection(tooltip.arrow-16, tooltip.y+tooltip.h-offset, 32, 24, 0, 48, 32, 24, "sprite.png", 0, 0, 0, tocolor(tooltip.br,tooltip.bg,tooltip.bb,alpha), true) end -- text --dxDrawText(tooltip.text, tooltip.x, tooltip.y+1-offset, tooltip.x+tooltip.w, tooltip.y+tooltip.h+1, tocolor(255,255,255,alpha), font.size, font.face, "left", "top", false, true, true) dxDrawText(tooltip.text, tooltip.x, tooltip.y-offset, tooltip.x+tooltip.w, tooltip.y+tooltip.h, tocolor(tooltip.r,tooltip.g,tooltip.b,alpha), tooltip.fontsize, tooltip.font, "left", "top", false, true, true) end Link to comment
Rockyz Posted June 12, 2018 Share Posted June 12, 2018 سطر 176 و 192 خليهم كذا guiGridListClear(System_grid) Link to comment
Mr.Mostafa Posted June 13, 2018 Author Share Posted June 13, 2018 23 hours ago, #,+( _xiRoc[K]; > said: سطر 176 و 192 خليهم كذا guiGridListClear(System_grid) 'طيب انا مسوي قريد ليست يجي فيه اشياء اضيفها انا من جوا السيرفر ممكن تسويلي كود بحث له كود القريد ليست الي يجي فيه الكلام addEvent("HoursSystem:1", true) addEventHandler("HoursSystem:1", root, function(LogHo) guiGridListClear(Wnd2.gridlist[1]) for Key, Value in ipairs(LogHo) do local Row = guiGridListInsertRowAfter(Wnd2.gridlist[1], -1) guiGridListSetItemText(Wnd2.gridlist[1], Row, 1,Value.Time.." "..Value.Action, false, false) guiGridListSetItemColor(Wnd2.gridlist[1], Row, 1, Value.R, Value.G, Value.B) end end ) Link to comment
Rockyz Posted June 16, 2018 Share Posted June 16, 2018 On 6/13/2018 at 19:27, Mr.Mostafa said: 'طيب انا مسوي قريد ليست يجي فيه اشياء اضيفها انا من جوا السيرفر ممكن تسويلي كود بحث له كود القريد ليست الي يجي فيه الكلام addEvent("HoursSystem:1", true)addEventHandler("HoursSystem:1", root, function(LogHo) guiGridListClear(Wnd2.gridlist[1]) for Key, Value in ipairs(LogHo) do local Row = guiGridListInsertRowAfter(Wnd2.gridlist[1], -1) guiGridListSetItemText(Wnd2.gridlist[1], Row, 1,Value.Time.." "..Value.Action, false, false) guiGridListSetItemColor(Wnd2.gridlist[1], Row, 1, Value.R, Value.G, Value.B) endend) استخدم الجداول افضل لك بدل ماتحط القيمة مباشرة في القريد ليست وأستخدم الطريقة الي فوق Link to comment
Mr.Mostafa Posted June 16, 2018 Author Share Posted June 16, 2018 2 hours ago, #,+( _xiRoc[K]; > said: استخدم الجداول افضل لك بدل ماتحط القيمة مباشرة في القريد ليست وأستخدم الطريقة الي فوق يب بس ما ينفع لان دا عبارة عن لوق فا ابيه يبحث في كلام اللوق Link to comment
Rockyz Posted June 16, 2018 Share Posted June 16, 2018 2 hours ago, Mr.Mostafa said: يب بس ما ينفع لان دا عبارة عن لوق فا ابيه يبحث في كلام اللوق خل كلام اللوق في جدول Link to comment
Mr.Mostafa Posted June 16, 2018 Author Share Posted June 16, 2018 Just now, #,+( _xiRoc[K]; > said: خل كلام اللوق في جدول ما بعرف يعني المهم ما اقدر ابحث واللوق بالطريقة دي ولا وش المشكلة ؟ Link to comment
Rockyz Posted June 16, 2018 Share Posted June 16, 2018 local gridlist = -- القريد ليست local edit = -- الأيديت local values = {}; addEvent('HoursSystem:1', true) addEventHandler('HoursSystem:1', root, function(LogHo) values = LogHo; refreshGrid() end) function refreshGrid() guiGridListClear(gridlist) for _, v in ipairs(values) do local row = guiGridListInsertRowAfter(gridlist, -1) guiGridListSetItemText(gridlist, row, 1, v.Time..' '..v.Action, false, false) guiGridListSetItemColor(gridlist, row, 1, v.R, v.G, v.B) end end addEventHandler('onClientGUIChanged', resourceRoot, function() if source == edit then local textVar = guiGetText(source) if textVar == '' then refreshGrid() else guiGridListClear(gridlist) for _, v in ipairs(values) do local text = v.Time..' '..v.Action if string.find(text:upper(), textVar:upper()) then local row = guiGridListAddRow(gridlist) guiGridListSetItemText(gridlist, row, 1, text, false, false); guiGridListSetItemColor(gridlist, row, 1, v.R, v.G, v.B) end end end end 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