sodanakin Posted January 17, 2016 Share Posted January 17, 2016 As title Cant seem to find it I mean I could draw a new one for each time it hits char limit but since theres ~n~ for new line I don't see why. Link to comment Share on other sites More sharing options...
ISOFX Posted January 17, 2016 Share Posted January 17, 2016 Not sure but you could do UI::_DRAW_TEXT again when you have met the maximum amount of characters. Or do you mean overall? Link to comment Share on other sites More sharing options...
sodanakin Posted January 17, 2016 Author Share Posted January 17, 2016 Not sure but you could do UI::_DRAW_TEXT again when you have met the maximum amount of characters. Or do you mean overall? Yea thats what I already said code would just be a bit cleaner if I could do it all in one drawcall But oh well already went for the multiple calls. Link to comment Share on other sites More sharing options...
AHK1221 Posted January 20, 2016 Share Posted January 20, 2016 Not sure but you could do UI::_DRAW_TEXT again when you have met the maximum amount of characters. Or do you mean overall? Yea thats what I already said code would just be a bit cleaner if I could do it all in one drawcall But oh well already went for the multiple calls. I think if it says max, then there would be no way to increase it Link to comment Share on other sites More sharing options...
Guad Posted January 20, 2016 Share Posted January 20, 2016 Check out the NativeUI sourcecode. /// <summary> /// Push a long string into the stack. /// </summary> /// <param name="str"></param> public static void AddLongString(string str) { const int strLen = 99; for (int i = 0; i < str.Length; i += strLen) { string substr = str.Substring(i, Math.Min(strLen, str.Length - i)); Function.Call(Hash._ADD_TEXT_COMPONENT_STRING, substr); } } jedijosh920 1 Link to comment Share on other sites More sharing options...
jedijosh920 Posted January 20, 2016 Share Posted January 20, 2016 UI::REQUEST_ADDITIONAL_TEXT Link to comment Share on other sites More sharing options...
sodanakin Posted January 23, 2016 Author Share Posted January 23, 2016 Thanks guys was able to figure it out after i did it the long way. Oh well ty anyways! 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