Hello Guys!
I am new in this Forum and i have a Question about GTA IV creating a Mod Menu.
I'am using Visual Studio 2013 to create a Mod Menu and i almost finished the Trainer but i have 1 big Problem!
When i try to add the Menu Items the Items overlapps itself :/
Here is an Image: https://imgur.com/a/4RMVshs (on imgur)
You see?
It schould be like that:
I am new in this Forum and i have a Question about GTA IV creating a Mod Menu.
I'am using Visual Studio 2013 to create a Mod Menu and i almost finished the Trainer but i have 1 big Problem!
When i try to add the Menu Items the Items overlapps itself :/
Here is an Image: https://imgur.com/a/4RMVshs (on imgur)
You see?
It schould be like that:
- lol0
- lol1
- lol2
- lol3
- lol4
- lol5
Code:
Private avatext(5) As String
Public Sub New()
avatext(0) = "lol0"
avatext(1) = "lol1"
avatext(2) = "lol2"
avatext(3) = "lol3"
avatext(4) = "lol4"
avatext(5) = "lol5"
End Sub
Private Sub GTAIV_TEST_MENU2_PerFrameDrawing(ByVal sender As Object, ByVal e As GTA.GraphicsEventArgs) Handles MyBase.PerFrameDrawing
Dim num As Integer = 0
Dim topItem As UShort = PtopItem
If menuOpen Then
'While CInt(topItem) <= CInt(PtopItem) + 30 AndAlso CInt(topItem) < Me.avatext.Length
' e.Graphics.DrawText(avatext(CInt(topItem)), 20.0F, 30.0F, If(CInt(PtopItem) = CInt(Me.selectedItem), Me.selectedItemColor, Me.defaultItemColor))
' topItem += 1
'End While
For Each Element As String In avatext
e.Graphics.DrawText(Element, 10, 10 + 30, If(CInt(topItem) = CInt(Me.selectedItem), Me.selectedItemColor, Me.defaultItemColor))
Next
End If
End Sub