15-06-2009, 07:34 PM
Easy stuff, yo.
Then call this somewhere:
And make sure you have a resticon.bmp.
The rec defines the size of the image...for example the rec I have set up does a 32x32 selection from the resticon.bmp at 0,0 (very top left).
Code:
Private Sub BltRestIcon(ByVal Index As Long)
Dim rec As DXVBLib.RECT
With rec
.Top = 0
.Bottom = 32
.Left = 0
.Right = 32
End With
Call DD_BltFast(GetPlayerX(Index) * 32, (GetPlayerY(Index) * 32) - 32, DDS_RestIcon, rec, DDBLTFAST_WAIT Or DDBLTFAST_SRCCOLORKEY)
End Sub
Then call this somewhere:
Code:
Call InitDDSurf("resticon", DDS_RestIcon)
And make sure you have a resticon.bmp.
The rec defines the size of the image...for example the rec I have set up does a 32x32 selection from the resticon.bmp at 0,0 (very top left).