Shmoopy Posted April 14, 2013 Share Posted April 14, 2013 So i've made a menu for my upcoming mod , everything seems perfect except for the text , the text has a priority over textures , therefore the mouse cursor is shown behind the text , and that looks ugly , so is there anyone who knows an opcode or the memory address of text or texture priority ? Thanks in advance Link to comment Share on other sites More sharing options...
Wesser Posted April 14, 2013 Share Posted April 14, 2013 (edited) You can draw the mouse cursor after all texts. Alternatively, if each of them has the bDrawBeforeFade flag set by SET_TEXT_DRAW_BEFORE_FADE (03E0), you can put the cursor texture on top by disabling such flag with SET_SPRITES_DRAW_BEFORE_FADE (03E3). Actually, it is unnecessary to disable it as it gets set to false every time sprites (even texts) are refreshed. Edited April 15, 2013 by Wesser 012 345 678 9A BCD EFG HIJK LMN OPQR STUV WX YZ Link to comment Share on other sites More sharing options...
Shmoopy Posted April 14, 2013 Author Share Posted April 14, 2013 You may draw the mouse cursor after all textes. Alternatively, if none of them has the bDrawBeforeFade flag set by 03E0, you should put the cursor texture on top by 03E3. Tried all of them but still wont work Link to comment Share on other sites More sharing options...
Wesser Posted April 15, 2013 Share Posted April 15, 2013 I apologize, it was too late and I was tired aswell. I edited my previous post to make things clearer. If you are still having problems, you should inevitably post the whole code or atleast the drawing part. 012 345 678 9A BCD EFG HIJK LMN OPQR STUV WX YZ Link to comment Share on other sites More sharing options...
Shmoopy Posted April 15, 2013 Author Share Posted April 15, 2013 I apologize, it was too late and I was tired aswell. I edited my previous post to make things clearer. If you are still having problems, you should inevitably post the whole code or atleast the drawing part. Thank you so much that did worked just fine Link to comment Share on other sites More sharing options...
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