
30.12.2018, 23:55
|
|
Участник форума
Регистрация: 17.12.2017
Сообщений: 110
С нами:
4423953
Репутация:
68
|
|
хочу вывести текст в Present с имеено таким же шрифтом как в чате,
нашел вот такую структуру
C++:
Код:
struct
API
stChatInfo
{
int
pagesize
;
void
*
pUnk
;
int
iChatWindowMode
;
uint8_t
bTimestamps
;
uint32_t
iUnk
;
char
logFilePathChatLog
[
MAX_PATH
+
1
]
;
void
*
pGameUI
;
// CDXUTDialog
void
*
pEditBackground
;
// CDXUTEditBox
void
*
pDXUTScrollBar
;
D3DCOLOR clTextColor
;
D3DCOLOR clInfoColor
;
D3DCOLOR clDebugColor
;
DWORD dwChatboxOffset
;
struct
stChatEntry
chatEntry
[
100
]
;
stFontRenderer
*
m_pFontRenderer
;
ID3DXSprite
*
m_pChatTextSprite
;
ID3DXSprite
*
m_pSprite
;
IDirect3DDevice9
*
m_pD3DDevice
;
int
field_63B2
;
DWORD field_63B6
;
IDirect3DTexture9
*
m_pTexture
;
int
field_63BE
;
int
field_63C2
;
int
field_63C6
;
int
field_63CA
;
int
field_63CE
;
int
field_63D2
;
int
field_63D6
;
int
m_iRedraw
;
int
m_nPrevScrollBarPosition
;
int
m_iDistanceAfterTimestamp
;
int
field_63E6
;
// functions
void
AddChatMessage
(
DWORD Color
,
const
char
*
Text
,
.
.
.
)
;
void
AddChatMessage
(
ChatMessageType Type
,
const
char
*
szString
,
const
char
*
szPrefix
,
D3DCOLOR TextColor
,
D3DCOLOR PrefixColor
)
;
void
SetDisplayMode
(
int
mode
)
;
}
;
C++:
Код:
ppFont
->
Print
(
buf
,
-
1
,
500
,
500
)
;
ppFont
=
SF
->
getRender
(
)
->
CreateNewFont
(
"Evolventa"
,
12
,
FCR_BORDER
)
;
|
|
|