Name Border

From VbGORE Visual Basic Online RPG Engine

This is only a little addition, it adds a small black border around names ablove players and NPCs. When you use this in your game, names will be drawn like this:

Image:NameBorder.jpg


[edit] Implementation

Open GameClient.vbp.

Find:

    Engine_Render_Text Font_Default, CharList(CharIndex).Name, PixelOffsetX + 16 - CharList(CharIndex).NameOffset, PixelOffsetY - 40, RenderColor(1)

Above add this:

    Engine_Render_Text Font_Default, CharList(CharIndex).Name, PixelOffsetX + 16 - CharList(CharIndex).NameOffset, PixelOffsetY - 41, -16777216
    Engine_Render_Text Font_Default, CharList(CharIndex).Name, PixelOffsetX + 16 - CharList(CharIndex).NameOffset, PixelOffsetY - 39, -16777216
    Engine_Render_Text Font_Default, CharList(CharIndex).Name, PixelOffsetX + 15 - CharList(CharIndex).NameOffset, PixelOffsetY - 40, -16777216
    Engine_Render_Text Font_Default, CharList(CharIndex).Name, PixelOffsetX + 17 - CharList(CharIndex).NameOffset, PixelOffsetY - 40, -16777216

[edit] Further editing

-16777216 is the converted ARGB color and displays a black border. Use the ToolColorCon to make other colors.

Personal tools