Max+ Posted February 10, 2013 Share Posted February 10, 2013 GUIEditor_Image = {} GUIEditor_Image[1] = guiCreateStaticImage(0,0,105,599,"bar.png",false) GUIEditor_Image[2] = guiCreateStaticImage(21,38,77,117,"lea.png",false,GUIEditor_Image[1]) GUIEditor_Image[3] = guiCreateStaticImage(114,6,255,387,"leaw.png",false,GUIEditor_Image[2]) GUIEditor_Image[4] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[2]) GUIEditor_Image[5] = guiCreateStaticImage(20,229,69,131,"mem.png",false,GUIEditor_Image[1]) GUIEditor_Image[6] = guiCreateStaticImage(114,6,255,387,"memw.png",false,GUIEditor_Image[3]) GUIEditor_Image[7] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[3]) GUIEditor_Image[8] = guiCreateStaticImage(21,424,76,156,"cw.png",false,GUIEditor_Image[1]) GUIEditor_Image[9] = guiCreateStaticImage(114,6,255,387,"cww.png",false,GUIEditor_Image[4]) GUIEditor_Image[10] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[4]) function open() guiSetVisible(GUIEditor_Image[1],not guiGetVisible(GUIEditor_Image[1])) showCursor(guiGetVisible(GUIEditor_Image[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Image[1])) end bindKey("F1","down",open) addEventHandler('onClientGUIClick', resourceRoot, function( button, state, absoluteX, absoluteY ) if (source == GUIEditor_Image[2] ) then guiSetVisible(GUIEditor_Image[4] , true ) showCursor(true) elseif(source == GUIEditor_Image[5]) then guiSetVisible(GUIEditor_Image[7],true) elseif(source == GUIEditor_Image[8]) then guiSetVisible(GUIEditor_Image[10],true) end end ) احلف ?? Link to comment
iPrestege Posted February 10, 2013 Share Posted February 10, 2013 GUIEditor_Image = {} GUIEditor_Image[1] = guiCreateStaticImage(0,0,105,599,"bar.png",false) GUIEditor_Image[2] = guiCreateStaticImage(21,38,77,117,"lea.png",false,GUIEditor_Image[1]) GUIEditor_Image[3] = guiCreateStaticImage(114,6,255,387,"leaw.png",false,GUIEditor_Image[2]) GUIEditor_Image[4] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[2]) GUIEditor_Image[5] = guiCreateStaticImage(20,229,69,131,"mem.png",false,GUIEditor_Image[1]) GUIEditor_Image[6] = guiCreateStaticImage(114,6,255,387,"memw.png",false,GUIEditor_Image[3]) GUIEditor_Image[7] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[3]) GUIEditor_Image[8] = guiCreateStaticImage(21,424,76,156,"cw.png",false,GUIEditor_Image[1]) GUIEditor_Image[9] = guiCreateStaticImage(114,6,255,387,"cww.png",false,GUIEditor_Image[4]) GUIEditor_Image[10] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[4]) function open() guiSetVisible(GUIEditor_Image[1],not guiGetVisible(GUIEditor_Image[1])) showCursor(guiGetVisible(GUIEditor_Image[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Image[1])) end bindKey("F1","down",open) addEventHandler('onClientGUIClick', resourceRoot, function( button, state, absoluteX, absoluteY ) if (source == GUIEditor_Image[2] ) then guiSetVisible(GUIEditor_Image[4] , true ) showCursor(true) elseif(source == GUIEditor_Image[5]) then guiSetVisible(GUIEditor_Image[7],true) elseif(source == GUIEditor_Image[8]) then guiSetVisible(GUIEditor_Image[10],true) end end ) احلف ?? انت ماسويت شيء الحين غيرت الفنكشن الاسم شلتة , الغيت الكورسر في كل زر يعني ماتفرق المشكلة من عند الاخ نفسة [ = !! Link to comment
SmoKing Posted February 10, 2013 Author Share Posted February 10, 2013 برستيج طيب جربها عندك وشف مابتشتغل Link to comment
iPrestege Posted February 10, 2013 Share Posted February 10, 2013 الكود حق النوافذ شغال -_-" من الاصل اقصد النوافذ ظاهره اصلا يعني المفروض تخفيها ! عشان تظهر ! فـ يكون كذا : GUIEditor_Image = {} GUIEditor_Image[1] = guiCreateStaticImage(0,0,105,599,"bar.png",false) GUIEditor_Image[2] = guiCreateStaticImage(21,38,77,117,"lea.png",false,GUIEditor_Image[1]) GUIEditor_Image[3] = guiCreateStaticImage(114,6,255,387,"leaw.png",false,GUIEditor_Image[2]) GUIEditor_Image[4] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[2]) GUIEditor_Image[5] = guiCreateStaticImage(20,229,69,131,"mem.png",false,GUIEditor_Image[1]) GUIEditor_Image[6] = guiCreateStaticImage(114,6,255,387,"memw.png",false,GUIEditor_Image[3]) GUIEditor_Image[7] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[3]) GUIEditor_Image[8] = guiCreateStaticImage(21,424,76,156,"cw.png",false,GUIEditor_Image[1]) GUIEditor_Image[9] = guiCreateStaticImage(114,6,255,387,"cww.png",false,GUIEditor_Image[4]) GUIEditor_Image[10] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[4]) guiSetVisible(GUIEditor_Image[10],false) guiSetVisible(GUIEditor_Image[7],false) guiSetVisible(GUIEditor_Image[4],false) function open() guiSetVisible(GUIEditor_Image[1],not guiGetVisible(GUIEditor_Image[1])) showCursor(guiGetVisible(GUIEditor_Image[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Image[1])) end bindKey("F1","down",open) addEventHandler ("onClientGUIClick", getRootElement(), function (button, state, absoluteX, absoluteY) if (source == GUIEditor_Image[2]) then showCursor(true) guiSetVisible(GUIEditor_Image[4],true) elseif(source == GUIEditor_Image[5]) then showCursor(true) guiSetVisible(GUIEditor_Image[7],true) elseif(source == GUIEditor_Image[8]) then showCursor(true) guiSetVisible(GUIEditor_Image[10],true) end end ) Link to comment
iMr.Dawix~# Posted February 10, 2013 Share Posted February 10, 2013 الرجال قال ارفعه وارسله خآص لو تبي تظغط على صورة وتفتح نافذه استعمل -- client side function open(button, state, absoluteX, absoluteY) if (source == btn) then -- اسم الزر او الصورة اللي تبيها تفتح اللوحة showCursor(true) -- اظهار الماوس guiSetVisible(اسم النافذه اللي تبيها تظهر,true) -- جعل النافذه تظهر end end addEventHandler ("onClientGUIClick", getRootElement(), open) واذا تبي تزود حط else اذا يبي يزود يستخدم elseif Link to comment
SmoKing Posted February 10, 2013 Author Share Posted February 10, 2013 سويت زي كذا ولا ضبط GUIEditor_Image = {} GUIEditor_Image[1] = guiCreateStaticImage(0,0,105,599,"bar.png",false) GUIEditor_Image[2] = guiCreateStaticImage(21,38,77,117,"lea.png",false,GUIEditor_Image[1]) GUIEditor_Image[3] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[2]) GUIEditor_Image[4] = guiCreateStaticImage(20,229,69,131,"mem.png",false,GUIEditor_Image[1]) GUIEditor_Image[5] = guiCreateStaticImage(204,18,451,558,"win1.png",false,GUIEditor_Image[4]) GUIEditor_Image[6] = guiCreateStaticImage(21,424,76,156,"cw.png",false,GUIEditor_Image[1]) GUIEditor_Image[7] = guiCreateStaticImage(204,18,451,558,"win2.png",false,GUIEditor_Image[6]) guiSetVisible(GUIEditor_Image[3],false) guiSetVisible(GUIEditor_Image[5],false) guiSetVisible(GUIEditor_Image[7],false) function open() guiSetVisible(GUIEditor_Image[1],not guiGetVisible(GUIEditor_Image[1])) showCursor(guiGetVisible(GUIEditor_Image[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Image[1])) end bindKey("F1","down",open) addEventHandler ("onClientGUIClick", getRootElement(), function (button, state, absoluteX, absoluteY) if (source == GUIEditor_Image[2]) then showCursor(false) guiSetVisible(GUIEditor_Image[3],true) elseif(source == GUIEditor_Image[4]) then showCursor(false) guiSetVisible(GUIEditor_Image[5],true) elseif(source == GUIEditor_Image[6]) then showCursor(false) guiSetVisible(GUIEditor_Image[7],true) end end ) Link to comment
iPrestege Posted February 10, 2013 Share Posted February 10, 2013 سويت زي كذا ولا ضبط GUIEditor_Image = {} GUIEditor_Image[1] = guiCreateStaticImage(0,0,105,599,"bar.png",false) GUIEditor_Image[2] = guiCreateStaticImage(21,38,77,117,"lea.png",false,GUIEditor_Image[1]) GUIEditor_Image[3] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[2]) GUIEditor_Image[4] = guiCreateStaticImage(20,229,69,131,"mem.png",false,GUIEditor_Image[1]) GUIEditor_Image[5] = guiCreateStaticImage(204,18,451,558,"win1.png",false,GUIEditor_Image[4]) GUIEditor_Image[6] = guiCreateStaticImage(21,424,76,156,"cw.png",false,GUIEditor_Image[1]) GUIEditor_Image[7] = guiCreateStaticImage(204,18,451,558,"win2.png",false,GUIEditor_Image[6]) guiSetVisible(GUIEditor_Image[3],false) guiSetVisible(GUIEditor_Image[5],false) guiSetVisible(GUIEditor_Image[7],false) function open() guiSetVisible(GUIEditor_Image[1],not guiGetVisible(GUIEditor_Image[1])) showCursor(guiGetVisible(GUIEditor_Image[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Image[1])) end bindKey("F1","down",open) addEventHandler ("onClientGUIClick", getRootElement(), function (button, state, absoluteX, absoluteY) if (source == GUIEditor_Image[2]) then showCursor(false) guiSetVisible(GUIEditor_Image[3],true) elseif(source == GUIEditor_Image[4]) then showCursor(false) guiSetVisible(GUIEditor_Image[5],true) elseif(source == GUIEditor_Image[6]) then showCursor(false) guiSetVisible(GUIEditor_Image[7],true) end end ) جربتة بـ لوحة عادية واشتغل ( = !!؟ المشكلة من عندكك ! واذا احد شايف ان الكود فية خطأ يـتفضل يطرحة ويعدلة [= Link to comment
SmoKing Posted February 10, 2013 Author Share Posted February 10, 2013 غيرت الصوره ولا ضبط Link to comment
x6RBx Posted February 12, 2013 Share Posted February 12, 2013 غيرت الصوره ولا ضبط سوية لك مثال شفه وطبق عليه ورد لي خبر wndone = guiCreateWindow(450, 157, 312, 243, "For Help", false) guiWindowSetSizable(wndone, false) showCursor(true) btn = guiCreateButton(25, 88, 56, 29, "btn help", false, wndone) guiSetProperty(btn, "NormalTextColour", "FFAAAAAA") btntow = guiCreateButton(145, 88, 56, 29, "btn help tow", false, wndone) guiSetProperty(btntow, "NormalTextColour", "FFAAAAAA") wndtow = guiCreateWindow(447, 407, 316, 205, "wnd tow", false) guiWindowSetSizable(wndtow, false) guiSetVisible(wndtow,false) wndtre = guiCreateWindow(0, 0, 316, 205, "wnd tre", false) guiWindowSetSizable(wndtre, false) guiSetVisible(wndtre,false) function open(button, state, absoluteX, absoluteY) if (source == btn) then showCursor(true) guiSetVisible(wndtow,true) guiSetVisible(wndone,false) elseif (source == btntow) then showCursor(true) guiSetVisible(wndtow,false) guiSetVisible(wndone,false) guiSetVisible(wndtre,true) end end addEventHandler ("onClientGUIClick", getRootElement(), open) Link to comment
SmoKing Posted February 12, 2013 Author Share Posted February 12, 2013 شباب اول ماشغل المود يطلع الوندو انا ابيه اذا ضغط الزر يطلع له مو اول مايخش Link to comment
iPrestege Posted February 12, 2013 Share Posted February 12, 2013 وين اخر كود اطرحة عشان نعدلة ذذ . Link to comment
SmoKing Posted February 12, 2013 Author Share Posted February 12, 2013 image1 = guiCreateStaticImage(0,0,105,599,"bar.png", false) image2 = guiCreateStaticImage(21,38,77,117,"lea.png", false, image1) image3 = guiCreateStaticImage(20,229,69,131,"mem.png", false, image1) image4 = guiCreateStaticImage(21,424,76,156,"cw.png", false, image1) image5 = guiCreateStaticImage(218,23,412,550,"win.png", false) guiSetVisible(image5,false) image6 = guiCreateStaticImage(218,23,412,550,"win1.png", false) guiSetVisible(image6,false) image7 = guiCreateStaticImage(218,23,412,550,"win2.png", false) guiSetVisible(image7,false) image8 = guiCreateStaticImage(363,23,119,28,"leaw.png", false) guiSetVisible(image8,false) image9 = guiCreateStaticImage(363,23,119,28,"memw.png", false) guiSetVisible(image9,false) image10 = guiCreateStaticImage(363,23,119,28,"cww.png", false) guiSetVisible(image10,false) function open() guiSetVisible(image1,not guiGetVisible(image1)) showCursor(guiGetVisible(image1)) guiSetInputEnabled(guiGetVisible(image1)) guiSetVisible(image5,false) guiSetVisible(image6,false) guiSetVisible(image7,false) guiSetVisible(image8,false) guiSetVisible(image9,false) guiSetVisible(image10,false) end bindKey("F1","down",open) function open(button, state, absoluteX, absoluteY) if (source == image2) then showCursor(true) guiSetVisible(image5,true) guiSetVisible(image6,false) guiSetVisible(image7,false) guiSetVisible(image8,true) guiSetVisible(image9,false) guiSetVisible(image10,false) elseif (source == image3) then showCursor(true) guiSetVisible(image5,false) guiSetVisible(image6,true) guiSetVisible(image7,false) guiSetVisible(image8,false) guiSetVisible(image9,true) guiSetVisible(image10,false) elseif (source == image4) then showCursor(true) guiSetVisible(image5,false) guiSetVisible(image6,false) guiSetVisible(image7,true) guiSetVisible(image8,false) guiSetVisible(image9,false) guiSetVisible(image10,true) end end addEventHandler ("onClientGUIClick", getRootElement(), open) Link to comment
iPrestege Posted February 12, 2013 Share Posted February 12, 2013 image1 = guiCreateStaticImage(0,0,105,599,"bar.png", false) guiSetVisible(image1,false) image2 = guiCreateStaticImage(21,38,77,117,"lea.png", false, image1) image3 = guiCreateStaticImage(20,229,69,131,"mem.png", false, image1) image4 = guiCreateStaticImage(21,424,76,156,"cw.png", false, image1) image5 = guiCreateStaticImage(218,23,412,550,"win.png", false) guiSetVisible(image5,false) image6 = guiCreateStaticImage(218,23,412,550,"win1.png", false) guiSetVisible(image6,false) image7 = guiCreateStaticImage(218,23,412,550,"win2.png", false) guiSetVisible(image7,false) image8 = guiCreateStaticImage(363,23,119,28,"leaw.png", false) guiSetVisible(image8,false) image9 = guiCreateStaticImage(363,23,119,28,"memw.png", false) guiSetVisible(image9,false) image10 = guiCreateStaticImage(363,23,119,28,"cww.png", false) guiSetVisible(image10,false) function open() guiSetVisible(image1,not guiGetVisible(image1)) showCursor(guiGetVisible(image1)) guiSetInputEnabled(guiGetVisible(image1)) guiSetVisible(image5,false) guiSetVisible(image6,false) guiSetVisible(image7,false) guiSetVisible(image8,false) guiSetVisible(image9,false) guiSetVisible(image10,false) end bindKey("F1","down",open) function oppen(button, state, absoluteX, absoluteY) if (source == image2) then showCursor(true) guiSetVisible(image5,true) guiSetVisible(image6,false) guiSetVisible(image7,false) guiSetVisible(image8,true) guiSetVisible(image9,false) guiSetVisible(image10,false) elseif (source == image3) then showCursor(true) guiSetVisible(image5,false) guiSetVisible(image6,true) guiSetVisible(image7,false) guiSetVisible(image8,false) guiSetVisible(image9,true) guiSetVisible(image10,false) elseif (source == image4) then showCursor(true) guiSetVisible(image5,false) guiSetVisible(image6,false) guiSetVisible(image7,true) guiSetVisible(image8,false) guiSetVisible(image9,false) guiSetVisible(image10,true) end end addEventHandler ("onClientGUIClick", getRootElement(), oppen) Link to comment
SmoKing Posted February 12, 2013 Author Share Posted February 12, 2013 شككرا طيب الحين انا ابي اسوي ملف اكتب فيه ويصير في اللوحه كيف؟ Link to comment
iPrestege Posted February 12, 2013 Share Posted February 12, 2013 قصدك تبية XML? مافهمتك / = ؟! Link to comment
SmoKing Posted February 12, 2013 Author Share Posted February 12, 2013 يعني اسوي ملف لوا او اي شي اكتب فيه ويطلع في اللوحه مثلا اكتب SmoKing ويطلع في اللوحه واقدر امسح وكذا Link to comment
SmoKing Posted February 12, 2013 Author Share Posted February 12, 2013 شف انا بكتب في ذي اللوحه بس انا مابي اكتب عليها كذا لان ابي اعدل بعدين ابيها بملف Link to comment
iPrestege Posted February 12, 2013 Share Posted February 12, 2013 مسوي لبل مسوي وش ؟ ذذ Link to comment
iPrestege Posted February 12, 2013 Share Posted February 12, 2013 اجل اكتب على الصورة / = Link to comment
SmoKing Posted February 12, 2013 Author Share Posted February 12, 2013 طيب انا ابي اسويها بملف مقدر ؟ عشان اقدر اعدل وكذا 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