93 if (tag ==
"BTN_SAVELOAD") {
95 if (selectedIndex == -1)
107 }
else if (tag ==
"BTN_BACK")
140 e.
add(
"Failed to get save base name from directory \"%s\"", saveDir.
c_str());
154 slotText.
replaceAll(
"Game <CUSTOM0>", baseName);
159 slotText +=
"\r\n" + save->
getName();
190 if (relativeDir.
contains(
"QUICKSAVE"))
191 result =
"Quick Save";
192 else if (relativeDir.
contains(
"AUTOSAVE"))
193 result =
"Auto Save";
194 else if (relativeDir.
contains(
"Game")) {
206 while ((it != relativeDir.
end()) && (*it ==
'0'))
void load(const Common::UString &resref)
static const Common::UString & kBackgroundTypeMenu
bool addSubDirectories(const UString &directory)
Add subdirectories of a directory to the list.
void add(const char *s,...) GCC_PRINTF(2
The global graphics manager.
A label widget for Star Wars: Knights of the Old Republic and Jade Empire.
#define TalkMan
Shortcut for accessing the talk manager.
uint32 _returnCode
The GUI's return code.
void loadSavedGame(SavedGame *save)
A class holding an UTF-8 string.
The global config manager.
UString composeString(T value)
Convert any POD integer, float/double or bool type into a string.
uint32 getTimePlayed() const
void truncate(const iterator &it)
std::list< UString >::const_iterator const_iterator
virtual void hide()
Hide the GUI.
Utility templates and functions for working with strings and streams.
Exception that provides a stack of explanations.
Keyboard key was pressed.
bool contains(const UString &what) const
utf8::iterator< std::string::const_iterator > iterator
const char * c_str() const
Return the (utf8 encoded) string data.
void replaceAll(uint32 what, uint32 with)
Replace all occurrences of a character with another character.
WidgetButton * getButton(const Common::UString &tag, bool vital=false)
#define ConfigMan
Shortcut for accessing the config manager.
A list box widget for Star Wars: Knights of the Old Republic and Jade Empire.
const Common::UString & getName() const
A scoped plain pointer, allowing pointer-y access and normal deletion.
void addBackground(const Common::UString &background, bool front=false)
void warning(const char *s,...)
WidgetLabel * getLabel(const Common::UString &tag, bool vital=false)
PointerType get() const
Returns the plain pointer value.
The global talk manager for Aurora strings.
EventType
Custom event types.
static SavedGame * load(const Common::UString &dir, bool loadSav=false)
Load saved game from a specified directory.
static UString normalize(const UString &p, bool resolveSymLinks=true)
Normalize a path.
const_iterator begin() const
Return a const_iterator pointing to the beginning of the list.
WidgetListBox * getListBox(const Common::UString &tag, bool vital=false)
const char * what() const
void sort(bool caseInsensitive)
Sort this list alphabetically.
void printException(Exception &e, const UString &prefix)
Print a whole exception stack to stderr and the log.
static UString getFile(const UString &p)
Return a file name without its path.
void parseString(const UString &str, T &value, bool allowEmpty)
Parse a string into any POD integer, float/double or bool type.
#define GfxMan
Shortcut for accessing the graphics manager.
Utility class for manipulating file paths.
const_iterator end() const
Return a const_iterator pointing past the end of the list.