CRoW,,# Posted March 13, 2013 Share Posted March 13, 2013 السلام عليكم ابي اطلب كم كود وادحدر الطلب الاول ابي النافذة تجي من اليسار الى اليمين وتوقف في النص الطلب الثاني اذا مر الماوس فوق الزر يطلع كلام مثل الي في الصورة Link to comment
iPrestege Posted March 13, 2013 Share Posted March 13, 2013 https://forum.multitheftauto.com/viewtopic.php?f=119&t=50659&p=494538&hilit=ToolTips#p494538 التحريك : setTimer guiSetPosition guiGetPosition Link to comment
CRoW,,# Posted March 13, 2013 Author Share Posted March 13, 2013 طيب كيف اجيب الاحداثيات الي تروح لها النافذة ؟ Link to comment
кιηg-αвα∂у Posted March 13, 2013 Share Posted March 13, 2013 local x,y = guiGetScreenSize() Link to comment
CRoW,,# Posted March 13, 2013 Author Share Posted March 13, 2013 https://forum.multitheftauto.com/viewtopic.php?f=119&t=50659&p=494538&hilit=ToolTips#p494538التحريك : setTimer guiSetPosition guiGetPosition سوري م شفت guiGetPosition Link to comment
CRoW,,# Posted March 13, 2013 Author Share Posted March 13, 2013 هاه مثل كذا setTimer ( function() guiSetPosition ( wnd, absoluteX, absoluteY, false ) local x,y = guiGetPosition ( guiElement, true ) حاسس اني جايب العيد Link to comment
кιηg-αвα∂у Posted March 13, 2013 Share Posted March 13, 2013 مثال setTimer ( function() local x,y = guiGetPosition ( Wnd1, true ) guiSetPosition ( Wnd1, x + 5, y, false ) end,100,0) هاذه مثال بس Link to comment
CRoW,,# Posted March 13, 2013 Author Share Posted March 13, 2013 جايب عيدين !! كنت حاس والله عاد ما افهم مثاال الويكي ابو زقق Link to comment
iPrestege Posted March 13, 2013 Share Posted March 13, 2013 شوف يالغالي اشوف ان الكود صعب شوي بـ النسبة للاحداثيات وكذا بـ النسبة لك # فـ سويتة كذا بـ النسبة لـ احداثياتي فـ اللي عليك يـ الغالي تغيرهـ لـ احداثياتك اذا ماعجبك ! اوك ذذ ؟ جرب : GUIEditor.window[1] = بدلها بـ نافذتك Client Side ! isMove = false bindKey("F3", "down", function() if isMove then return end if guiGetVisible( GUIEditor.window[1] ) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) else guiSetPosition(GUIEditor.window[1], -300, 54, false) guiSetVisible(GUIEditor.window[1], true) showCursor(true) if isTimer(Time) then return end Time = setTimer(function() local x, y = guiGetPosition(GUIEditor.window[1], false) guiSetPosition(GUIEditor.window[1], x + 8, y, false) end, 50, 50) isWindowMove(true) setTimer(isWindowMove, 100, 1, false) end end ) function isWindowMove(bole) isMove = bole end Link to comment
CRoW,,# Posted March 13, 2013 Author Share Posted March 13, 2013 مثال setTimer ( function() local x,y = guiGetPosition ( Wnd1, true ) guiSetPosition ( Wnd1, x + 5, y, false ) end,100,0) هاذه مثال بس بدال wnd1 احط اسم النافذة حقتي صح Link to comment
iPrestege Posted March 13, 2013 Share Posted March 13, 2013 جرب كودي فوق ^ وتأكد أنك مخفي النافذهـ حقتك # Link to comment
CRoW,,# Posted March 13, 2013 Author Share Posted March 13, 2013 جرب كودي فوق ^ وتأكد أنك مخفي النافذهـ حقتك # جاري التجربة Link to comment
CRoW,,# Posted March 13, 2013 Author Share Posted March 13, 2013 جات النافذة من اليسار بس م تحركت ذا كود النافذة GUIEditor_Button = {} wnd = guiCreateWindow(158,60,579,479,"Music script By !FP^B_o~L|B|/\/",false) guiSetAlpha(wnd,1) GUIEditor_Button[1] = guiCreateButton(16,75,105,35,"Music",false,wnd) GUIEditor_Button[2] = guiCreateButton(230,75,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[2],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(457,75,94,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[3],"default-bold-small") GUIEditor_Button[4] = guiCreateButton(16,75,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[4],"default-bold-small") GUIEditor_Button[5] = guiCreateButton(16,171,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[5],"default-bold-small") GUIEditor_Button[6] = guiCreateButton(230,171,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[6],"default-bold-small") GUIEditor_Button[7] = guiCreateButton(459,171,94,35,"Music",false,wnd) GUIEditor_Button[8] = guiCreateButton(16,274,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[8],"default-bold-small") GUIEditor_Button[9] = guiCreateButton(230,274,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[9],"default-bold-small") GUIEditor_Button[10] = guiCreateButton(453,274,103,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[10],"default-bold-small") GUIEditor_Button[11] = guiCreateButton(12,388,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[11],"default-bold-small") GUIEditor_Button[12] = guiCreateButton(234,388,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[12],"default-bold-small") GUIEditor_Button[13] = guiCreateButton(451,388,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[13],"default-bold-small") GUIEditor_Button[15] = guiCreateButton(379,22,74,30,"ايقاف",false,wnd) guiSetFont(GUIEditor_Button[15],"default-bold-small") Link to comment
iPrestege Posted March 13, 2013 Share Posted March 13, 2013 GUIEditor_Button = {} wnd = guiCreateWindow(158,60,579,479,"Music script By !FP^B_o~L|B|/\/",false) guiSetVisible(wnd, false) guiSetAlpha(wnd,1) GUIEditor_Button[1] = guiCreateButton(16,75,105,35,"Music",false,wnd) GUIEditor_Button[2] = guiCreateButton(230,75,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[2],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(457,75,94,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[3],"default-bold-small") GUIEditor_Button[4] = guiCreateButton(16,75,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[4],"default-bold-small") GUIEditor_Button[5] = guiCreateButton(16,171,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[5],"default-bold-small") GUIEditor_Button[6] = guiCreateButton(230,171,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[6],"default-bold-small") GUIEditor_Button[7] = guiCreateButton(459,171,94,35,"Music",false,wnd) GUIEditor_Button[8] = guiCreateButton(16,274,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[8],"default-bold-small") GUIEditor_Button[9] = guiCreateButton(230,274,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[9],"default-bold-small") GUIEditor_Button[10] = guiCreateButton(453,274,103,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[10],"default-bold-small") GUIEditor_Button[11] = guiCreateButton(12,388,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[11],"default-bold-small") GUIEditor_Button[12] = guiCreateButton(234,388,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[12],"default-bold-small") GUIEditor_Button[13] = guiCreateButton(451,388,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[13],"default-bold-small") GUIEditor_Button[15] = guiCreateButton(379,22,74,30,"ايقاف",false,wnd) guiSetFont(GUIEditor_Button[15],"default-bold-small") isMove = false bindKey("F3", "down", function() if isMove then return end if guiGetVisible( wnd ) then guiSetVisible(wnd, false) showCursor(false) else guiSetPosition(wnd, -300, 54, false) guiSetVisible(wnd, true) showCursor(true) if isTimer(Time) then return end Time = setTimer(function() local x, y = guiGetPosition(wnd, false) guiSetPosition(wnd, x + 13, y, false) end, 50, 50) isWindowMove(true) setTimer(isWindowMove, 100, 1, false) end end ) function isWindowMove(bole) isMove = bole end اضغط اف3 وشوف # Link to comment
CRoW,,# Posted March 13, 2013 Author Share Posted March 13, 2013 GUIEditor_Button = {} wnd = guiCreateWindow(158,60,579,479,"Music script By !FP^B_o~L|B|/\/",false) guiSetVisible(wnd, false) guiSetAlpha(wnd,1) GUIEditor_Button[1] = guiCreateButton(16,75,105,35,"Music",false,wnd) GUIEditor_Button[2] = guiCreateButton(230,75,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[2],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(457,75,94,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[3],"default-bold-small") GUIEditor_Button[4] = guiCreateButton(16,75,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[4],"default-bold-small") GUIEditor_Button[5] = guiCreateButton(16,171,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[5],"default-bold-small") GUIEditor_Button[6] = guiCreateButton(230,171,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[6],"default-bold-small") GUIEditor_Button[7] = guiCreateButton(459,171,94,35,"Music",false,wnd) GUIEditor_Button[8] = guiCreateButton(16,274,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[8],"default-bold-small") GUIEditor_Button[9] = guiCreateButton(230,274,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[9],"default-bold-small") GUIEditor_Button[10] = guiCreateButton(453,274,103,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[10],"default-bold-small") GUIEditor_Button[11] = guiCreateButton(12,388,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[11],"default-bold-small") GUIEditor_Button[12] = guiCreateButton(234,388,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[12],"default-bold-small") GUIEditor_Button[13] = guiCreateButton(451,388,105,35,"Music",false,wnd) guiSetFont(GUIEditor_Button[13],"default-bold-small") GUIEditor_Button[15] = guiCreateButton(379,22,74,30,"ايقاف",false,wnd) guiSetFont(GUIEditor_Button[15],"default-bold-small") isMove = false bindKey("F3", "down", function() if isMove then return end if guiGetVisible( wnd ) then guiSetVisible(wnd, false) showCursor(false) else guiSetPosition(wnd, -300, 54, false) guiSetVisible(wnd, true) showCursor(true) if isTimer(Time) then return end Time = setTimer(function() local x, y = guiGetPosition(wnd, false) guiSetPosition(wnd, x + 8, y, false) end, 50, 50) isWindowMove(true) setTimer(isWindowMove, 100, 1, false) end end ) function isWindowMove(bole) isMove = bole end اضغط اف3 وشوف # مشكوور ضبط معي اسف تعبتك معي Link to comment
iPrestege Posted March 13, 2013 Share Posted March 13, 2013 ياليت تنسخة ثانية عدلت النافذهـ توصل للنص أفضل لك # =================================== العفو حياك الله # You're Welcome Link to comment
CRoW,,# Posted March 13, 2013 Author Share Posted March 13, 2013 ياليت تنسخة ثانية عدلت النافذهـ توصل للنص أفضل لك #=================================== العفو حياك الله # You're Welcome لا جات مضبوطة Link to comment
iPrestege Posted March 13, 2013 Share Posted March 13, 2013 اللي يريحك # ياليت تعرف كيف سويتةة ذذ Link to comment
CRoW,,# Posted March 13, 2013 Author Share Posted March 13, 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