CLEO Help How load a txd file and Display it ?

CLEO related
Status
Not open for further replies.

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
I just wondering how to load a .txd and display it because i've seen that there's a part that load a txd and display it in some CLEOs , i don't remember well , i've found some opcodes like this.
Code:
0390: load_txd_dictionary 'LD_BEAT'
0B71: render 2@ = load_texture_from_file 1@
038F: load_texture "DOWN" as 1

Thanks in advance.  :somuchwin:
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
Code:
if 0B71: render 0@ = load_texture_from_file "CLEO\pic.png"
then 0B73: render draw_texture 0@ screenXY 0.0 0.0 size 100 200 rotation 0.0 color 0xARGB
end

Code:
0390: load_txd_dictionary 'HUD'
038F: load_texture "siteM16" as 1 
03E3: set_texture_to_be_drawn_antialiased 1 //makes it look nicer
038D: draw_texture 1 position _X _Y size 5.0 5.0 RGBA 255 255 255 255 

Also, don't forget 03F0: enable_text_draw 1
 
Status
Not open for further replies.
Top