17.11.2016, 19:17
Hi,
I don't know if it's possible (I guess not), but I'm gonna ask anyways.
When you have made a menu with selectable textdraws (like MSelect include), is it possible to detect on which textdraw the mouse-pointer is hovering?
This could be useful when you have a graphical inventory and when hovering over an item, you could display some extra textdraws on the side to display additional information about the item like a description.
Many games have such features (MMORPG's for example display a tooltip with a description of the item and it's stats in case of a weapon or armor piece).
Is this possible with SAMP?
In case this is not the case, maybe it's possible to highlight the chosen textdraw by changing it's background color for example and remembering which item has been selected once.
Then display the additional textdraws with extra info.
When the item is clicked again while being highlighted (this happens after 2 clicks in a row on the same item), then the item is chosen and processed.
So to select an item from your inventory, you need to double-click it and when you only want additional info about items in your inventory, you only need to click it once.
I guess this could be possible but I doubt about the first one (display extra info just by hovering over an item).
What do you guys think about this?
I don't know if it's possible (I guess not), but I'm gonna ask anyways.
When you have made a menu with selectable textdraws (like MSelect include), is it possible to detect on which textdraw the mouse-pointer is hovering?
This could be useful when you have a graphical inventory and when hovering over an item, you could display some extra textdraws on the side to display additional information about the item like a description.
Many games have such features (MMORPG's for example display a tooltip with a description of the item and it's stats in case of a weapon or armor piece).
Is this possible with SAMP?
In case this is not the case, maybe it's possible to highlight the chosen textdraw by changing it's background color for example and remembering which item has been selected once.
Then display the additional textdraws with extra info.
When the item is clicked again while being highlighted (this happens after 2 clicks in a row on the same item), then the item is chosen and processed.
So to select an item from your inventory, you need to double-click it and when you only want additional info about items in your inventory, you only need to click it once.
I guess this could be possible but I doubt about the first one (display extra info just by hovering over an item).
What do you guys think about this?