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 04-05-2011, 12:05 AM
MrOmega MrOmega is offline
One More Time
MrOmega's Avatar
Join Date: Aug 2010
Location: TN, USA
Posts: 631
MrOmega is an unknown quantity at this point
Send a message via AIM to MrOmega Send a message via MSN to MrOmega Send a message via Yahoo to MrOmega
gui and catchevent question

In my scrolls I use a textctrl and set it's modal to false so I can get the event from just the scroll behind. textctrl won't return the events when I test it (modal is false) but still does block the scrollctrl preventing me from catching onmousedown

PHP Code:
//Snippet
        
new GuiScrollCtrl"Keyboard_" temp."_" temp.b)
        {

          
useOwnProfile  true;
          
profile        "GuiScrollProfile";
          
profile.border 4;
          
profile.bitmap "guiglife_keyscroll.png";
          
position       = {( temp.== && temp.0)? ( 24 44 temp.b): ( temp.== && temp.0)? ( 40 44 temp.b): ( temp.== && temp.0)? ( 48 44 temp.b): ( 44 temp.b), 44 temp.a};
          
extent         = {( temp.key == ">>")? 64: ( temp.key == "<<")? 64: ( temp.key == "Backspace")? 128: ( temp.key in "Upper""Lower"})? 80:( temp.key == "Enter")? 156:( temp.key == "Shift")? 88:( temp.key == "Space")? 1484040};
          
vscrollBar     hscrollBar "alwaysOff";
          
thiso.catchEventthis"OnMouseDown""KeyboardDown");
        
          new 
GuiTextCtrl"Keyboard_" temp."_" temp."_Text")
          {
          
            
useownProfile        true;
            
position             = { -2, -14};
            
width                = ( "Keyboard_" temp."_" temp.b).width
            
text                 temp.key;
            
profile.fontColor    = { 2552550205};
            
profile.fontSize     24;
            
profile.fontStyle    "cb";
            
profile.fontType     "Arial";
            
profile.shadowOffset = { 22};
            
profile.shadowColor  = { 000};
            
profile.align        "center";
            
profile.textShadow   true;
            
profile.modal        profile.autoSizeWidth false;
            
useOwnProfile        true;
            
          }
        } 
__________________
Time is the fire in which we burn...
Up, Up, Down, Down, Left, Right, Left, Right, B, A, Select, Start! Now I got 99 LIVES!!!
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 05:45 PM.


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