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(200, 1000); // 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.p: players) {
// Draw Text under Player
with (findimg(200 + temp.p.id * 2)) {
text = temp.p.nick;
x = temp.p.x + 1.5;
y = temp.p.y + 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 @ "]";
x = temp.p.x + 1.5;
y = temp.p.y + 4.5;
style = "c";
font = $pref::graal::defaultfontname;
zoom = 0.7;
red = 0;
green = 1;
blue = 0;
layer = 0;
}
}
}