mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-11-05 08:35:54 +00:00
Merge remote-tracking branch 'upstream/miami' into miami
This commit is contained in:
commit
e5190481e4
|
@ -406,16 +406,19 @@ CFont::DrawButton(float x, float y)
|
||||||
if (PS2Symbol != BUTTON_NONE) {
|
if (PS2Symbol != BUTTON_NONE) {
|
||||||
CRect rect;
|
CRect rect;
|
||||||
rect.left = x;
|
rect.left = x;
|
||||||
rect.top = Details.scaleY + Details.scaleY + y;
|
rect.top = RenderState.scaleY + RenderState.scaleY + y;
|
||||||
rect.right = Details.scaleY * 17.0f + x;
|
rect.right = RenderState.scaleY * 17.0f + x;
|
||||||
rect.bottom = Details.scaleY * 19.0f + y;
|
rect.bottom = RenderState.scaleY * 19.0f + y;
|
||||||
|
|
||||||
int vertexAlphaState;
|
int vertexAlphaState;
|
||||||
void *raster;
|
void *raster;
|
||||||
RwRenderStateGet(rwRENDERSTATEVERTEXALPHAENABLE, &vertexAlphaState);
|
RwRenderStateGet(rwRENDERSTATEVERTEXALPHAENABLE, &vertexAlphaState);
|
||||||
RwRenderStateGet(rwRENDERSTATETEXTURERASTER, &raster);
|
RwRenderStateGet(rwRENDERSTATETEXTURERASTER, &raster);
|
||||||
RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void *)TRUE);
|
RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void *)TRUE);
|
||||||
ButtonSprite[PS2Symbol].Draw(rect, CRGBA(255, 255, 255, Details.color.a));
|
if (RenderState.bIsShadow)
|
||||||
|
ButtonSprite[PS2Symbol].Draw(rect, RenderState.color);
|
||||||
|
else
|
||||||
|
ButtonSprite[PS2Symbol].Draw(rect, CRGBA(255, 255, 255, RenderState.color.a));
|
||||||
RwRenderStateSet(rwRENDERSTATETEXTURERASTER, raster);
|
RwRenderStateSet(rwRENDERSTATETEXTURERASTER, raster);
|
||||||
RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void *)vertexAlphaState);
|
RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void *)vertexAlphaState);
|
||||||
}
|
}
|
||||||
|
@ -585,7 +588,7 @@ CFont::RenderFontBuffer()
|
||||||
#ifdef BUTTON_ICONS
|
#ifdef BUTTON_ICONS
|
||||||
if(PS2Symbol != BUTTON_NONE) {
|
if(PS2Symbol != BUTTON_NONE) {
|
||||||
DrawButton(textPosX, textPosY);
|
DrawButton(textPosX, textPosY);
|
||||||
textPosX += Details.scaleY * 17.0f;
|
textPosX += RenderState.scaleY * 17.0f;
|
||||||
PS2Symbol = BUTTON_NONE;
|
PS2Symbol = BUTTON_NONE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1173,8 +1173,10 @@ void CHud::Draw()
|
||||||
CFont::SetCentreOn();
|
CFont::SetCentreOn();
|
||||||
CFont::SetPropOn();
|
CFont::SetPropOn();
|
||||||
#ifdef CUTSCENE_BORDERS_SWITCH
|
#ifdef CUTSCENE_BORDERS_SWITCH
|
||||||
if (!FrontEndMenuManager.m_PrefsCutsceneBorders)
|
if (!FrontEndMenuManager.m_PrefsCutsceneBorders) {
|
||||||
|
CFont::SetDropColor(CRGBA(0, 0, 0, 255));
|
||||||
CFont::SetDropShadowPosition(2);
|
CFont::SetDropShadowPosition(2);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
CFont::SetDropShadowPosition(0);
|
CFont::SetDropShadowPosition(0);
|
||||||
|
|
|
@ -73,7 +73,7 @@ RwRaster *gpWaterEnvBaseRaster;
|
||||||
RwRaster *gpWaterWakeRaster;
|
RwRaster *gpWaterWakeRaster;
|
||||||
|
|
||||||
bool _bSeaLife;
|
bool _bSeaLife;
|
||||||
float _fWaterZOffset = 0.5f;
|
float _fWaterZOffset = WATER_Z_OFFSET;
|
||||||
|
|
||||||
#ifdef PC_WATER
|
#ifdef PC_WATER
|
||||||
float fEnvScale = 0.25f;
|
float fEnvScale = 0.25f;
|
||||||
|
|
Loading…
Reference in a new issue