Patrick0809 Posted November 14, 2011 Author Share Posted November 14, 2011 how can i clear something from the gui ?tmpString = "Friends:" RenderText Font_Default, tmpString, 60 + (187 / 2) - (EngineGetTextWidth(Font_Default, tmpString) / 2), y - 35, Whitenow i want to clear this tmpstring and thentmpString = "You have no friends!" RenderText Font_Default, tmpString, 60 + (187 / 2) - (EngineGetTextWidth(Font_Default, tmpString) / 2), y - 35, White–-> how can i make that ? Link to comment Share on other sites More sharing options...
Stach Posted November 14, 2011 Share Posted November 14, 2011 Make an if statement and check if they have friends. If so, render that text. If not, render the other. Link to comment Share on other sites More sharing options...
Patrick0809 Posted November 14, 2011 Author Share Posted November 14, 2011 i already had this idea but i can add and remove friends there and then it´s overwritten two strings on one place …. Link to comment Share on other sites More sharing options...
Stach Posted November 14, 2011 Share Posted November 14, 2011 What kind of statement are you writing if its overlapping? If you have the rendering code inside of the if/else statement, it should render only one considering which of the conditions is met. I don't know what to tell you rather than to post your code so we can see if you're properly handling it correctly. Link to comment Share on other sites More sharing options...
Patrick0809 Posted November 14, 2011 Author Share Posted November 14, 2011 ok For X = 0 To 10 If Amountoffriends = X Then tmpString = "Freunde:" & X & "/" & MAX_FRIENDS RenderText Font_Default, tmpString, 60 + (187 / 2) - (EngineGetTextWidth(Font_Default, tmpString) / 2), y - 35, White End If Nexthere now i did it like this i think it´s working, but it doesn´t update itself - how can i do this ? 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