Hey everyone,
I'm trying to make the minimap in a window. Only thing I need to know is, how I can make the .X and .Y of the minimap the same as the X and Y as a window. I know the code I need to change is this:
Code:
'Top-left corner
With tVA(0 + Offset)
.X = MiniMapTile(j).X * MiniMapSize
.Y = MiniMapTile(j).Y * MiniMapSize
.Color = MiniMapTile(j).Color
.Rhw = 1
End With
'Top-right corner
With tVA(1 + Offset)
.X = MiniMapTile(j).X * MiniMapSize + MiniMapSize
.Y = MiniMapTile(j).Y * MiniMapSize
.Color = MiniMapTile(j).Color
.Rhw = 1
End With
'Bottom-left corner
With tVA(2 + Offset)
.X = MiniMapTile(j).X * MiniMapSize
.Y = MiniMapTile(j).Y * MiniMapSize + MiniMapSize
.Color = MiniMapTile(j).Color
.Rhw = 1
End With
'*** Triangle 2 ***
'Top-right corner
tVA(3 + Offset) = tVA(1 + Offset)
'Bottom-right corner
With tVA(4 + Offset)
.X = MiniMapTile(j).X * MiniMapSize + MiniMapSize
.Y = MiniMapTile(j).Y * MiniMapSize + MiniMapSize
.Color = MiniMapTile(j).Color
.Rhw = 1
End With
And then for every corner the .X and .Y needs to be changed. Can someone help me with how it should be changed?
Thanks!