Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:45 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.