honor the rainbow main menu logo setting in the splash screen

This commit is contained in:
yugecin 2018-06-25 23:26:06 +02:00
parent 8074b36f91
commit c356d75def
No known key found for this signature in database
GPG Key ID: 2C5AC035A7068E44

View File

@ -22,12 +22,12 @@ import itdelatrisu.opsu.GameImage;
import itdelatrisu.opsu.audio.MusicController; import itdelatrisu.opsu.audio.MusicController;
import itdelatrisu.opsu.audio.SoundController; import itdelatrisu.opsu.audio.SoundController;
import itdelatrisu.opsu.beatmap.BeatmapSetList; import itdelatrisu.opsu.beatmap.BeatmapSetList;
import itdelatrisu.opsu.ui.Cursor;
import itdelatrisu.opsu.ui.UI; import itdelatrisu.opsu.ui.UI;
import org.lwjgl.input.Keyboard; import org.lwjgl.input.Keyboard;
import org.newdawn.slick.Color; import org.newdawn.slick.Color;
import org.newdawn.slick.Graphics; import org.newdawn.slick.Graphics;
import org.newdawn.slick.Input;
import org.newdawn.slick.util.Log; import org.newdawn.slick.util.Log;
import yugecin.opsudance.core.state.BaseOpsuState; import yugecin.opsudance.core.state.BaseOpsuState;
@ -107,7 +107,11 @@ public class Splash extends BaseOpsuState {
@Override @Override
public void render(Graphics g) { public void render(Graphics g) {
g.setBackground(Color.black); g.setBackground(Color.black);
GameImage.MENU_LOGO.getImage().drawCentered(displayContainer.width / 2, displayContainer.height / 2); GameImage.MENU_LOGO.getImage().drawCentered(
displayContainer.width / 2,
displayContainer.height / 2,
OPTION_COLOR_MAIN_MENU_LOGO.state ? Cursor.lastCursorColor : Color.white
);
UI.drawLoadingProgress(g); UI.drawLoadingProgress(g);
} }