Quote:
Originally Posted by brokk
I redid the script. But the zoom and font dont seem to be changing?
PHP Code:
function onCreated(){
showText(1, this.x, this.y-3, $pref::graal::defaultfontname, "c", "" @(this.setnumber));
changeImgColors(1, 1, 1, 1, 1);
with (findImg(1)) {
textshadow = true;
shadowoffset = "-2 2";
shadowcolors = "0 0 0";
font = "showg";
style = "b";
layer = 12;
zoom = 2;
}
}
|
PHP Code:
function onCreated(){
showText(1, this.x, this.y-3, $pref::graal::defaultfontname, "c", this.setnumber);
changeImgColors(1, 1, 1, 1, 1);
with (findImg(1)) {
textshadow = true;
shadowoffset = "-2 2";
shadowcolors = "0 0 0";
//font = "showg";
style = "b";
layer = 12;
zoom = 2;
}
}
You setted the font 2 times. Once in the
showText() part (
$pref::graal::defaultfontname) and once in the
with(findimg(1)) part (font = "showg"). You have to choose which you want to use.
Also a small tip if you want to use RGB values for you colors: you can do divide the RGB value with 255 which will always make it <= 1. As example:
PHP Code:
changeImgColors(1, 255/255, 216/255, 0/255, 255/255);
changeImgColors(index, red, green, blue, alpha);
Which would make it yellow