eldiegotee

Untitled

Oct 21st, 2022
668
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Sub MiniMap_Render()
  2.  
  3.     If DirectDevice.TestCooperativeLevel <> D3D_OK Then Exit Sub
  4.  
  5.     X = MiniMap.X
  6.     Y = MiniMap.Y
  7.  
  8.     With MiniMap
  9.  
  10.         If Not .Texture Is Nothing Then
  11.        
  12.             .Texture.GetLevelDesc 0, SRDesc
  13.  
  14.             SrcWidth = 100    'd3dtextures.texwidth
  15.            Width = 100    'd3dtextures.texwidth
  16.            Height = 100    'd3dtextures.texheight
  17.            SrcHeight = 100    'd3dtextures.texheight
  18.  
  19.             'Set the texture
  20.            Call SpriteBatch.SetTexture(.Texture)
  21.             Call SpriteBatch.Draw(X, Y, Width, Height, .Color(), SrcWidth / TexWidth + 0.001, SrcHeight / TexHeight + 0.001, (SrcWidth + Width + 1) / TexWidth, (SrcHeight + Height) / TexHeight)
  22.            
  23.             'Correccion del minimap, para que borre el puntito del usuario, se cambio el color del punto ahora es rojo :$
  24.            If AlphaMiniMap > 50 Then
  25.                 Call Draw_FillBox(MiniMap.X + UserPos.X, MiniMap.Y + UserPos.Y, 3, 3, MMC_Char)
  26.             End If
  27.  
  28.             Call MiniMap_ColorSet
  29.            
  30.         End If
  31.  
  32.     End With
  33.  
  34. End Sub
Advertisement
Add Comment
Please, Sign In to add comment