1
0
forked from Clones/Controlify

🖼️ Update controller icons to be more consistent and render on the calibration screen

This commit is contained in:
isXander
2023-06-04 12:10:59 +01:00
parent f1975159c6
commit 6fd6b5a221
33 changed files with 7 additions and 1 deletions

View File

@ -77,6 +77,13 @@ public class ControllerDeadzoneCalibrationScreen extends Screen {
else label = infoLabel;
label.renderCentered(graphics, width / 2, 55);
graphics.pose().pushPose();
float scale = Math.min(3f, (readyButton.getY() - (55 + font.lineHeight * label.getLineCount()) - 2) / 64f);
graphics.pose().translate(width / 2f - 32 * scale, 55 + font.lineHeight * label.getLineCount(), 0f);
graphics.pose().scale(scale, scale, 1f);
graphics.blit(controller.icon(), 0, 0, 0f, 0f, 64, 64, 64, 64);
graphics.pose().popPose();
}
private void drawBar(GuiGraphics graphics, int centerX, int y, float progress, int vOffset) {