4jcraft/Minecraft.Client/UI/Screens/TitleScreen.h
Sally Knight 3f2c6e0012 feat(jui): add panorama and splashes to title screen
Also moved the version string to the same height as the copyright message, matching Beta 1.8+
2026-03-29 15:50:34 -05:00

46 lines
900 B
C++

#pragma once
#include "../Screen.h"
class Random;
class Button;
class TitleScreen : public Screen {
private:
static Random* random;
float vo;
std::wstring splash;
Button* multiplayerButton;
// 4jcraft: panorama
void renderPanorama();
// 4jcraft: taken from UIScene_MainMenu
// 4J Added
enum eSplashIndexes {
eSplashHappyBirthdayEx = 0,
eSplashHappyBirthdayNotch,
eSplashMerryXmas,
eSplashHappyNewYear,
// The start index in the splashes vector from which we can select a
// random splash
eSplashRandomStart,
};
public:
TitleScreen();
virtual void tick();
protected:
virtual void keyPressed(wchar_t eventCharacter, int eventKey);
public:
virtual void init();
protected:
virtual void buttonClicked(Button* button);
public:
virtual void render(int xm, int ym, float a);
};