12p Posted October 3, 2010 Share Posted October 3, 2010 (edited) hello there, it's me again. I just want to know, there is some way to change a "DirectX" text? I want to do some kind of cutscene, and use DirectX as the storyteller. But I dunno if there is some way to change its text, or just use another DirectX text... Edited October 3, 2010 by Guest Link to comment
dzek (varez) Posted October 3, 2010 Share Posted October 3, 2010 whaaat? i dont know what you mean. maybe attach some code to your post? Link to comment
12p Posted October 3, 2010 Author Share Posted October 3, 2010 No code. Just a little simple question: THERE IS SOME WAY TO EDIT THE DIRECTX TEXT? HOW? Link to comment
dzek (varez) Posted October 3, 2010 Share Posted October 3, 2010 I dont know HOW and WHAT are you trying to change? You are talking about dxDrawText? Then notice - it's first argument is string with text to display. What is so hard? Link to comment
12p Posted October 3, 2010 Author Share Posted October 3, 2010 yes. dxDrawText is a DX Text. But I want to show it, then fade it out, change its text content, and fade it in. There is some way to change the text content of a DX Text? Link to comment
dzek (varez) Posted October 3, 2010 Share Posted October 3, 2010 mytext = "first text" alpha=255 addEventHandler("onClientRender", getRootElement(), function() if (alpha>0) then alpha=alpha-1 end dxDrawText(mytext, 0, 0, 0, 0, tocolor(255,255,255,alpha)) end) setTimer(function() mytext = "2nd text" end, 1000, 1) now do whatever you want with it. 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