View Single Post
  #1  
Old 08-11-2011, 11:38 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
GuiShowImgCtrl MouseDown

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") {
    
1300;
    
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?
__________________
Reply With Quote