Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Spell scrolling spellpic


Whitepinkbun
 Share

Recommended Posts

Ok so I have added another picbox and put the picspells pic box inside it and added a scroll bar and some programing works great i can now scroll through a much larger amount of spells…. problem is the icon draws further left from the mouse cursor the further i scroll.... picture shows what i mean.
Link to comment
Share on other sites

ok so ive managed to make it draw in the right spot but it still goes onto the hotbar in the wrong spot…. its handled in this code right...

        ' hotbar
        For i = 1 To MAX_HOTBAR
            With rec_pos
                .top = picHotbar.top
                .Left = picHotbar.Left - 0 + (HotbarOffsetX * (i - 1)) + (32 * (i - 1))
                .Right = .Left + 32
                .Bottom = picHotbar.top - 0 + 32
            End With

            If x >= rec_pos.Left And x <= rec_pos.Right Then
                If Y >= rec_pos.top And Y <= rec_pos.Bottom Then
                    SendHotbarChange 2, DragSpell, i
                    DragSpell = 0
                    picTempSpell.Visible = False
                    Exit Sub
                End If
            End If
        Next
    End If

why is the picspells position effecting it when the hotbar is what its getting the position from...
Link to comment
Share on other sites

Sigh now my combiled exe gets a error when i try to log in just says game has crashed and then crashes… yet when i run it in vb6 even with ctl+f5 it runs fine.... any ideas ; /

ok so it only crashes when i hover over the accept button for register/login screen....
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...