mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 11:43:04 +08:00
[saco] Implement/match cmdTimestamp
This commit is contained in:
+3
-3
@@ -12,12 +12,12 @@ typedef struct _CHAT_WINDOW_ENTRY
|
||||
|
||||
class CChatWindow // size: 25578
|
||||
{
|
||||
private:
|
||||
public:
|
||||
|
||||
int field_0;
|
||||
char _gap4[4];
|
||||
int field_8;
|
||||
char field_C;
|
||||
char m_bTimestamp;
|
||||
int field_D;
|
||||
char field_11[261];
|
||||
CDXUTDialog *m_pGameUI;
|
||||
@@ -39,7 +39,7 @@ private:
|
||||
D3DDISPLAYMODE field_63C2;
|
||||
DWORD field_63D2;
|
||||
int field_63D6;
|
||||
int field_63DA;
|
||||
int m_bRedraw;
|
||||
int field_63DE;
|
||||
int field_63E2;
|
||||
char _gap63E6[4];
|
||||
|
||||
+16
-1
@@ -68,7 +68,22 @@ void cmdNameTagStatus(PCHAR szCmd)
|
||||
|
||||
void cmdTimestamp(PCHAR szCmd)
|
||||
{
|
||||
// TODO: cmdTimestamp .text:10068730
|
||||
CChatWindow *pChatWindow = ::pChatWindow;
|
||||
if(pChatWindow)
|
||||
{
|
||||
if(pChatWindow->m_bTimestamp)
|
||||
{
|
||||
pChatWindow->m_bTimestamp = 0;
|
||||
pChatWindow->m_bRedraw = 1;
|
||||
if(pConfig) pConfig->SetIntVariable("timestamp", 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
pChatWindow->m_bTimestamp = 1;
|
||||
pChatWindow->m_bRedraw = 1;
|
||||
if(pConfig) pConfig->SetIntVariable("timestamp", 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void cmdAudioMsg(PCHAR szCmd)
|
||||
|
||||
Reference in New Issue
Block a user