AL-SAYED Posted February 22, 2013 Share Posted February 22, 2013 (edited) ASA2 = guiCreateStaticImage(226,52,200,169,"file/2.png",false,WWA) setElementData(ASA2, "tooltip-text", "POLICE", false ,WWA) guiSetAlpha(ASA2 ,0.5) ASA1 = guiCreateStaticImage(26,47,178,169,"file/3.png",false,WWA) setElementData(b1, "tooltip-text", "BALLAS", false ,WWA) guiSetAlpha(ASA1,0.5) ASA3 = guiCreateStaticImage(448,52,278,159,"file/1.png",false,WWA) setElementData(b3, "tooltip-text", "GROVE", false ,WWA) guiSetAlpha(ASA3 ,0.5) addEventHandler( "onClientMouseEnter", root, function () guiGetAlpha(ASA2 ) if alpha == 0.5 then guiSetAlpha ( ASA2 , 1 ) end end ) انا ابغي اذا دخل الماوس داخل الصورة تصير الوضوح كامل بس المشكله الصورة ما تطلع بالمرة Edited February 22, 2013 by Guest Link to comment
|Mr|-Talal07-| Posted February 22, 2013 Share Posted February 22, 2013 طيب تاكد انها في الميتا و نفس الاسم و نفس الصيغه و داخل ملف file Link to comment
==>ҭᾄlᾄl Posted February 22, 2013 Share Posted February 22, 2013 addEventHandler( "onClientMouseEnter", root, function () alpha = guiGetAlpha(source) if alpha == 0.5 then guiSetAlpha ( source, 1 ) end end ) Link to comment
|Mr|-Talal07-| Posted February 22, 2013 Share Posted February 22, 2013 function Alpha() if eventName == "onClientMouseEnter" then guiSetAlpha(source,1) elseif eventName == "onClientMouseLeave" then guiSetAlpha(source,0.5) end end addEventHandler("onClientMouseEnter",resourceRoot,Alpha) addEventHandler("onClientMouseLeave",resourceRoot,Alpha) Link to comment
iPrestege Posted February 22, 2013 Share Posted February 22, 2013 جرب / ASA2 = guiCreateStaticImage(226,52,200,169,"file/2.png",false,WWA) setElementData(ASA2, "tooltip-text", "POLICE", false) guiSetAlpha(ASA2 ,0.5) ASA1 = guiCreateStaticImage(26,47,178,169,"file/3.png",false,WWA) setElementData(ASA1, "tooltip-text", "BALLAS", false) guiSetAlpha(ASA1,0.5) ASA3 = guiCreateStaticImage(448,52,278,159,"file/1.png",false,WWA) setElementData(ASA3, "tooltip-text", "GROVE", false) guiSetAlpha(ASA3 ,0.5) addEventHandler( "onClientMouseEnter", resourceRoot, function () local alpha = guiGetAlpha(ASA2) if alpha == 0.5 then guiSetAlpha ( ASA2 , 1 ) end end ) @ TaLaL Required Arguments guiElement: The gui element in which you want to retrieve the alpha of. Link to comment
AL-SAYED Posted February 22, 2013 Author Share Posted February 22, 2013 الصور ما تطلع Link to comment
iPrestege Posted February 22, 2013 Share Posted February 22, 2013 الصور تطلع ^ اطرح الميتا والمفروض مسوي صورة رئيسية عليها الـ 3 صور هذي اسمها ؟ WWA Link to comment
AL-SAYED Posted February 22, 2013 Author Share Posted February 22, 2013 (edited) ".." description=".." name=".." version="0.1" type="gamemode"/> مسوي نافذه مخفية Edited February 22, 2013 by Guest Link to comment
iPrestege Posted February 22, 2013 Share Posted February 22, 2013 طيب يالغلا الصور عليها صور رئيسية صح ؟ كبيرة واسمها التعريفي WWA ? او مافية؟ Link to comment
AL-SAYED Posted February 22, 2013 Author Share Posted February 22, 2013 وقت الا اشيل guiSetAlpha ( b1 , 0.5 ) تصير ظاهرة واذا احطه ماتطلع الصورة Link to comment
iPrestege Posted February 22, 2013 Share Posted February 22, 2013 اكيد لانة مافية صورهـ كذا اصلا اكثر شيء اقدر اساعدك فية ان الكود هذا مو كامل ارسلي الكود كامل خاص ~ Link to comment
|Mr|-Talal07-| Posted February 23, 2013 Share Posted February 23, 2013 ".." description=".." name=".." version="0.1" type="gamemode"/> مسوي نافذه مخفية يالخ انت مسوي قيم مود ولا سكربت حول gamemode الى script و ان شاء الله يشتغل Link to comment
3NAD Posted February 23, 2013 Share Posted February 23, 2013 @ TaLaL Required Arguments guiElement: The gui element in which you want to retrieve the alpha of. source: The source of this event is the GUI element that was pointed at. https://wiki.multitheftauto.com/wiki/OnClientMouseEnter https://wiki.multitheftauto.com/wiki/OnClientMouseLeave Link to comment
xX|KeMo|Xx Posted March 7, 2013 Share Posted March 7, 2013 ASA2 = guiCreateStaticImage(226,52,200,169,"file/2.png",false,WWA) setElementData(ASA2, "tooltip-text", "POLICE", false ,WWA) guiSetAlpha(ASA2 ,0.5) ASA1 = guiCreateStaticImage(26,47,178,169,"file/3.png",false,WWA) setElementData(b1, "tooltip-text", "BALLAS", false ,WWA) guiSetAlpha(ASA1,0.5) ASA3 = guiCreateStaticImage(448,52,278,159,"file/1.png",false,WWA) setElementData(b3, "tooltip-text", "GROVE", false ,WWA) guiSetAlpha(ASA3 ,0.5) addEventHandler( "onClientMouseEnter", root, function () guiGetAlpha(ASA2 ) if alpha == 0.5 then guiSetAlpha ( ASA2 , 1 ) end end ) انا ابغي اذا دخل الماوس داخل الصورة تصير الوضوح كامل بس المشكله الصورة ما تطلع بالمرة ASA2 = guiCreateStaticImage(226,52,200,169,"file/2.png",false,WWA) setElementData(ASA2, "tooltip-text", "POLICE", false ,WWA) guiSetAlpha(ASA2 ,0.5) ASA1 = guiCreateStaticImage(26,47,178,169,"file/3.png",false,WWA) setElementData(b1, "tooltip-text", "BALLAS", false ,WWA) guiSetAlpha(ASA1,0.5) ASA3 = guiCreateStaticImage(448,52,278,159,"file/1.png",false,WWA) setElementData(b3, "tooltip-text", "GROVE", false ,WWA) guiSetAlpha(ASA3 ,0.5) addEventHandler("onClientMouseMove",root,function ( x, y ) if ( source == ASA2 ) then guiSetAlpha(ASA2 , 1) elseif ( source == ASA1 ) then guiSetAlpha(ASA1 , 1) elseif ( source == ASA3 ) then guiSetAlpha(ASA1 , 1) end end) addEventHandler("onClientMouseLeave",root,function ( x, y ) if ( source == ASA2 ) then guiSetAlpha(ASA2 , 0.5) elseif ( source == ASA1 ) then guiSetAlpha(ASA2 , 0.5) elseif ( source == ASA3 ) then guiSetAlpha(ASA2 , 0.5) 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