Files
commandergenius/src/dialog/CWindow.h
T
gerstrong 4c5616a585 - Added early implementation of CWindow System which easily can print dialogs, menus and much more!
- Youseeinyourmind and vorticonelder are now one function (showHintmessage)
- This also fixed the VorticonElder bug which made the system freeze, because dialog was printed a lot of times.

git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@194 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
2009-07-31 12:27:16 +00:00

45 lines
639 B
C++

/*
* CWindow.h
*
* Created on: 29.07.2009
* Author: gerstrong
*/
#ifndef CWINDOW_H_
#define CWINDOW_H_
#include <list>
#include <vector>
#include <string>
#include "CTextBox.h"
enum{
OBJ_TYPE_TEXT
};
class CWindow {
public:
CWindow(float x, float y, float w, float h);
virtual ~CWindow();
void addTextBox(float x, float y, float w, float h, const std::string& text, bool border_rel);
void render();
private:
float m_x;
float m_y;
float m_h;
float m_w;
float m_8x8tileheight;
float m_8x8tilewidth;
std::list<int> m_ID_List;
std::vector<CTextBox*> m_TextBox;
void drawWindow();
};
#endif /* CWINDOW_H_ */