Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Question


Patrick0809
 Share

Recommended Posts

how can i clear something from the gui ?

tmpString = "Friends:"
    RenderText Font_Default, tmpString, 60 + (187 / 2) - (EngineGetTextWidth(Font_Default, tmpString) / 2), y - 35, White

now i want to clear this tmpstring and then

tmpString = "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

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

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
    Next

here 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...