Diablo inventory

BlitzMax Forums/BlitzMax Programming/Diablo inventory

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Ah great, your mouseover function worked fairly well, I've been stuck on it! Only problem is it's only picking the item up from the top left corner? I'm drawing the slots as you would tiles, so the slots for the inventory are drawn like this:
For Local x:Int = 0 Until m_slotColumns;
			For Local y:Int = 0 Until m_slotRows;
			
				If (m_selected) 
					If (x+m_slotX) >=0 And (x+m_slotX) <= (m_slotColumns) And (y+m_slotY) >=0 And (y+m_slotY) <= (m_slotRows) Then 
						DrawImage item_slot_image, (x*m_slotWidth)+MouseX(), (y*m_slotHeight)+MouseY();
					EndIf
				Else
					If (x+m_slotX) >=0 And (x+m_slotX) <= (m_slotColumns) And (y+m_slotY) >=0 And (y+m_slotY) <= (m_slotRows) Then 
						DrawImage item_slot_image, (x*m_slotWidth)+m_posX, (y*m_slotHeight)+m_posY;
					EndIf
				EndIf
				
			Next
		Next

and for the mouse over I'm doing it in a similar way, but it's only grabbing it in the very top left?
For Local x:Int = 0 Until m_slotColumns;
			For Local y:Int = 0 Until m_slotRows;
				
					If MouseOver(m_posX, m_posY, m_slotWidth, m_slotHeight) = True Then
					m_selected = True;

				EndIf
			Next
		Next