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:

NameBorder.jpg


Implementation

Open GameClient.vbp.

Find:

<vb>

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

</vb>

Above add this:

<vb>

   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

</vb>

Further editing

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

Personal tools