PDA

View Full Version : new GuiShowImgCtrl()


03-19-2008, 03:56 PM
playerlook = bool;


should show my player right, it doesnt!!!! :confused:

http://wiki.graal.net/index.php/Creation/Dev/Script/Client/TShowImg

found a fix though!!!

for (temp.j: i)
{
if (j.type() == 3)
{
for (temp.k = 0; temp.k < j[1]; temp.k++)
actor.(j[0][k]) = playero.(j)[k];
continue;
} else {
temp.data = playero.(j @ "img");
if (data != null)
actor.(j @ (j != "shield"? "img":"")) = data;
}
}

Chompy
03-19-2008, 04:20 PM
an example:


//#CLIENTSIDE
function onCreated() {
with(findimg(200)) {
x = playero.x;
y = playero.y;
playerlook = true;
ani = playero.ani;
dir = playero.dir;
layer = 2;
}

of a way playerlook can be used

Well, GuiShowImgCtrl should inheritance all variables from TShowImg though.. weird

03-19-2008, 04:22 PM
i am using it inside a gui [GuiShowImgCtrl]

zokemon
03-19-2008, 04:50 PM
GuiShowImgCtrl is actually a container for a TShowImg which can be accessed from the GuiShowImgCtrl.showimg object.

So try GuiShowImgCtrl.showimg.playerlook = true;

The only reason most of the other variables work without needing to type .showimg is because Stefan added shortcuts for simplicity's sake.

03-19-2008, 04:56 PM
[GuiShowImgCtrl].showimg.playerlook?

Inverness
03-19-2008, 08:08 PM
[GuiShowImgCtrl].showimg.playerlook?Yes basically. TheObject.showimg.playerlook = true;
http://wiki.graal.net/index.php/Creation/Dev/Script/Client/GuiShowImgCtrl