mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-07-18 17:38:12 +08:00
[saco] Move hud/radar color functions to hudcolor.cpp/.h
This commit is contained in:
@ -11,6 +11,8 @@
|
||||
#include "scripting.h"
|
||||
#include "menu.h"
|
||||
|
||||
#include "hudcolor.h"
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
class CGame // size: 322
|
||||
|
1041
saco/game/hudcolor.cpp
Normal file
1041
saco/game/hudcolor.cpp
Normal file
File diff suppressed because it is too large
Load Diff
10
saco/game/hudcolor.h
Normal file
10
saco/game/hudcolor.h
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void __stdcall SetRadarColor(int nIndex,DWORD dwColor);
|
||||
DWORD __stdcall TranslateColorCodeToRGBA(int iCode);
|
||||
void GameResetRadarColors();
|
||||
|
||||
//-----------------------------------------------------------
|
1034
saco/game/util.cpp
1034
saco/game/util.cpp
File diff suppressed because it is too large
Load Diff
@ -12,8 +12,6 @@ float FloatDifference(float f1, float f2);
|
||||
float FloatOffset(float f1, float f2);
|
||||
float NormalizeAngle(float fAngle);
|
||||
|
||||
void __stdcall SetRadarColor(int nIndex,DWORD dwColor);
|
||||
|
||||
void __stdcall WorldRemoveEntity(DWORD *dwEnt);
|
||||
void __stdcall WorldAddEntity(DWORD *dwEnt);
|
||||
|
||||
@ -27,7 +25,6 @@ DWORD __stdcall GamePool_Vehicle_GetIndex(VEHICLE_TYPE *pVehicle);
|
||||
ENTITY_TYPE * __stdcall GamePool_Object_GetAt(int iID);
|
||||
PED_TYPE * __stdcall GamePool_FindPlayerPed();
|
||||
|
||||
DWORD __stdcall TranslateColorCodeToRGBA(int iCode);
|
||||
BOOL __stdcall GameIsEntityOnScreen(DWORD * pdwEnt);
|
||||
void __stdcall InitPlayerPedPtrRecords();
|
||||
void __stdcall SetPlayerPedPtrRecord(BYTE bytePlayer, DWORD dwPedPtr);
|
||||
@ -42,8 +39,6 @@ float __stdcall SquaredDistanceBetweenPoints(VECTOR *vec1, VECTOR *vec2);
|
||||
void __stdcall _VectorNormalise(VECTOR *vec);
|
||||
DWORD __stdcall CRC32FromUpcaseString(char *szString);
|
||||
|
||||
void GameResetRadarColors();
|
||||
|
||||
float DegToRad(float fDegrees);
|
||||
float InvDegToRad(float fDegrees);
|
||||
|
||||
|
@ -192,6 +192,12 @@
|
||||
<File
|
||||
RelativePath=".\game\hooks.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\game\hudcolor.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\game\hudcolor.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\game\keystuff.cpp">
|
||||
<FileConfiguration
|
||||
|
Reference in New Issue
Block a user