- Added a few "stats" to the main menu. This might slow down loading times on the PSP (needs testing). In that case I'll move it to the options, or optimize it if needed
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-05-19 13:45:53 +00:00
parent f32f5f3793
commit f50d7e30d4
19 changed files with 261 additions and 39 deletions

View File

@@ -0,0 +1,33 @@
#ifndef _TEXTSCROLLER_H_
#define _TEXTSCROLLER_H_
class JLBFont;
#include <JGui.h>
#include <string>
#include <vector>
using namespace std;
class TextScroller: public JGuiObject{
private:
string mText;
string tempText;
JLBFont * mFont;
float mWidth;
float mSpeed;
float mX;
float mY;
float start;
int timer;
vector<string> strings;
int currentId;
int mRandom;
public:
void Add(string text);
void Reset();
void setRandom(int mode = 1);
TextScroller(JLBFont * font, float x, float y, float width, float speed = 30);
void Render();
void Update(float dt);
};
#endif