The Killer Posted August 24, 2015 Posted August 24, 2015 PaiN استخخدم مود الاخ فهو اسهل لك بكثير من كل هذي مثال بسيط عليه: local screenW, screenH = guiGetScreenSize() win = guiCreateWindow(10, (screenH - 406) / 2, 400, 406, "Test Window", false) guiWindowSetSizable(win, false) guiSetAlpha(win, 1.00) guiSetVisible (win, false) local startX = 10 -- X مكان بدء النافذه بالتحرك local startY = (screenH - 406) / 2 -- Y مكان بدء النافذه بالتحرك local startW = 400 -- W عرض النافذه local startH = 406 -- H طول النافذه local endX = (screenW - 400) / 2 -- X مكان انتهاء التحرك local endY = (screenH - 406) / 2 -- Y مكان انتهاء التحرك local endW = 400 -- W عرض النافذه local endH = 406 -- H طول النافذه local startX2 = (screenW - 400) / 2 -- X مكان بدء النافذه بالتحرك local startY2 = (screenH - 406) / 2 -- Y مكان بدء النافذه بالتحرك local startW2 = 400 -- W عرض النافذه local startH2 = 406 -- H طول النافذه local endX2 = 10 -- X مكان انتهاء التحرك local endY2 = (screenH - 406) / 2 -- Y مكان انتهاء التحرك local endW2 = 400 -- W عرض النافذه local endH2 = 406 -- H طول النافذه local seconds = 2 -- الثواني للأنتهاء من التحرك addCommandHandler ("view", function () if guiGetVisible (win) == false then exports.gie:guiAddInterpolateEffect (win, startX, startY, startW, startH, endX, endY, endW, endH, seconds, "OutBounce", "OutBounce", true) showCursor (true) else exports.gie:guiAddInterpolateEffect (win, startX2, startY2, startW2, startH2, endX2, endY2, endW2, endH2, seconds, "OutBounce", "OutBounce", false) showCursor (false) end end ) طبعا ادخل صفحة الويكي هذي: https://wiki.multitheftauto.com/wiki/Easing عشان تعرف تحط اشكال الحركه انا حاط فوق OutBounce انت ادخل الموقع واختار شكل وحطه بداله ادخل هنا للصفحه العربيه حقت الشرح + viewtopic.php?f=161&t=64607
Rockyz Posted August 24, 2015 Author Posted August 24, 2015 PaiN استخخدم مود الاخفهو اسهل لك بكثير من كل هذي مثال بسيط عليه: local screenW, screenH = guiGetScreenSize() win = guiCreateWindow(10, (screenH - 406) / 2, 400, 406, "Test Window", false) guiWindowSetSizable(win, false) guiSetAlpha(win, 1.00) guiSetVisible (win, false) local startX = 10 -- X مكان بدء النافذه بالتحرك local startY = (screenH - 406) / 2 -- Y مكان بدء النافذه بالتحرك local startW = 400 -- W عرض النافذه local startH = 406 -- H طول النافذه local endX = (screenW - 400) / 2 -- X مكان انتهاء التحرك local endY = (screenH - 406) / 2 -- Y مكان انتهاء التحرك local endW = 400 -- W عرض النافذه local endH = 406 -- H طول النافذه local startX2 = (screenW - 400) / 2 -- X مكان بدء النافذه بالتحرك local startY2 = (screenH - 406) / 2 -- Y مكان بدء النافذه بالتحرك local startW2 = 400 -- W عرض النافذه local startH2 = 406 -- H طول النافذه local endX2 = 10 -- X مكان انتهاء التحرك local endY2 = (screenH - 406) / 2 -- Y مكان انتهاء التحرك local endW2 = 400 -- W عرض النافذه local endH2 = 406 -- H طول النافذه local seconds = 2 -- الثواني للأنتهاء من التحرك addCommandHandler ("view", function () if guiGetVisible (win) == false then exports.gie:guiAddInterpolateEffect (win, startX, startY, startW, startH, endX, endY, endW, endH, seconds, "OutBounce", "OutBounce", true) showCursor (true) else exports.gie:guiAddInterpolateEffect (win, startX2, startY2, startW2, startH2, endX2, endY2, endW2, endH2, seconds, "OutBounce", "OutBounce", false) showCursor (false) end end ) طبعا ادخل صفحة الويكي هذي: https://wiki.multitheftauto.com/wiki/Easing عشان تعرف تحط اشكال الحركه انا حاط فوق OutBounce انت ادخل الموقع واختار شكل وحطه بداله ادخل هنا للصفحه العربيه حقت الشرح + viewtopic.php?f=161&t=64607 افدتني مشكور بس كيف اربط مود GIE مع مودي يعني مايحتاج اشغل GIE بنفسه مثلا بنشر المود ف يفضل انهم يكونون مدموجين
The Killer Posted August 25, 2015 Posted August 25, 2015 لا افتح ملف ال gie.lua وانسخ الاكواد الي فيه وحطها في ملف المود حقك وبس راح يكونو مدموجين وشيل بعدها exports.gie:
Rockyz Posted August 25, 2015 Author Posted August 25, 2015 لا افتح ملف ال gie.lua وانسخ الاكواد الي فيه وحطها في ملف المود حقك وبس راح يكونو مدموجين وشيل بعدها exports.gie: اي له دة قصدي المهم مشكور
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