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

CrystalShire Bubble Chat on EO 2.0


Mondo
 Share

Recommended Posts

  • Replies 108
  • Created
  • Last Reply

Top Posters In This Topic

@abhi2011:

> Easy for you to say. I don't know how!

Thats why u have to learn more and more!
Also you have to read all posts here to know what to do…
See what problems other got and check for answers... Maybe they had same problem with centering? :D
Link to comment
Share on other sites

@waseemk:

> No, it just closes it without showing anything. It's sorta like it thinks it is supposed to do that.

Check your CPS on your server. I've noticed this tutorial without anything else will cause an **EXTREME** CPS and FPS drop. I'd get an FPS of 18 to 21 and a CPS of 3 to 19.
Link to comment
Share on other sites

The centralisation problem comes because you ported over the DX8 font width method rather than using the DD7 native to EO.

```
Public Function EngineGetTextWidth(ByRef UseFont As String, ByVal text As String) As Integer
Dim LoopI As Integer

    'Make sure we have text
    If LenB(text) = 0 Then Exit Function

    'Loop through the text
    For LoopI = 1 To Len(text)
        EngineGetTextWidth = EngineGetTextWidth + LetterWidth(Mid$(text, LoopI, 1))
    Next LoopI

End Function

Public Function LetterWidth(ByVal text As String) As Integer
' You can use this function to specify the width of each letter you'll be using, if unspecified space will be 4 pixels.

    Select Case text
        Case "!", "1", "I", "i", "|", "l", "¡", "'", ".", ",", ";", ":"
            LetterWidth = 2
        Case Else
            LetterWidth = 4
    End Select
End Function

```
Remove all that.

Replace all calls with getWidth(). Pass through the DC and the string as the parameters. Will perfectly centralise everything.
Link to comment
Share on other sites

@Robin:

> The centralisation problem comes because you ported over the DX8 font width method rather than using the DD7 native to EO.
>
> ```
> Public Function EngineGetTextWidth(ByRef UseFont As String, ByVal text As String) As Integer
> Dim LoopI As Integer
>
>     'Make sure we have text
>     If LenB(text) = 0 Then Exit Function
>    
>     'Loop through the text
>     For LoopI = 1 To Len(text)
>         EngineGetTextWidth = EngineGetTextWidth + LetterWidth(Mid$(text, LoopI, 1))
>     Next LoopI
>
> End Function
>
> Public Function LetterWidth(ByVal text As String) As Integer
> ' You can use this function to specify the width of each letter you'll be using, if unspecified space will be 4 pixels.
>
>     Select Case text
>         Case "!", "1", "I", "i", "|", "l", "¡", "'", ".", ",", ";", ":"
>             LetterWidth = 2
>         Case Else
>             LetterWidth = 4
>     End Select
> End Function
>
> ```
> Remove all that.
>
> Replace all calls with getWidth(). Pass through the DC and the string as the parameters. Will perfectly centralise everything.

Yep, noticed that and posted it on reply #34… I've updated the tutorial reflecting that.

Much appreciated.
Link to comment
Share on other sites

I can't possibly imagine you actually read through the code and didn't see this:

```
' check if it's timed out - close it if so
        If .Timer + 5000 < GetTickCount Then
            .active = False
        End If
```
The 5000 stands for 5 Seconds (5000ms / 1000 = 5s). So changing that would reduce or increase the time displayed on screen.
Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...
  • 3 weeks later...
I have this problem, i use the last update of this tutorial and the text is not center and I don't know why but the bubble chat is in the face of the character (the character sprite is 64x64) look:

![](http://imageshack.us/a/img685/8112/ayudar.png)

Help me please i need this very much!
Link to comment
Share on other sites

Due to the brand shop high Leggings price let most women flinch, so most of the girls turn to those fake leggings, but they worry about leggings quality is very poor, so how to choose those affordable quality good Leggings And Tights is also need some skills. The best way is to make contrast some shop around.

http://www.ms-leggings.com
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...