Jump to content

boton de dxdraw?


lLinux

Recommended Posts

Posted (edited)

mmm lo que yo hago es combinar los gui con los dx les pongo 0 de alpha a los botones y ensima pongo un dxDrawRectangle

y usop el evento onClientMouseEnter

Edited by Guest
Posted

Te paso a mostrar y explicar como lo hago en mi script de BF3:

  
function DeployMetClick(button, state) 
if state == "up" then -- Solo se activa al hacer click (y no tambien al soltarlo) 
return -- Si esta siendo soltado, cancelar. 
end 
local CursorX, CursorY = getCursorPosition() -- Posicion Del mouse 
if CursorX > 0.79 and CursorY > 0.917 then -- Si esta dentro de X,Y coordenadas 
if CursorX < 0.96 and CursorY < 0.96 then -- Si esta dentro de X,Y coordenadas 
Deploy() -- llamar la funcion Deploy 
fadeCamera(true, 1) -- Ocultar camara 
outputConsole("DEPLOYED") -- Tirar a consola del cliente "DEPLOYED" 
end 
end 
  
end 
addEventHandler("onClientClick", getRootElement(), DeployMetClick) 

My ingame nick is ~HyPeX~

BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager

gKhdyRJ.png

  • Recently Browsing   0 members

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