25 #include <boost/bind.hpp> 27 #include "glm/gtc/matrix_transform.hpp" 61 _module(&module), _gameVersion(&gameVersion) {
79 _malakModel->setOrientation(1.0f, 0.0f, 0.0f, -90.0f);
85 glm::mat4 projection = glm::ortho(-2.0f, 2.0f, -0.2f, 2.6f, -3.0f, 3.0f);
149 if (widget.
getTag() ==
"LBL_BW") {
155 if (widget.
getTag() ==
"LBL_LUCAS") {
161 if ((widget.
getTag() ==
"BTN_WARP") || (widget.
getTag() ==
"LBL_WARP")) {
167 if (widget.
getTag() ==
"LBL_Y") {
173 if (widget.
getTag() ==
"LBL_NEWCONTENT") {
179 if (widget.
getTag() ==
"BTN_NEWGAME") {
189 if (widget.
getTag() ==
"BTN_NEWGAME") {
210 if (widget.
getTag() ==
"BTN_LOADGAME") {
221 if (widget.
getTag() ==
"BTN_MOVIES") {
228 if (widget.
getTag() ==
"BTN_OPTIONS") {
235 if (widget.
getTag() ==
"BTN_EXIT") {
void load(const Common::UString &resref)
static const Common::UString & kBackgroundTypeMenu
uint32 _returnCode
The GUI's return code.
Common::ScopedPtr< GUI > _loadGame
void reset(PointerType o=0)
Resets the pointer with the new value.
Common::ScopedPtr< GUI > _options
void initWidget(Widget &widget)
const Version * _gameVersion
Common::ScopedPtr< Graphics::Aurora::Model > _malakModel
The class selection menu.
Common::ScopedPtr< GUI > _movies
virtual void hide()
Hide the GUI.
void callbackActive(Widget &widget)
Callback that's triggered when a widget was activated.
Aurora::Platform getPlatform() const
Common::ScopedPtr< GUI > _classSelection
Common::ScopedPtr< Graphics::Aurora::SubSceneQuad > _malakScene
Utility templates and functions.
A list box widget for Star Wars: Knights of the Old Republic and Jade Empire.
void createClassSelection()
The global events manager.
uint32 sub(GUI &gui, uint32 startCode=kStartCodeNone, bool showSelf=true, bool hideSelf=true)
Open up a sub GUI.
Star Wars: Knights of the Old Republic installation version detection.
The global sound manager, handling all sound output.
#define SoundMan
Shortcut for accessing the sound manager.
void addBackground(const Common::UString &background, bool front=false)
virtual void show()
Show the GUI.
#define EventMan
Shortcut for accessing the events manager.
Sound::ChannelHandle playSound(const Common::UString &sound, Sound::SoundType soundType, bool loop, float volume, bool pitchVariance)
Play this sound resource.
WidgetLabel * getLabel(const Common::UString &tag, bool vital=false)
PointerType get() const
Returns the plain pointer value.
void loadTexturePack()
Load texture pack used by the module.
MainMenu(const Version &gameVersion, Module &module, ::Engines::Console *console=0)
WidgetListBox * getListBox(const Common::UString &tag, bool vital=false)
Generic Aurora engines utility functions.
The context needed to run a Star Wars: Knights of the Old Republic module.
Sound::ChannelHandle _menuMusic
Graphics::Aurora::Model * loadModelObject(const Common::UString &resref, const Common::UString &texture)
Generic Aurora engines model functions.