Jump to content

الصور


AL-SAYED

Recommended Posts

Posted (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 by Guest
Posted
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) 

Posted

جرب /

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.

Posted

اكيد لانة مافية صورهـ كذا اصلا

اكثر شيء اقدر اساعدك فية ان الكود هذا مو كامل ارسلي الكود كامل خاص ~

Posted
".." description=".." name=".." version="0.1" type="gamemode"/> 
    

مسوي نافذه مخفية

يالخ انت مسوي قيم مود ولا سكربت

حول

gamemode

الى

script

و ان شاء الله يشتغل

  • 2 weeks later...
Posted
  
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) 

جرب هذاآ

وسوي نسخه من القديمـ

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...