Thread: Drag and Drop
View Single Post
  #4  
Old 08-03-2008, 07:56 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Thank you, Chris. That worked.

PHP Code:
function onTimeout() {
  if(
leftmousebuttonglobal) {
    
with(TradeInventoryFloater) {
      
this.mousescreenx;
      
this.mousescreeny;
    }
    
this.dragging true;
    
setTimer(0.05);
  }
  else {
    
temp.target TradeOfferScroll.globaltolocalcoord({mousescreenx,mousescreeny});
    if(
temp.target[0in  |0138|) { //TradeOfferScroll.width
      
if(temp.target[1in |0260|) { //TradeOfferScroll.height
        
echo("Added to offer");
      }
    }
    else {
      echo(
"Destroyed");
    }
    
this.dragging false;
    
System.destroyobject("TradeInventoryFloater");
    
setTimer(0);
  }

__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote