Coding

 Reply to this postStart new topic

How to add icon for text from hud.txd like in GTA IV

JuarezPL
post Dec 16 2012, 09:03 AM
Post #1


The New Guy!

Posts: 11
From: Poland
Joined: 27-January 12



Hello, Anybody know how to add icon for text from hud.txd like in IV ?
Go to the top of the page
 
+Quote Post
Deji
post Dec 16 2012, 02:15 PM
Post #2


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



For what text?


--------------------
Go to the top of the page
 
+Quote Post
JuarezPL
post Dec 16 2012, 02:41 PM
Post #3


The New Guy!

Posts: 11
From: Poland
Joined: 27-January 12



For normal opcodes text, show text box etc.
Go to the top of the page
 
+Quote Post
DK22
post Dec 18 2012, 10:21 PM
Post #4


Member

Posts: 197
From: Liberty City, Shoreside
Joined: 15-July 10



He means putting images into text

The func we need to edit:
CODE
0x718F00    ; int __cdecl CFont__ProcessTag(char *text, RwRGBA *textColor, char bSkip?, char *tag)

Also
CODE
0xC71A54     m_FontCurrentButtonId
Buttons
id tag       description
1 ~u~ ~U~   Up
2 ~d~ ~D~   Down
3 ~<~       Left
4 ~>~       Right
5 ~x~ ~X~   X
6 ~o~ ~O~   O
7 ~q~ ~Q~   Quad
8 ~t~ ~T~   Triangle
9 ~k~ ~K~
10 ~m~ ~M~
11 ~a~ ~A~
12 ~j~ ~J~
13 ~v~ ~V~
14 ~c~ ~C~

Also

Also, some unknown things
CODE
0x719840    ; int __cdecl CFont__Render?()
0x719B40    ; void __cdecl CFont__AddCharToPrint?(float x, float y, char *text, int a4, int a5)
0x718A10    ; void __cdecl CFont__PrintChar?(float x, float y, char a)

0xC71AA0     CurrentChar?     struc_C71AA0

00000000 struc_C71AA0    struc; (sizeof=0x30)
00000000 m_cASCIIcode    db ?
00000001 _pad1           db 3 dup(?)
00000004 m_fX            dd ?
00000008 m_fY            dd ?
0000000C m_fWidth        dd ?
00000010 m_fHeigth       dd ?
00000014 m_sColor        RwRGBA ?
00000018 field_18        dd ?
0000001C field_1C        dd ?
00000020 field_20        dd ?
00000024 field_24        dd ?
00000028 m_cIsButton     db ?
00000029 m_cFontCharsStyle db ?
0000002A m_cPropOn       db ?
0000002B field_2B        db ?
0000002C m_wFontTextureId dw ?
0000002E field_2E        db ?
0000002F _pad2           db ?
00000030 struc_C71AA0    ends


This post has been edited by DK22: Dec 18 2012, 10:55 PM
Go to the top of the page
 
+Quote Post
zevustiphout
post Apr 20 2013, 10:42 AM
Post #5


The New Guy!

Posts: 2
Joined: 19-April 13



Any new codings? smile.gif


--------------------
"With the new day comes new strength and new thoughts." value point distribution
Go to the top of the page
 
+Quote Post
Reply to this postStart new topic

3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members: