mirror of
https://github.com/GTAmodding/re3.git
synced 2021-02-19 17:49:54 +01:00
Merge pull request #472 from gennariarmando/master
Hide Vehicle/Zone name during Wasted/Busted...
This commit is contained in:
commit
6e24cb28ad
@ -303,9 +303,11 @@ ScaleAndCenterX(float x)
|
|||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
#define ProcessRadioIcon(sprite, x, y, radioId, hoverOpt) \
|
#define ProcessRadioIcon(sprite, x, y, radioId, hoverOpt) \
|
||||||
sprite.Draw(x, y, MENU_X(MENURADIO_ICON_SCALE), MENU_Y(MENURADIO_ICON_SCALE), radioId == m_PrefsRadioStation ? CRGBA(255, 255, 255, 255) : CRGBA(225, 0, 0, 170)); \
|
do { \
|
||||||
if (CheckHover(x, x + MENU_X(MENURADIO_ICON_SCALE), y, y + MENU_Y(MENURADIO_ICON_SCALE))) \
|
sprite.Draw(x, y, MENU_X(MENURADIO_ICON_SCALE), MENU_Y(MENURADIO_ICON_SCALE), radioId == m_PrefsRadioStation ? CRGBA(255, 255, 255, 255) : CRGBA(225, 0, 0, 170)); \
|
||||||
m_nHoverOption = hoverOpt;
|
if (CheckHover(x, x + MENU_X(MENURADIO_ICON_SCALE), y, y + MENU_Y(MENURADIO_ICON_SCALE))) \
|
||||||
|
m_nHoverOption = hoverOpt; \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
// --- Functions not in the game/inlined starts
|
// --- Functions not in the game/inlined starts
|
||||||
|
|
||||||
|
@ -208,6 +208,7 @@ enum Config {
|
|||||||
#define SCROLLABLE_STATS_PAGE // only draggable by mouse atm
|
#define SCROLLABLE_STATS_PAGE // only draggable by mouse atm
|
||||||
#define TRIANGLE_BACK_BUTTON
|
#define TRIANGLE_BACK_BUTTON
|
||||||
// #define CIRCLE_BACK_BUTTON
|
// #define CIRCLE_BACK_BUTTON
|
||||||
|
#define HUD_ENHANCEMENTS // Adjusts some aspects to make the HUD look/behave a little bit better.
|
||||||
|
|
||||||
// Script
|
// Script
|
||||||
#define USE_DEBUG_SCRIPT_LOADER // makes game load main_freeroam.scm by default
|
#define USE_DEBUG_SCRIPT_LOADER // makes game load main_freeroam.scm by default
|
||||||
|
@ -473,7 +473,12 @@ void CHud::Draw()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef HUD_ENHANCEMENTS
|
||||||
if (!m_Message[0]) {
|
if (!m_Message[0]) {
|
||||||
|
#else
|
||||||
|
if (!m_Message[0] && !m_BigMessage[2][0]) { // Hide zone name if wasted/busted text is displaying
|
||||||
|
#endif
|
||||||
m_ZoneNameTimer += CTimer::GetTimeStepInMilliseconds();
|
m_ZoneNameTimer += CTimer::GetTimeStepInMilliseconds();
|
||||||
CFont::SetJustifyOff();
|
CFont::SetJustifyOff();
|
||||||
CFont::SetPropOn();
|
CFont::SetPropOn();
|
||||||
@ -563,7 +568,11 @@ void CHud::Draw()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef HUD_ENHANCEMENTS
|
||||||
if (!m_Message[0]) {
|
if (!m_Message[0]) {
|
||||||
|
#else
|
||||||
|
if (!m_Message[0] && !m_BigMessage[2][0]) { // Hide vehicle name if wasted/busted text is displaying
|
||||||
|
#endif
|
||||||
m_VehicleNameTimer += CTimer::GetTimeStepInMilliseconds();
|
m_VehicleNameTimer += CTimer::GetTimeStepInMilliseconds();
|
||||||
CFont::SetJustifyOff();
|
CFont::SetJustifyOff();
|
||||||
CFont::SetPropOn();
|
CFont::SetPropOn();
|
||||||
|
Loading…
Reference in New Issue
Block a user