Whitepinkbun Posted April 4, 2012 Author Share Posted April 4, 2012 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 More sharing options...
Whitepinkbun Posted April 4, 2012 Author Share Posted April 4, 2012 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 Ifwhy is the picspells position effecting it when the hotbar is what its getting the position from... Link to comment Share on other sites More sharing options...
sirsk8aton Posted April 4, 2012 Share Posted April 4, 2012 Have you edited the hotbar in any way? Link to comment Share on other sites More sharing options...
Whitepinkbun Posted April 4, 2012 Author Share Posted April 4, 2012 Nevermind resolved it myself. Link to comment Share on other sites More sharing options...
Whitepinkbun Posted April 4, 2012 Author Share Posted April 4, 2012 no i just had to multiply the value of picspells.left by -1 as it was negative when i scrolled across all goodnow thanks anyways :) Link to comment Share on other sites More sharing options...
Whitepinkbun Posted April 4, 2012 Author Share Posted April 4, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now