mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Hello WWWWWWorld!
This commit is contained in:
54
desktop_version/src/Textbox.h
Normal file
54
desktop_version/src/Textbox.h
Normal file
@@ -0,0 +1,54 @@
|
||||
#ifndef TEXTBOX_H
|
||||
#define TEXTBOX_H
|
||||
|
||||
#include "SDL.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class textboxclass
|
||||
{
|
||||
public:
|
||||
textboxclass();
|
||||
|
||||
void firstcreate();
|
||||
|
||||
void clear();
|
||||
|
||||
void centerx();
|
||||
|
||||
void centery();
|
||||
|
||||
void adjust();
|
||||
|
||||
void initcol(int rr, int gg, int bb);
|
||||
|
||||
void setcol(int rr, int gg, int bb);
|
||||
|
||||
void update();
|
||||
|
||||
void remove();
|
||||
|
||||
void removefast();
|
||||
|
||||
void resize();
|
||||
|
||||
void addline(std::string t);
|
||||
public:
|
||||
//Fundamentals
|
||||
std::vector<std::string> line;
|
||||
int xp, yp, lw, w, h, numlines;
|
||||
int x,y;
|
||||
int r,g,b;
|
||||
int tr,tg,tb;
|
||||
SDL_Rect textrect;
|
||||
bool active;
|
||||
int timer;
|
||||
|
||||
float tl;
|
||||
int tm;
|
||||
|
||||
int max;
|
||||
|
||||
};
|
||||
|
||||
#endif /* TEXTBOX_H */
|
||||
Reference in New Issue
Block a user