mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-09-28 17:27:23 +02:00
620365614d
Violet's dialogue now looks like this: squeak(purple) text(purple,0,0,2) Remember that you can press {b_map} to check where you are on the map! position(purple,above) textbuttons() speak_active The new textbuttons() command sets the next textbox to replace {b_map} with the map button, and {b_int} with the interact button. The remaining keys would be added as soon as they need to be added to ActionSets.h as well.
58 lines
867 B
C++
58 lines
867 B
C++
#ifndef TEXTBOX_H
|
|
#define TEXTBOX_H
|
|
|
|
#include <stdint.h>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class textboxclass
|
|
{
|
|
public:
|
|
textboxclass(void);
|
|
|
|
void centerx(void);
|
|
|
|
void centery(void);
|
|
|
|
void adjust(void);
|
|
|
|
void initcol(int rr, int gg, int bb);
|
|
|
|
void update(void);
|
|
|
|
void remove(void);
|
|
|
|
void removefast(void);
|
|
|
|
void resize(void);
|
|
|
|
void addline(const std::string& t);
|
|
|
|
void pad(size_t left_pad, size_t right_pad);
|
|
|
|
void padtowidth(size_t new_w);
|
|
|
|
void centertext(void);
|
|
public:
|
|
//Fundamentals
|
|
std::vector<std::string> lines;
|
|
int xp, yp, w, h;
|
|
int r,g,b;
|
|
int timer;
|
|
|
|
float tl;
|
|
float prev_tl;
|
|
int tm;
|
|
|
|
/* Whether to flip text box y-position in Flip Mode. */
|
|
bool flipme;
|
|
|
|
int rand;
|
|
|
|
bool large;
|
|
|
|
uint32_t print_flags;
|
|
bool fill_buttons;
|
|
};
|
|
|
|
#endif /* TEXTBOX_H */
|