38 #include "laStagesJR.h"
40 stageJRMenu::stageJRMenu(
void) {
47 stageJRMenu::~stageJRMenu(
void) {
51 void stageJRMenu::_init_gui()
53 _uiDesktop.create(
"ui\\desktop-mm.dsk");
56 _uiDesktop.insert(_pMenu);
59 pLabel->setText(M_COPYRIGHT_STRING);
63 _uiDesktop.insert(pLabel);
66 char str[128] = M_VERSION_STRING;
67 strcat(str,
"#This version is for testing purposes only. Please do not redistribute.");
73 _uiDesktop.insert(pLabel);
83 void stageJRMenu::_draw_UI(
laRenderer *pr, laTimer *pt) {
84 PROFILE(stageJRMenu__draw_UI);
89 PROFILE(stageJRMenu__animate);
91 _animate_Dynamics(pi, pt);
95 void uiAboutDlg::reply()
99 if(in::key(KEY_ESCAPE))
101 ((
stageJRMenu*)(laSystemIntegrator::getGame()->getStage(M_STAGE_MENU)))->getMenu()->show();
112 void uiStartEditorDlg::onCommand(
unsigned long uID,
unsigned long nCmd)
119 if(strstr(title,
"Cancel"))
121 ((
stageJRMenu*)(laSystemIntegrator::getGame()->getStage(M_STAGE_MENU)))->getMenu()->enable();
124 else if(strstr(title,
"AUTO"))
126 ((
stageJRMenu*)(laSystemIntegrator::getGame()->getStage(M_STAGE_MENU)))->getMenu()->enable();
129 laSystemIntegrator::getGame()->setStage(M_STAGE_GEN);
132 else if(strstr(title,
"EMPTY"))
134 ((
stageJRMenu*)(laSystemIntegrator::getGame()->getStage(M_STAGE_MENU)))->getMenu()->enable();
137 laSystemIntegrator::getGame()->setStage(M_STAGE_EDIT);
#define M_AB
Text align bottom.
virtual void move(laPoint3 ptNewPos, unsigned nHReference=M_AL, unsigned nVReference=M_AT)
Change window position.
#define M_AL
Text align left.
#define M_AT
Text align top.
Virtual interface for the Engine graphics renderer.