Adham Posted April 21, 2016 Share Posted April 21, 2016 السسلأم عليكم ابي كود لما حد يضعط علي شي بالقريد لست يعني انا ضايف قدول وعامل فيه 1- مخالفة عاوز اليضعط عليها ويضعط علي button يخش علي لوحة تاننيه Link to comment
Simple. Posted April 21, 2016 Share Posted April 21, 2016 addEventHandler -- onClientGUIClick guiSetVisible Link to comment
MR.GRAND Posted April 21, 2016 Share Posted April 21, 2016 addEventHandler -- onClientGUIClick guiSetVisible ^ + guiGridListGetItemText guiGridListGetSelectedItem guiGridListGetItemData -- set item data (guiSetVisible(window, true)) Link to comment
Adham Posted April 21, 2016 Author Share Posted April 21, 2016 كذا خطا؟ addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then guiSetVisible(wnd,false) guiSetVisible(wnd2,true) local Grid = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local select = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local data = guiGridListGetItemData ( GUIEditor.gridlist[1], Row, Clomu ) end end end) Link to comment
MR.GRAND Posted April 21, 2016 Share Posted April 21, 2016 سوي جدول Table = { {"item1", (guiSetVisible(Window1, true))}, {"item2", (guiSetVisible(Window2, true))}, {"item3", (guiSetVisible(Window3, true))} } وسوي لوب للقريد لست وحط الأيتيمات في القريد لست وحط الداتا لكل ايتيم القيمة الثانية اللي بالجدول ومن ثم جيب الداتا بالفنكشن وحط الكولمن اللي رح تسوي له داتا + جيب الأيتيم اللي محددها Link to comment
Adham Posted April 21, 2016 Author Share Posted April 21, 2016 ماشي كدا فيه خطا؟ [lua]addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then guiSetVisible(wnd,false) guiSetVisible(wnd2,true) local Grid = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local select = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local data = guiGridListGetItemData ( GUIEditor.gridlist[1], Row, Clomu ) end end end) [/lua] Link to comment
MR.GRAND Posted April 21, 2016 Share Posted April 21, 2016 ماشي كدا فيه خطا؟ [lua]addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then guiSetVisible(wnd,false) guiSetVisible(wnd2,true) local Grid = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local select = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local data = guiGridListGetItemData ( GUIEditor.gridlist[1], Row, Clomu ) end end end) [/lua] [lua]addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then guiSetVisible(wnd,false) guiSetVisible(wnd2,true) local select = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local data = guiGridListGetItemData ( GUIEditor.gridlist[1], select, 1 ) end end ) Link to comment
Adham Posted April 21, 2016 Author Share Posted April 21, 2016 طيب .. لو عايز اليكتب في الايديت حاجة تظهر في القريد لست لوحدها يعني : واحد كتب في الايديت 1- مخالفه علي لعبة بعدين ضعط button اسمه OK تيجي مخالفه علي لعبة في القريد لست وش استخدم؟ Link to comment
MR.GRAND Posted April 21, 2016 Share Posted April 21, 2016 طيب ..لو عايز اليكتب في الايديت حاجة تظهر في القريد لست لوحدها يعني : واحد كتب في الايديت 1- مخالفه علي لعبة بعدين ضعط button اسمه OK تيجي مخالفه علي لعبة في القريد لست وش استخدم؟ guiGridListAddRow guiGridListSetItemText Link to comment
Adham Posted April 21, 2016 Author Share Posted April 21, 2016 بس اما عاوز الكلام الكتبتو في الايديت edit يظهر في القريد لست بعد ما اضعط ok Link to comment
Adham Posted April 21, 2016 Author Share Posted April 21, 2016 كدا فيه مشكله ؟ addEventHandler ( "onClientGUIClick", resourceRoot, function () if ( source == button ) then local row = guiGridListAddRow ( grid ) local Text = guiGridListSetItemText ( grid, row, clom,guiGetText(edit), false, false) ) end end ) Link to comment
MR.GRAND Posted April 22, 2016 Share Posted April 22, 2016 addEventHandler ( "onClientGUIClick", resourceRoot, function () if ( source == button ) then local row = guiGridListAddRow ( grid ) local Text = guiGridListSetItemText ( grid, guiGridListGetSelectedItem( grid ), 1,guiGetText(edit), false, false) ) end end ) Link to comment
#|_oskar_|# Posted April 22, 2016 Share Posted April 22, 2016 كودك صح بس كان زايد قوس addEventHandler ( "onClientGUIClick", resourceRoot,function () if ( source == button ) then local row = guiGridListAddRow (grid) if guiGetText(edit) ~= '' then guiGridListSetItemText (grid, row,clom,guiGetText(edit), false, false) end end end) Link to comment
Adham Posted April 22, 2016 Author Share Posted April 22, 2016 طيب ممكن تعملي عشان الايديت وزر button فيه اللوحة 2 والقريد لست في اللوحة الاوله ممكن تسوهالي Link to comment
#|_oskar_|# Posted April 22, 2016 Share Posted April 22, 2016 طيبممكن تعملي عشان الايديت وزر button فيه اللوحة 2 والقريد لست في اللوحة الاوله ممكن تسوهالي اطرح اكوادك Link to comment
Adham Posted April 22, 2016 Author Share Posted April 22, 2016 ما ظبتت GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(211, 190, 361, 301, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) grid = guiCreateGridList(10, 21, 245, 163, false, GUIEditor.window[1]) local clom = guiGridListAddColumn(grid, "مخالفاتي", 0.9) GUIEditor.button[1] = guiCreateButton(26, 213, 219, 35, "OK", false, GUIEditor.window[1]) edit = guiCreateEdit(28, 188, 217, 25, "", false, GUIEditor.window[1]) end ) function Strong ( ) guiSetVisible ( GUIEditor.window[1],true ) showCursor ( true ) -- اظهار الماوس end addCommandHandler ( "Teams",Strong ) addEventHandler ( "onClientGUIClick", resourceRoot,function () if ( source == GUIEditor.button[1] ) then local row = guiGridListAddRow (grid) if guiGetText(edit) ~= '' then guiGridListSetItemText (grid, row,clom,guiGetText(edit), false, false) end end end) Link to comment
#|_oskar_|# Posted April 22, 2016 Share Posted April 22, 2016 GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(211, 190, 361, 301, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) grid = guiCreateGridList(10, 21, 245, 163, false, GUIEditor.window[1]) local clom = guiGridListAddColumn(grid, "مخالفاتي", 0.9) GUIEditor.button[1] = guiCreateButton(26, 213, 219, 35, "OK", false, GUIEditor.window[1]) edit = guiCreateEdit(28, 188, 217, 25, "", false, GUIEditor.window[1]) function Strong ( ) guiSetVisible ( GUIEditor.window[1],true ) showCursor ( true ) -- اظهار الماوس end addCommandHandler ( "Teams",Strong ) addEventHandler ( "onClientGUIClick", resourceRoot,function () if ( source == GUIEditor.button[1] ) then local row = guiGridListAddRow (grid) if guiGetText(edit) ~= '' then guiGridListSetItemText (grid, row,clom,guiGetText(edit), false, false) 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