mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 20:09:00 +00:00
slider fix
This commit is contained in:
parent
5320bf7964
commit
9bfcaff849
1 changed files with 2 additions and 3 deletions
|
@ -287,7 +287,7 @@ ScaleAndCenterX(float x)
|
||||||
|
|
||||||
#define ProcessSlider(value, increaseAction, decreaseAction, hoverStartX, hoverEndX) \
|
#define ProcessSlider(value, increaseAction, decreaseAction, hoverStartX, hoverEndX) \
|
||||||
do { \
|
do { \
|
||||||
lastActiveBarX = DisplaySlider(SCREEN_STRETCH_FROM_RIGHT(MENUSLIDER_X + columnWidth), MENU_Y(bitAboveNextItemY), MENU_Y(smallestSliderBar), MENU_Y(usableLineHeight), MENU_X(MENUSLIDER_UNK), value); \
|
lastActiveBarX = DisplaySlider(MENU_X_RIGHT_ALIGNED(MENUSLIDER_X + columnWidth), MENU_Y(bitAboveNextItemY), MENU_Y(smallestSliderBar), MENU_Y(usableLineHeight), MENU_X(MENUSLIDER_UNK), value); \
|
||||||
if (i != m_nCurrOption || !itemsAreSelectable) \
|
if (i != m_nCurrOption || !itemsAreSelectable) \
|
||||||
break; \
|
break; \
|
||||||
\
|
\
|
||||||
|
@ -298,7 +298,7 @@ ScaleAndCenterX(float x)
|
||||||
break; \
|
break; \
|
||||||
\
|
\
|
||||||
m_nHoverOption = increaseAction; \
|
m_nHoverOption = increaseAction; \
|
||||||
if (m_nMousePosX < SCREEN_STRETCH_FROM_RIGHT(MENUSLIDER_X + columnWidth)) \
|
if (m_nMousePosX < MENU_X_RIGHT_ALIGNED(MENUSLIDER_X + columnWidth)) \
|
||||||
m_nHoverOption = HOVEROPTION_NOT_HOVERING; \
|
m_nHoverOption = HOVEROPTION_NOT_HOVERING; \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
|
@ -1237,7 +1237,6 @@ CMenuManager::Draw()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sliders
|
// Sliders
|
||||||
// We stretch slider start X here(like original code), because it will always be center of screen
|
|
||||||
int lastActiveBarX;
|
int lastActiveBarX;
|
||||||
switch (aScreens[m_nCurrScreen].m_aEntries[i].m_Action) {
|
switch (aScreens[m_nCurrScreen].m_aEntries[i].m_Action) {
|
||||||
case MENUACTION_BRIGHTNESS:
|
case MENUACTION_BRIGHTNESS:
|
||||||
|
|
Loading…
Reference in a new issue