59 const std::map<Common::UString, InventoryItem> &invItems = inv.
getItems();
60 for (std::map<Common::UString, InventoryItem>::const_iterator i = invItems.begin();
61 i != invItems.end(); ++i) {
63 Item item(i->second.tag);
69 e.
add(
"Failed to load item %s", i->second.tag.c_str());
80 if (tag ==
"BTN_OK") {
85 if (tag ==
"BTN_CANCEL") {
void load(const Common::UString &resref)
void add(const char *s,...) GCC_PRINTF(2
static const uint32 kReturnCodeAbort
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.
A class holding an UTF-8 string.
A panel widget for Star Wars: Knights of the Old Republic and Jade Empire.
Exception that provides a stack of explanations.
The ingame container inventory menu.
Keyboard key was pressed.
const char * c_str() const
Return the (utf8 encoded) string data.
static UString format(const char *s,...) GCC_PRINTF(1
Print formatted data into an UString object, similar to sprintf().
A list box widget for Star Wars: Knights of the Old Republic and Jade Empire.
WidgetLabel * getLabel(const Common::UString &tag, bool vital=false)
const Common::UString getIcon() const
The global talk manager for Aurora strings.
EventType
Custom event types.
WidgetListBox * getListBox(const Common::UString &tag, bool vital=false)
An item in a Star Wars: Knights of the Old Republic area.
const Common::UString & getName() const
WidgetPanel * getPanel(const Common::UString &tag, bool vital=false)
void printException(Exception &e, const UString &prefix)
Print a whole exception stack to stderr and the log.
const std::map< Common::UString, InventoryItem > & getItems() const