Hey all,
I just found something a little weird, and I thought I should ask here to make sure I'm doing everything correctly.
I'm trying to have a GUI that pops up when the user right clicks an inventory item. There are four buttons on the GUI, each of which does some inventory management action.
What I want to happen is for the buttons to display a border around a section of the background image when the mouse hovers over them. The button should have no image (image 0) at all other times. Naturally, I am trying to use the MouseOverGraphic property that all Buttons have.
However, I've noticed that the setting the NormalGraphic to 0 causes the button to act like it's half invisible - you can still click it and it still functions correctly, you just can't see it. You also can't see the MouseOverGraphic. I've tested specific values in game with the Display command; though the button images don't appear, the MouseOverGraphic reads as the one I set, and the button also reads as Visible. I'm just wondering if this is normal behavior, or if it's a bug.
In any case, I have a workaround - I just set the NormalGraphic to a single transparent pixel, and then set the MouseOverGraphic as normal. I'd still like to figure out this weird problem, though.
I just found something a little weird, and I thought I should ask here to make sure I'm doing everything correctly.
I'm trying to have a GUI that pops up when the user right clicks an inventory item. There are four buttons on the GUI, each of which does some inventory management action.
What I want to happen is for the buttons to display a border around a section of the background image when the mouse hovers over them. The button should have no image (image 0) at all other times. Naturally, I am trying to use the MouseOverGraphic property that all Buttons have.
However, I've noticed that the setting the NormalGraphic to 0 causes the button to act like it's half invisible - you can still click it and it still functions correctly, you just can't see it. You also can't see the MouseOverGraphic. I've tested specific values in game with the Display command; though the button images don't appear, the MouseOverGraphic reads as the one I set, and the button also reads as Visible. I'm just wondering if this is normal behavior, or if it's a bug.
In any case, I have a workaround - I just set the NormalGraphic to a single transparent pixel, and then set the MouseOverGraphic as normal. I'd still like to figure out this weird problem, though.