Thread: MouseOver?
View Single Post
  #1  
Old 10-27-2009, 05:05 AM
Imperialistic Imperialistic is offline
graal player lord
Imperialistic's Avatar
Join Date: Apr 2007
Location: Florida
Posts: 1,094
Imperialistic is a jewel in the roughImperialistic is a jewel in the rough
MouseOver?

Chris (aka cbk1994) helped me on a custom nickname script, I was just wondering how do I go about making it hide, untill a players mouse is over their character then it will show?

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
setTimer(0.05);
}

function 
onTimeout() {
  
hideimgs(2001000); // This will need to be re-optimized as hiding then redrawing every frame is bad 
  
drawNicknames();
  
setTimer(0.05);
  
enablefeatures(allfeatures 0x200);
}

function 
drawNicknames() {
  
// Loop through Players
  
for (temp.pplayers) {
    
// Draw Text under Player
    
with (findimg(200 temp.p.id 2)) {
      
text temp.p.nick;
      
temp.p.1.5;
      
temp.p.3.2;
      
style "bc";
      
font $pref::graal::defaultfontname;
      
      
red 0;
      
green 1;
      
blue 0;
      
layer 0;
    }
    
with (findimg(201 temp.p.id 2)) {
      
text "[" temp.p.account "]";
      
temp.p.1.5;
      
temp.p.4.5;
      
style "c";
      
font $pref::graal::defaultfontname;
      
      
zoom 0.7;
      
      
red 0;
      
green 1;
      
blue 0;
      
layer 0;
    }
  }

__________________
" It's been swell, but the swelling's gone down. "
Reply With Quote