I was wondering how I would detect if I have clicked the image in the GuiShowImgCtrl so that I can use it as a button.
PHP Code:
//#CLIENTSIDE
function onCreated() {
new GuiShowImgCtrl("Control_One") {
x = 1300;
y = 50;
width = 35;
height = 35;
image = "bubble_icon.png";
hint = "This is a button.";
}
}
I want to be able to click the image, and make something happen, but I don't know how to do that. Can anybody help out? Is it matter of checking if the mouse is over the image and then using onMouseDown?