Quote:
Originally Posted by ffcmike
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(201, this.x + 1.5 + this.hpoffx, this.y + 1 + this.hpoffy - temp.zoom, "", "cb", temp.h); temp.txt.zoom = temp.zoom; temp.txt.textshadow = true; temp.txt.shadowcolor = {0, 0, 150, 1}; temp.txt.shadowoffset = {1, 1}; 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.x + 1.5, this.y + 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.5, 2};
}