~DarkRacer~ Posted March 8, 2013 Share Posted March 8, 2013 Hi, i want to send a gui Static image behind a specific text this is a picture: what function should i use? Link to comment
~DarkRacer~ Posted March 8, 2013 Author Share Posted March 8, 2013 i just want one function could send images back or front. Link to comment
50p Posted March 8, 2013 Share Posted March 8, 2013 If you've got the code then you have to move the guiCreateStaticImage above the code where you draw text or use guiMoveToBack/guiBringToFront. If you're drawing text with DX functions then make sure that parameter postGUI is set to false. Link to comment
~DarkRacer~ Posted March 8, 2013 Author Share Posted March 8, 2013 this is the dxText, where i should put false? timepassed = dxText:create('0:00:00', screenWidth/2+22.5, 27, false, 'default-bold', 1, 'right') the guiMoveToBack and guiBringToFront didn't work Link to comment
Anderl Posted March 8, 2013 Share Posted March 8, 2013 this is the dxText, where i should put false? timepassed = dxText:create('0:00:00', screenWidth/2+22.5, 27, false, 'default-bold', 1, 'right') the guiMoveToBack and guiBringToFront didn't work That is a DirectX functions-based lib so GUI functions obviously won't work. You need to edit the "textlib.lua" file in the 'race' resource. Link to comment
~DarkRacer~ Posted March 12, 2013 Author Share Posted March 12, 2013 How can i do that ? Link to comment
Jaysds1 Posted March 12, 2013 Share Posted March 12, 2013 create the image using the dxDrawImage and make sure you draw the image before the text! Link to comment
~DarkRacer~ Posted March 13, 2013 Author Share Posted March 13, 2013 There's a function in "Race_Client.lua" called "hideGUIComponents" or "showGUIComponents" does it work with dxDrawImage? Link to comment
Jaysds1 Posted March 13, 2013 Share Posted March 13, 2013 nah, that's only GUI Components, but you could customize it to work... Link to comment
~DarkRacer~ Posted March 13, 2013 Author Share Posted March 13, 2013 i can't make the image to dxDrawImage if the the hideGUIComponents doesn't work. is there any function make the dx image appear or disappear?? please help Link to comment
iPrestege Posted March 13, 2013 Share Posted March 13, 2013 i can't make the image to dxDrawImage if the the hideGUIComponents doesn't work.is there any function make the dx image appear or disappear?? please help What about : removeEventHandler and i think if u will use Dx u should use onClientRender right? Link to comment
~DarkRacer~ Posted March 13, 2013 Author Share Posted March 13, 2013 why should i use onClientRender. where the hell should i put the render event anyway? Link to comment
iPrestege Posted March 13, 2013 Share Posted March 13, 2013 Draws an image on the screen for a single frame. In order for the image to stay visible continuously, you need to call this function with the same parameters on each frame update (see onClientRender). Image files should ideally have dimensions that are a power of two, to prevent possible blurring. 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