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

Blt PlayerName


Zetasis
 Share

Recommended Posts

Okay I have been trying to figure out how to change the font style for player and npc names as well as map, item, etc. but I can not find anything about the font when I go into Sub Blt PlayerName. I have not looked at the Blt Damage or anything else yet but I figured if I can get the PlayerName font changed the rest will be close to the same idea.

I hope I made this clear and not confusing. Thanks to anyone who can help.
Link to comment
Share on other sites

Okay I found Setfont and these are what I found:

```
Public Sub SetFont(ByVal Font As String, ByVal Size As Byte)
    GameFont = CreateFont(Size, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Font)
End Sub
```
And

```
Private Sub LoadFont()
    On Error GoTo ErrorHandle

    Font = ReadINI("FONT", "Font", App.Path & "\Font.ini")
    fontsize = CByte(ReadINI("FONT", "Size", App.Path & "\Font.ini"))

    If Font = vbNullString Then
        Font = "fixedsys"
    End If

    If fontsize <= 0 Or fontsize > 32 Then
        fontsize = 18
    End If

    Call SetFont(Font, fontsize)

    Exit Sub

ErrorHandle:
    Call WriteINI("FONT", "Font", "fixedsys", App.Path & "\Font.ini")
    Call WriteINI("FONT", "Size", 18, App.Path & "\Font.ini")

    Call SetFont("fixedsys", 18)

End Sub
```
Just by looking at it I would assume it reads the font from an .ini file somewhere but I can't find any .ini with FONT= in it. I could be very mistaken though.

Edit: Forget that. I found the Font .ini it was in the client folder. I would have thought it was in the server folder lol. Thanks for the help Robin.
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...