update TransitionScreen (#1919)

fix progressBar location
This commit is contained in:
Anthony Calosa
2022-11-18 12:10:26 +08:00
committed by GitHub
parent 170df11856
commit b14561441d

View File

@@ -98,7 +98,7 @@ public class TransitionScreen extends FContainer {
float x = (Forge.getScreenWidth() - w) / 2;
float y = ymod + 10;
int multi = ((int) (percentage*100)) < 97 ? (int) (percentage*100) : 100;
progressBar.setBounds(x, y, w, h);
progressBar.setBounds(x, Forge.getScreenHeight() - h * 2f, w, h);
progressBar.setValue(multi);
if (multi == 100 && !message.isEmpty()) {
progressBar.setDescription(message);