Jump to content

fade dxtext


Stevenn

Recommended Posts

Posted

Hello, I got this dxmsg which disappears in 5 seconds, but I want it to fade out not just remove it instantly, if you get what I mean

and my question is, how can I do that? :)

Posted

This is an Example

function drawImage() 
            local screenWidth, screenHeight = guiGetScreenSize() 
            image1 = guiCreateStaticImage(screenWidth/2, screenHeight/40,100,100,  'images/one.png', false) 
            Animation.createAndPlay(image1, Animation.presets.guiFadeIn(800)) --- this is what you want? 
            Animation.createAndPlay(image1, Animation.presets.guiPulse(1000)) --- this is what you want? 
  end 
addEventHandler ( "onClientResourceStart", root, drawImage) 

and then use arc_ animation script and it well work :wink:

Posted

You can't use arc_ animation library with DX Text.

You must create your own DX Text system and edit the library to work with your DX Text system.

Guest Guest4401
Posted

Or use a little bit of Math with the color argument for dxDrawText.

Remember,

tocolor(r,g,b,ALPHA) 

Depends on what is easier for you. Yes, there are other ways too, as suggested by others.

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