mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-01 14:11:01 +00:00
- use DrawTexture for rendering the menu items.
This commit is contained in:
parent
4d477bc15b
commit
979cc63835
1 changed files with 8 additions and 3 deletions
|
@ -104,15 +104,20 @@ void GameInterface::DrawNativeMenuText(int fontnum, int state, double xpos, doub
|
||||||
shade = 25;
|
shade = 25;
|
||||||
}
|
}
|
||||||
|
|
||||||
rotatesprite(160 << 16, int((y + tilesiz[tilenum].y) *65536), zoomsize, 0, tilenum, shade, 0, RS_AUTO|RS_CENTER, 0, 0, xdim, ydim);
|
// Todo: Replace the boxes with an empty one and draw the text with a font.
|
||||||
|
auto tex = tileGetTexture(tilenum);
|
||||||
|
|
||||||
|
DrawTexture(twod, tex, 160, y + tex->GetDisplayHeight(), DTA_FullscreenScale, FSMode_ScaleToFit43, DTA_VirtualWidth, 320, DTA_VirtualHeight, 200, DTA_CenterOffset, true,
|
||||||
|
DTA_Color, shadeToLight(shade), TAG_DONE);
|
||||||
|
|
||||||
// tilesizx is 51
|
// tilesizx is 51
|
||||||
// tilesizy is 33
|
// tilesizy is 33
|
||||||
|
|
||||||
if (state == NIT_SelectedState)
|
if (state == NIT_SelectedState)
|
||||||
{
|
{
|
||||||
overwritesprite(62, short(ypos - 12), kMenuCursorTile, 0, 2, kPalNormal);
|
tex = tileGetTexture(kMenuCursorTile);
|
||||||
overwritesprite(62 + 146, short(ypos - 12), kMenuCursorTile, 0, 10, kPalNormal);
|
DrawTexture(twod, tex, 62, ypos - 12, DTA_FullscreenScale, FSMode_ScaleToFit43, DTA_VirtualWidth, 320, DTA_VirtualHeight, 200, DTA_TopLeft, true, TAG_DONE);
|
||||||
|
DrawTexture(twod, tex, 207, ypos - 12, DTA_FullscreenScale, FSMode_ScaleToFit43, DTA_VirtualWidth, 320, DTA_VirtualHeight, 200, DTA_TopLeft, true, DTA_FlipX, true, TAG_DONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue