Help Attach picture to screen

Status
Not open for further replies.

T3KTONIT

Well-known member
Joined
Sep 2, 2013
Messages
308
Reaction score
5
????????????????????????????????????????????????????????????????????????????
those are called textures...

and yes you can attach it using c++ or cleo
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,488
Reaction score
231
Location
( ͡° ͜ʖ ͡°)
There are many ways to do it...

CLEO:
0B73: render draw_texture 1@ pos 2@ 3@ size 4@ 5@ rotation 6@ color 7@
or without sampfuncs:
074B: draw_texture 20 position 428@ 429@ scale 430@ 431@ angle $TEMPVAR_ANGLE color_RGBA 220 220 220 404@
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
Opcode.eXe link said:
There are many ways to do it...

CLEO:
0B73: render draw_texture 1@ pos 2@ 3@ size 4@ 5@ rotation 6@ color 7@
or without sampfuncs:
074B: draw_texture 20 position 428@ 429@ scale 430@ 431@ angle $TEMPVAR_ANGLE color_RGBA 220 220 220 404@
Thanks  :urtheman:
 

Hidend

Expert
Joined
Mar 4, 2013
Messages
653
Reaction score
49
Opcode.eXe link said:
There are many ways to do it...

CLEO:
0B73: render draw_texture 1@ pos 2@ 3@ size 4@ 5@ rotation 6@ color 7@
or without sampfuncs:
074B: draw_texture 20 position 428@ 429@ scale 430@ 431@ angle $TEMPVAR_ANGLE color_RGBA 220 220 220 404@
You can explaint better how to attach a custom image to screen plz, put example plz
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
Add a 'test.png' image to your CLEO folder.
Code:
{$CLEO}
0000:
repeat
wait 40
until 0AFA:

while 8B71: render 0@ = load_texture_from_file "CLEO\test.png"
wait 0
end


while true
wait 0
    03F0: 1
    0B73: render draw_texture 0@ pos 400 400 size 50 50 rotation 0.0 color 0xFFFFFFFF
end
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
springfield link said:
Add a 'test.png' image to your CLEO folder.
Code:
{$CLEO}
0000:
repeat
wait 40
until 0AFA:

while 8B71: render 0@ = load_texture_from_file "CLEO\test.png"
wait 0
end


while true
wait 0
    03F0: 1
    0B73: render draw_texture 0@ pos 400 400 size 50 50 rotation 0.0 color 0xFFFFFFFF
end
Thanks  :urtheman:
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
Somebody have program to find the screen positions??  :me_gusta:

User has been warned for this Post.
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
Code:
{$CLEO}

0662: "TH3RM4L" 
03F0: enable_text_draw 1
1@ = 1.0
2@ = 1.0
3@ = 1.0
4@ = 1.0

:MAIN
wait 0
0AA8: call_function_method 0x6A0050 0xC1B340 num_params 1 pop 0 'CRED200' 5@
0AA5: call 0x718600 2 pop 2 5@ "+"
0340: set_text_draw_RGBA 255 255 255 255                    
033F: set_text_draw_letter_size 3@ 4@
081C: draw_text_outline 1 RGBA 0 0 0 255
033E: set_draw_text_position 1@ 2@ GXT 'CRED200'  
printf "X: ~G~%0.1f ~W~Y: ~B~%0.1f~N~~W~S1: ~Y~%0.1f ~W~S2: ~R~%0.1f" 5000 1@ 2@ 3@ 4@

:SMALLER2 
if
0AB0: 97
jf @UP
000F: 4@ -= 0.2
goto @MAIN

:UP
if
0AB0: 98
jf @SMALLER1
000B: 2@ += 1.0
goto @MAIN

:SMALLER1 
if
0AB0: 99
jf @LEFT
000F: 3@ -= 0.2
goto @MAIN

:LEFT
if
0AB0: 100
jf @RIGHT
000F: 1@ -= 1.0
goto @MAIN

:RIGHT 
if
0AB0: 102
jf @BIGGER2
000B: 1@ += 1.0
goto @MAIN

:BIGGER2
if
0AB0: 103
jf [member=5997]Down[/member]
000B: 4@ += 0.2
goto @MAIN

:DOWN
if
0AB0: 104
jf @BIGGER1
000F: 2@ -= 1.0
goto @MAIN

:BIGGER1
if
0AB0: 105
jf @MAIN
000B: 3@ += 0.2
goto @MAIN
numpad;
2 = down
6 = right
4 = left
8 = up

1, 3, 7 and 9 are for the text's size.
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
TH3RM4L link said:
Code:
{$CLEO}

0662: "TH3RM4L" 
03F0: enable_text_draw 1
1@ = 1.0
2@ = 1.0
3@ = 1.0
4@ = 1.0

:MAIN
wait 0
0AA8: call_function_method 0x6A0050 0xC1B340 num_params 1 pop 0 'CRED200' 5@
0AA5: call 0x718600 2 pop 2 5@ "+"
0340: set_text_draw_RGBA 255 255 255 255                    
033F: set_text_draw_letter_size 3@ 4@
081C: draw_text_outline 1 RGBA 0 0 0 255
033E: set_draw_text_position 1@ 2@ GXT 'CRED200'  
printf "X: ~G~%0.1f ~W~Y: ~B~%0.1f~N~~W~S1: ~Y~%0.1f ~W~S2: ~R~%0.1f" 5000 1@ 2@ 3@ 4@

:SMALLER2 
if
0AB0: 97
jf @UP
000F: 4@ -= 0.2
goto @MAIN

:UP
if
0AB0: 98
jf @SMALLER1
000B: 2@ += 1.0
goto @MAIN

:SMALLER1 
if
0AB0: 99
jf @LEFT
000F: 3@ -= 0.2
goto @MAIN

:LEFT
if
0AB0: 100
jf @RIGHT
000F: 1@ -= 1.0
goto @MAIN

:RIGHT 
if
0AB0: 102
jf @BIGGER2
000B: 1@ += 1.0
goto @MAIN

:BIGGER2
if
0AB0: 103
jf [member=5997]Down[/member]
000B: 4@ += 0.2
goto @MAIN

:DOWN
if
0AB0: 104
jf @BIGGER1
000F: 2@ -= 1.0
goto @MAIN

:BIGGER1
if
0AB0: 105
jf @MAIN
000B: 3@ += 0.2
goto @MAIN
numpad;
2 = down
6 = right
4 = left
8 = up

1, 3, 7 and 9 are for the text's size.
Thanks i will use this  :not_bad:
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
springfield link said:
Add a 'test.png' image to your CLEO folder.
Code:
{$CLEO}
0000:
repeat
wait 40
until 0AFA:

while 8B71: render 0@ = load_texture_from_file "CLEO\test.png"
wait 0
end


while true
wait 0
    03F0: 1
    0B73: render draw_texture 0@ pos 400 400 size 50 50 rotation 0.0 color 0xFFFFFFFF
end
I can load picture from site??  :forever_hurra:

User has been warned for this Post.
 
Status
Not open for further replies.
Top