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

Rendering text problem :/


Growlith1223
 Share

Recommended Posts

hi i just released my little bug in my topic in the off topic and right now i am trying to make it renderText instead of a message box.
but it won't render it…
```
                        If curMenu = MENU_REGISTER Then
                            ' register accept
                            If isLoginLegal(sUser, sPass) Then

                                If sPass2 <> sPass Then
                                    RenderText Font_Default, "The password does not match", x2, y2, Red
                                    'MsgBox "The password does not match."
                                    Exit Sub
                                End If

                                If Not isStringLegal(sUser) Then
                                    Exit Sub
                                End If

                                Call MenuState(MENU_STATE_NEWACCOUNT)
                            End If
                        End If

```Help is appreciated.
Link to comment
Share on other sites

Everything you render must be inside the RenderGraphics procedure. That RenderText is not. Put that RenderText in RenderGraphics and use a bool flag to check if you should render it or not.
ie:
```
if CanDrawMsg then rendertext(...)

```
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...