Jump to content

الصور


AL-SAYED

Recommended Posts

  
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
Link to comment

جرب /

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

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...