Reynolds_ Posted December 31, 2014 Share Posted December 31, 2014 Simply put, how am I supposed to make a dynamic bounding box? The box's size should change with the text in the GUILabel/d3text. If I type in more text, it should expand to accomodate said text, if I type in less text, it should retract. To be more precise, I want a dialog box similar to the ones found in all GTA Games positioned in the top left corner which shows hints & other stuff to the palyer. Link to comment
Castillo Posted December 31, 2014 Share Posted December 31, 2014 dxDrawRectangle dxDrawText Link to comment
.:HyPeX:. Posted December 31, 2014 Share Posted December 31, 2014 dxDrawRectangle dxDrawText You're missing the dynamic part dxGetTextWidth Link to comment
Reynolds_ Posted December 31, 2014 Author Share Posted December 31, 2014 Thanks for your answers. I got to dxGetWidth already, and, as I said, I am more concerned with word wrapping and its effect on this whole thing. I would want to keep my text's width constant and set the height according to the amount of text in the dxText. I already found my answer, which is the dxGetFontHeight function. It was kind of stupid, I must've missed it late at night. Thanks for all your answers. 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