25 #include "glm/gtc/type_ptr.hpp" 26 #include "glm/gtc/matrix_transform.hpp" 40 _hoveredButton(0), _module(module) {
89 glm::mat4 projection(glm::perspective(
Common::deg2rad(22.72f), subSceneWidth/subSceneHeight, 0.1f, 10.0f));
97 0.00979373, -0.040304, 0.999139, 0,
98 0.999952, 0.000393929, -0.00978577, 0,
99 8.34465e-7, 0.999187, 0.0403059, 0,
103 glm::mat4 transformation(glm::make_mat4(modelView));
105 transformation = glm::translate(transformation, glm::vec3(-4.87294f, 0.0880559f, -1.06834f));
107 transformation = glm::rotate(transformation,
109 glm::vec3(0.0f, 0.0f, 1.0f));
112 projection, transformation);
114 projection, transformation);
116 projection, transformation);
118 projection, transformation);
120 projection, transformation);
122 projection, transformation);
180 if (widget.
getTag() ==
"BTN_BACK") {
186 if (widget.
getTag() ==
"BTN_SEL1") {
192 if (widget.
getTag() ==
"BTN_SEL2") {
198 if (widget.
getTag() ==
"BTN_SEL3") {
204 if (widget.
getTag() ==
"BTN_SEL4") {
210 if (widget.
getTag() ==
"BTN_SEL5") {
216 if (widget.
getTag() ==
"BTN_SEL6") {
271 glm::mat4 &projection, glm::mat4 &transformation) {
A creature in a Star Wars: Knights of the Old Republic area.
static CharacterGenerationInfo * createRandomMaleScout()
void load(const Common::UString &resref)
Widget * getWidget(const Common::UString &tag, bool vital=false)
Return a widget in the GUI.
static const Common::UString & kBackgroundTypeMenu
static CharacterGenerationInfo * createRandomMaleScoundrel()
#define TalkMan
Shortcut for accessing the talk manager.
uint32 _returnCode
The GUI's return code.
A class holding an UTF-8 string.
void add(Renderable *renderable)
Add a renderable to the sub scene.
void setProjectionMatrix(const glm::mat4 &projection)
The class selection menu.
Graphics::Aurora::Model * getModel()
WidgetButton * getButton(const Common::UString &tag, bool vital=false)
static CharacterGenerationInfo * createRandomMaleSoldier()
void info(const char *s,...)
uint32 sub(GUI &gui, uint32 startCode=kStartCodeNone, bool showSelf=true, bool hideSelf=true)
Open up a sub GUI.
void addBackground(const Common::UString &background, bool front=false)
WidgetLabel * getLabel(const Common::UString &tag, bool vital=false)
static CharacterGenerationInfo * createRandomFemaleScoundrel()
static CharacterGenerationInfo * createRandomFemaleScout()
void setGlobalTransformationMatrix(const glm::mat4 &transformation)
void playAnimation(const Common::UString &anim, bool restart=true, float length=0.0f, float speed=1.0f)
The global talk manager for Aurora strings.
EventType
Custom event types.
The primary character generation menu.
Keyboard key was released.
static float deg2rad(float deg)
static CharacterGenerationInfo * createRandomFemaleSoldier()