Mouseover Border around Inventory Item

Started by Barbarian, Sun 20/11/2005 21:11:06

Previous topic - Next topic

Barbarian

Okay, I hope this is the right place to put this question.
And before someone shouts "RTFM" or somesuch, yes I did my best to research the manual and searching the AGS forums for help, but I can't seem to find a way to fix my particular problem.

So, the problem is regarding the custom GUI inventory window that comes along with the newer AGS versions (I'm using the 2.71 RC 3 version currently). I like the look and layout of the new custom GUI that comes along with the new version and it makes it easier to play around with getting it to look how I want, however there was a really nice feature that appeared in the old "default" inventory GUI window, in which when you hovered or "mouse over" an item in your inventory, that it would make a "yellow border" appear around the item (Here's a screenshot of the old default style inventory GUI in action):

Ã,  Ã, If you notice, where the pointer is hovering over the "lighter" item in my inventory window, there's a yellow border that appears around it.

Ã,  Ã, Anyways, the problem I seem to be having is that for the Custom Inventory GUI, that nice mousing-over an item border thingy is not appearing. So my question is, would there be a way for me to active the mouse-over item border into the Custom inventory GUI?Ã,  Ã, I'm probably missing somthing obvious, but I've been trying to resolve this little nagging problem for a long time now without success.Ã,  :PÃ, 

Thanks in advance.
Conan: "To crush your enemies, see them driven before you, and to hear the lamentation of the women!"
Mongol General: "That is good."

Blade of Rage: www.BladeOfRage.com

Ashen

AFAIK, there's no built-in way to get that selection box on a custom Inventory GUI.

However, Scorpiorus made this template a while ago, that adds that function. The code will probably need a little updating, but still seems to work.

You could also try changing the item's image to one with the box drawn onto it, using InventoryItem.GetAtScreenXY(mouse.x, mouse.y) - but the template is probably best.
I know what you're thinking ... Don't think that.

Barbarian

Thanks for the info.
   I'll take at look at that template and see if I can make use of it.  Your other idea,  InventoryItem.GetAtScreenXY(mouse.x, mouse.y),  seems it might be a bit of a hassle to get it all working properly, and I admit I'm not a strong scripter, though still I'm pretty good at figuring things out and how to make it work.
   I don't absolutely need that "border" thingy, but it would be a nice touch to have.
   Best regards.
Conan: "To crush your enemies, see them driven before you, and to hear the lamentation of the women!"
Mongol General: "That is good."

Blade of Rage: www.BladeOfRage.com

SMF spam blocked by CleanTalk