Fixes and enhancements from my MCPE repository. (https://github.com/mschiller890/mcpe64)
This commit is contained in:
32
src/client/gui/screens/CreditsScreen.h
Normal file
32
src/client/gui/screens/CreditsScreen.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef NET_MINECRAFT_CLIENT_GUI_SCREENS__CreditsScreen_H__
|
||||
#define NET_MINECRAFT_CLIENT_GUI_SCREENS__CreditsScreen_H__
|
||||
|
||||
#include "../Screen.h"
|
||||
#include "../components/Button.h"
|
||||
|
||||
class ImageButton;
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
class CreditsScreen: public Screen {
|
||||
public:
|
||||
typedef Screen super;
|
||||
CreditsScreen();
|
||||
virtual ~CreditsScreen();
|
||||
void init();
|
||||
void setupPositions();
|
||||
virtual void tick();
|
||||
void render(int xm, int ym, float a);
|
||||
void buttonClicked(Button* button);
|
||||
virtual void mouseClicked(int x, int y, int buttonNum);
|
||||
private:
|
||||
Touch::THeader* bHeader;
|
||||
ImageButton* btnBack;
|
||||
|
||||
std::vector<std::string> _lines;
|
||||
float _scrollY;
|
||||
float _scrollSpeed;
|
||||
};
|
||||
|
||||
#endif /* NET_MINECRAFT_CLIENT_GUI_SCREENS__CreditsScreen_H__ */
|
||||
Reference in New Issue
Block a user