[FilterScript] TXD Ingame Editor
#1

This is beta version for new futures of 0.3d RC5-3. As the recruitment of the texture name, I get the text in Zamaroht's awesome TD editor, I quickly concocted a mini-script to control texture. While he was not released an update, use.



Code:
/txd [id] [name] - textdraw's id and name of file:texture (ex: /txd 1 LD_CARD:cdback)
/mode [id] (0 - move, 1 - scale)
/tdpos - show X, Y, Weight, Height
Download:
http://pastebin.com/63u7aXzR
Reply
#2

How about /savetd ?

And save it in a specific file...

Good job! Gotta love the possibilities that are now available with this new update <3
Reply
#3

Quote:
Originally Posted by Zh3r0
View Post
How about /savetd ?
/tdpos and write to file manually This is temporary script, I thins Zamaroht gonna update his best editor.
Reply
#4

Nice
Reply
#5

Wow awesome ! .dff is next ?
Reply
#6

Nice work
Reply
#7

Cool Rep++
Reply
#8

awesome bro .. !! look good .
Reply
#9

how to scale it o.O
EDIT: I think my GM nocks the FS out, gotta try with area51
EDIT: nope, nothing happens. It's just hanging around
EDIT: Oh no! It's moving! Like a snail :O
EDIT: No, it doesn't move at all. Please help me out -.-
Reply
#10

That's cool, I'm going to attempt something like this now =] +rep
Reply
#11

Quote:
Originally Posted by Meta
View Post
how to scale it o.O
/mode 1 and left, right, up & down keys.

Quote:
Originally Posted by Meta
View Post
EDIT: No, it doesn't move at all. Please help me out -.-
/txd 666 LD_CARD:cdback
/mode 0

and thoose keys )
Reply
#12

Wait! I've missed something... what it was? This is entirely new revelation for me. Well ahh, must go find out what's new in sa-mp...

Good job by the way.
Reply
#13

I thought you made in game editor for textures wich are on objects, skins etc... You should use another name instead of TXD Ingame Editor.
Reply
#14

Topic Edited...
Reply
#15

Here's something I've spotted...

You use "Mode" here but in OnPlayerUpdate you use "Editing" it will never be called because variable "Editing" will never get value 1.
pawn Code:
if(strcmp(cmd, "/mode", true) == 0)
    {
        new tmp[30];
        tmp = strtok(cmdtext, idx);
        SetPVarInt(playerid, "Mode", strval(tmp));
        return 1;
    }
And here you use this:
pawn Code:
if(GetPVarInt(playerid, "Editing") == 0) return 1;
OnPlayerUpdate will never be called.

pawn Code:
if(GetPVarInt(playerid, "Mode") == 1) SetPVarFloat(playerid, "X", GetPVarFloat(playerid, "X") - 1.0);
        else if(GetPVarInt(playerid, "Mode") == 2) SetPVarFloat(playerid, "W", GetPVarFloat(playerid, "W") - 1.0);
Also change values 0 and 1 to 1 and 2.
Reply
#16

I don't get it.. Why is this better than Zamaroths? If your saying that it doesn't support font style 4, you can just change one line and you've updated it already..
Reply
#17

Quote:
Originally Posted by RobinOwnz
View Post
I don't get it.. Why is this better than Zamaroths? If your saying that it doesn't support font style 4, you can just change one line and you've updated it already..
Not really, you must add folder checks like checking if the name entered corresponds to any folder,because I noticed it crashes when a wrong folder is entered.
Also a check for the files. + a special dialog where edit the size, instead of clicking on "Textdraw box" and whatever.

Get me? O-o
Reply
#18

Amzing , i love it!
Reply
#19

AHHHH strcmp! it burns!

lol jk this is nice
Reply
#20

Quote:
Originally Posted by Zh3r0
View Post
Here's something I've spotted...
Add to cmd /txd line:
pawn Code:
SetPVarInt(playerid, "Editing", 1);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)