JohnMcDoogle Posted April 14, 2016 Share Posted April 14, 2016 I want to align the text to the right. Basically what I mean is, if the text becomes bigger, it will extend out onto the left and the text will never go over the end coords of the text, but it will rather go over the left. Leave a comment if ya don't know what I mean. As you can see, I've SET_TEXT_RIGHT_JUSTIFY, I've also tried SET_TEXT_JUSTIFICATION(2) but it does pretty much the same thing... It does what I want it to do but it puts the text all the way over to the right of the screen temp = scr_rect_Y - 0.0124f;setupdraw();UI::SET_TEXT_FONT(0);UI::SET_TEXT_SCALE(0.0f, 0.26f);UI::SET_TEXT_COLOUR(optioncount.R, optioncount.G, optioncount.B, optioncount.A);UI::_SET_TEXT_ENTRY("CM_ITEM_COUNT");UI::ADD_TEXT_COMPONENT_INTEGER(currentop); // ! currentop_w_breaksUI::ADD_TEXT_COMPONENT_INTEGER(totalop); // ! totalop - totalbreaksUI::SET_TEXT_RIGHT_JUSTIFY(true); // text is aligned to the rightUI::_DRAW_TEXT(0.2205f, temp); // 0.2205f + menuPos 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