Make UColor constant

This commit is contained in:
smallmodel 2025-01-07 00:40:11 +01:00
parent d6db83805d
commit 4c06dd7107
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
2 changed files with 26 additions and 26 deletions

View file

@ -23,19 +23,19 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "ucolor.h"
#include <cmath>
UColor UClear( 0, 0, 0, 0 );
UColor UWhite( 1, 1, 1, 1 );
UColor UBlack( 0, 0, 0, 1 );
UColor ULightGrey( 0.875, 0.875, 0.875, 1.0 );
UColor UGrey( 0.75, 0.75, 0.75, 1.0 );
UColor UDarkGrey( 0.5, 0.5, 0.5, 1.0 );
UColor ULightRed( 1.0, 0.5, 0.5, 1.0 );
UColor URed( 1.0, 0.0, 0.0, 1.0 );
UColor UGreen( 0.0, 1.0, 0.0, 1.0 );
UColor ULightGreen( 0.5, 1.0, 0.5, 1.0 );
UColor UBlue( 0.0, 0.0, 1.0, 1.0 );
UColor UYellow( 1.0, 1.0, 0.0, 1.0 );
UColor UHudColor( 0.7f, 0.6f, 0.05f, 1.0f );
const UColor UClear( 0, 0, 0, 0 );
const UColor UWhite( 1, 1, 1, 1 );
const UColor UBlack( 0, 0, 0, 1 );
const UColor ULightGrey( 0.875, 0.875, 0.875, 1.0 );
const UColor UGrey( 0.75, 0.75, 0.75, 1.0 );
const UColor UDarkGrey( 0.5, 0.5, 0.5, 1.0 );
const UColor ULightRed( 1.0, 0.5, 0.5, 1.0 );
const UColor URed( 1.0, 0.0, 0.0, 1.0 );
const UColor UGreen( 0.0, 1.0, 0.0, 1.0 );
const UColor ULightGreen( 0.5, 1.0, 0.5, 1.0 );
const UColor UBlue( 0.0, 0.0, 1.0, 1.0 );
const UColor UYellow( 1.0, 1.0, 0.0, 1.0 );
const UColor UHudColor( 0.7f, 0.6f, 0.05f, 1.0f );
UColor::UColor
(

View file

@ -72,16 +72,16 @@ public:
void CreateSolidBorder( const UColor& color, colorType_t type );
};
extern UColor UClear;
extern UColor UWhite;
extern UColor UBlack;
extern UColor ULightGrey;
extern UColor UGrey;
extern UColor UDarkGrey;
extern UColor ULightRed;
extern UColor URed;
extern UColor UGreen;
extern UColor ULightGreen;
extern UColor UBlue;
extern UColor UYellow;
extern UColor UHudColor;
extern const UColor UClear;
extern const UColor UWhite;
extern const UColor UBlack;
extern const UColor ULightGrey;
extern const UColor UGrey;
extern const UColor UDarkGrey;
extern const UColor ULightRed;
extern const UColor URed;
extern const UColor UGreen;
extern const UColor ULightGreen;
extern const UColor UBlue;
extern const UColor UYellow;
extern const UColor UHudColor;