View Single Post
  #4  
Old 06-04-2012, 09:15 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by brokk View Post
I redid the script. But the zoom and font dont seem to be changing?

PHP Code:
function onCreated(){ 
 
showText(1this.xthis.y-3$pref::graal::defaultfontname"c""" @(this.setnumber));
 
changeImgColors(11111);
  
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(1this.xthis.y-3$pref::graal::defaultfontname"c"this.setnumber);
  
changeImgColors(11111);
  
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(1255/255216/2550/255255/255);
changeImgColors(indexredgreenbluealpha); 
Which would make it yellow
__________________
MEEP!
Reply With Quote