View Single Post
  #1270  
Old 10-11-2011, 09:15 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by ffcmike View Post
It seems there's a problem with text shadow with the latest client, for instance what produces a dark blue shadow in order to emulate default HP display in V5 is producing fully white text.

V5:


V6:


Here's what I'm doing within a class for level NPCs which also produces the same problem:

PHP Code:
temp.zoom $pref::graal::defaultfontsize/24;
temp.txt this.showtext(201this.1.5 this.hpoffxthis.this.hpoffy temp.zoom"""cb"temp.h);
temp.txt.zoom temp.zoom;
temp.txt.textshadow true;
temp.txt.shadowcolor = {001501};
temp.txt.shadowoffset = {11};
temp.txt.layer 3;
temp.txt.attachtoowner true
While I've fixed this for my custom HP display, I think this may also be happening with default HP display where you set this.hearts on a NPC.

I also just realised rotationcenter works by using a specific x + y rather than an offset, like:

PHP Code:
function onCreated(){
  
this.useowncenter true;
  
this.rotationcenter = {this.1.5this.2};

There may be a reason for this I'm unaware of but it made sense to me at first to do as:

PHP Code:
function onCreated(){
  
this.useowncenter true;
  
this.rotationcenter = {1.52};


Last edited by ffcmike; 10-11-2011 at 09:50 PM..
Reply With Quote