CannabisSwag Posted March 23, 2013 Share Posted March 23, 2013 How do I hide a single text draw without messing up the other text draws? Link to comment Share on other sites More sharing options...
fastman92 Posted March 24, 2013 Share Posted March 24, 2013 Just don't draw it. Use branches such as else_jump or high-level enclosures IF ... THEN ... END to execute some code depending on given conditions Link to comment Share on other sites More sharing options...
CannabisSwag Posted March 24, 2013 Author Share Posted March 24, 2013 I have a situation where it needs to be already visible, but then when you press a key only that one text draw disappears while the others remain visible. Link to comment Share on other sites More sharing options...
Ashwin.Star Posted March 25, 2013 Share Posted March 25, 2013 You may use another opcode to show same type of text, & give it a unused Gxt string, thi will override the current text on screen with nothing (as GXT string is not avavilable), Link to comment Share on other sites More sharing options...
fastman92 Posted March 26, 2013 Share Posted March 26, 2013 I have a situation where it needs to be already visible, but then when you press a key only that one text draw disappears while the others remain visible. Put text drawing of the most texts in gosub. You need to draw texts in loop when you're waiting for a key, when you're waiting beside gosub, you have to draw that additional text. Use 03F0: use_text_commands 1 in loop After loop exists because user has pressed key do in loop while truewait 003F0: use_text_commandsgosub @drawCommonTexts // only this, no additional text, which had to disappearend It's pretty straightforward. 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