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

[EW] No Colour Textbox


WiseRock
 Share

Recommended Posts

Hey y'all, 

I would like to request some help for this wierd bug. I am currently using the Eclipse Worlds Engine and I recently implemented [http://www.eclipseorigins.com/community/index.php?/topic/136047-eclipse-worlds-chat-drawn-to-screen/](http://www.eclipseorigins.com/community/index.php?/topic/136047-eclipse-worlds-chat-drawn-to-screen/) which makes the the screen into the chatbox. Currently is it showing only White Text. It is not showing any other colours, just white.

I would like to request some aide for this problem. Anyone got any ideas?

Regards, 

Basketball
Link to comment
Share on other sites

as Sherwin said:

> replace "Colour" to "Color"

in

> 'Evilbunnie's DrawChat system
> Public Sub ReOrderChat(ByVal nText As String, nColor As Long)
> Dim i As Integer
>
>     For i = 19 To 1 Step -1
>         Chat(i + 1).text = Chat(i).text
>         Chat(i + 1).Color = Chat(i).Color
>     Next
>
>     Chat(1).text = nText
>     Chat(1).colour
> = nColor
> End Sub

I'm only guessing this could be your error
Link to comment
Share on other sites

> ,…,<>" data-cid="931364" data-time="1418424411">
>
> as Sherwin said:
>
>  
>
>  
>
> in
>
>  
>
> I'm only guessing this could be your error

I've Had that fixed Thanks for the suggestion.

> Im not sure what made the color go away. First try to replace all of the " color " in the code with " colour " and try messing with this line:
>
> ```
>
> RenderText Font_Default, Chat(i).text, frmMain.picForm.Left + 5, (frmMain.picForm.Top + 555) - (i * 20), White
>
> ```

I've tried playing around with it but I cant get it to be multicolored like it did in the original.
Link to comment
Share on other sites

  • 2 weeks later...
Are you using RGB colors? I believe my draw text function only supports Windows API colors aka VB constant colors.

And hehe, sorry about changing all instances of colour to color, I am nuts about stuff like that. I am American English, so I wanted the engine to be American not English.
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...