mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-16 07:59:43 +01:00
31321ee19c
As a result of the previous commit, textboxclass::clear() is now unused. textboxclass::firstcreate() was already useless. So remove both those functions and initialize the values in the textboxclass constructor.
49 lines
646 B
C++
49 lines
646 B
C++
#ifndef TEXTBOX_H
|
|
#define TEXTBOX_H
|
|
|
|
#include "SDL.h"
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class textboxclass
|
|
{
|
|
public:
|
|
textboxclass();
|
|
|
|
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;
|
|
int x,y;
|
|
int r,g,b;
|
|
int tr,tg,tb;
|
|
SDL_Rect textrect;
|
|
int timer;
|
|
|
|
float tl;
|
|
int tm;
|
|
|
|
int max;
|
|
|
|
};
|
|
|
|
#endif /* TEXTBOX_H */
|