mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Implement/match CLocalPlayer::GetPlayerColorAsARGB()
This commit is contained in:
parent
b860b6a926
commit
becf308a1c
@ -99,3 +99,10 @@ DWORD CLocalPlayer::GetPlayerColorAsRGBA()
|
|||||||
|
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
|
|
||||||
|
DWORD CLocalPlayer::GetPlayerColorAsARGB()
|
||||||
|
{
|
||||||
|
return (TranslateColorCodeToRGBA(pNetGame->GetPlayerPool()->GetLocalPlayerID()) >> 8) | 0xFF000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------
|
||||||
|
|
||||||
|
@ -98,6 +98,7 @@ public:
|
|||||||
|
|
||||||
void SetPlayerColor(DWORD dwColor);
|
void SetPlayerColor(DWORD dwColor);
|
||||||
DWORD GetPlayerColorAsRGBA();
|
DWORD GetPlayerColorAsRGBA();
|
||||||
|
DWORD GetPlayerColorAsARGB();
|
||||||
BOOL IsSpectating() { return m_bIsSpectating; };
|
BOOL IsSpectating() { return m_bIsSpectating; };
|
||||||
|
|
||||||
void ReturnToClassSelection() { m_bWantsAnotherClass = TRUE; };
|
void ReturnToClassSelection() { m_bWantsAnotherClass = TRUE; };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user