Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-26-2008, 04:32 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
GUI Problem

PHP Code:
function onTimeout() {
  for (
0<= this.itemidi++) {
    
temp.itemx InventoryControl.+ ("InventoryItem_" i).x;
    
temp.itemy InventoryControl.+ ("InventoryItem_" i).y;
    
    if (
mousescreenx in |temp.itemxtemp.itemx 32| && mousescreeny in |temp.itemytemp.itemy 32|) {
      new 
GuiTextCtrl("ItemText") {
          
        
profile GuiBlueTextProfile;
            
            
/*useownprofile = true;
            profile.fontcolor = {255, 255, 255};
            profile.fillcolor = {0, 0, 0};
            profile.opaque = true;*/
            
        
mousescreenx;
        
mousescreeny;
        
height 10;
            
        
text "Item";            
      }
    }
    
    else {
      if (
ItemText != NULLItemText.destroy();
    }
    
  }
  
  
setTimer(0.05);

This is a strange problem. Instead of the mouse pointer being detected over the items, it's being detected in the top right of the GUI Control. However, when using echo()s and what not, it detects where the mouse is just fine.

Very strange indeed.
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 04:46 PM.


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