Fixing all other macros by adding RL_ prefix.

This commit is contained in:
Marco Lizza 2018-12-20 16:15:55 +01:00
commit b6cb51e3e8

View file

@ -334,7 +334,7 @@ void UpdateKitchenScreen(void)
// Gameplay Screen Draw logic
void DrawKitchenScreen(void)
{
DrawTexture(background, 0, 0, WHITE);
DrawTexture(background, 0, 0, RL_WHITE);
// Draw monsters
DrawMonster(closet, 0);
@ -342,43 +342,43 @@ void DrawKitchenScreen(void)
DrawMonster(window, 0);
// Draw door
if (doorRight.selected) DrawTextureRec(doors, doorRight.frameRec, doorRight.position, GREEN);
else DrawTextureRec(doors, doorRight.frameRec, doorRight.position, WHITE);
if (doorRight.selected) DrawTextureRec(doors, doorRight.frameRec, doorRight.position, RL_GREEN);
else DrawTextureRec(doors, doorRight.frameRec, doorRight.position, RL_WHITE);
if (doorLeft.selected) DrawTextureRec(doors, doorLeft.frameRec, doorLeft.position, GREEN);
else DrawTextureRec(doors, doorLeft.frameRec, doorLeft.position, WHITE);
if (doorLeft.selected) DrawTextureRec(doors, doorLeft.frameRec, doorLeft.position, RL_GREEN);
else DrawTextureRec(doors, doorLeft.frameRec, doorLeft.position, RL_WHITE);
// Draw messsages
if (msgState < 2) DrawRectangle(0, 40, GetScreenWidth(), 200, Fade(LIGHTGRAY, 0.5f));
else if (msgState == 2) DrawRectangle(0, 80, GetScreenWidth(), 100, Fade(LIGHTGRAY, 0.5f));
if (msgState < 2) DrawRectangle(0, 40, GetScreenWidth(), 200, Fade(RL_LIGHTGRAY, 0.5f));
else if (msgState == 2) DrawRectangle(0, 80, GetScreenWidth(), 100, Fade(RL_LIGHTGRAY, 0.5f));
if (msgState == 0)
{
DrawTextEx(font, msgBuffer, (Vector2){ msgPosX, 80 }, font.baseSize, 2, WHITE);
DrawTextEx(font, msgBuffer, (Vector2){ msgPosX, 80 }, font.baseSize, 2, RL_WHITE);
}
else if (msgState == 1)
{
DrawTextEx(font, message, (Vector2){ msgPosX, 80 }, font.baseSize, 2, WHITE);
DrawTextEx(font, message, (Vector2){ msgPosX, 80 }, font.baseSize, 2, RL_WHITE);
if ((msgCounter/30)%2) DrawText("PRESS ENTER or CLICK", GetScreenWidth() - 280, 200, 20, BLACK);
if ((msgCounter/30)%2) DrawText("PRESS ENTER or CLICK", GetScreenWidth() - 280, 200, 20, RL_BLACK);
}
else if (msgState == 2)
{
if ((msgCounter/30)%2)
{
DrawTextEx(font, "CHOOSE WISELY!", (Vector2){ 300, 95 }, font.baseSize*2, 2, WHITE);
DrawTextEx(font, "CHOOSE WISELY!", (Vector2){ 300, 95 }, font.baseSize*2, 2, RL_WHITE);
DrawRectangleRec(closet.bounds, Fade(RED, 0.6f));
DrawRectangleRec(window.bounds, Fade(RED, 0.6f));
DrawRectangleRec(chair.bounds, Fade(RED, 0.6f));
DrawRectangleRec(closet.bounds, Fade(RL_RED, 0.6f));
DrawRectangleRec(window.bounds, Fade(RL_RED, 0.6f));
DrawRectangleRec(chair.bounds, Fade(RL_RED, 0.6f));
}
}
else
{
if ((monsterHover) && ((msgCounter/30)%2))
{
DrawRectangle(0, 0, GetScreenWidth(), 50, Fade(LIGHTGRAY, 0.5f));
DrawText("PRESS SPACE or CLICK to INTERACT", 420, 15, 20, BLACK);
DrawRectangle(0, 0, GetScreenWidth(), 50, Fade(RL_LIGHTGRAY, 0.5f));
DrawText("PRESS SPACE or CLICK to INTERACT", 420, 15, 20, RL_BLACK);
}
}