98 if (
getLabel(
"LBL_INV_IMPLANT")->isHovered())
100 else if (
getLabel(
"LBL_INV_HEAD")->isHovered())
102 else if (
getLabel(
"LBL_INV_HANDS")->isHovered())
104 else if (
getLabel(
"LBL_INV_ARM_L")->isHovered())
106 else if (
getLabel(
"LBL_INV_BODY")->isHovered())
108 else if (
getLabel(
"LBL_INV_ARM_R")->isHovered())
110 else if (
getLabel(
"LBL_INV_WEAP_L")->isHovered())
112 else if (
getLabel(
"LBL_INV_BELT")->isHovered())
114 else if (
getLabel(
"LBL_INV_WEAP_R")->isHovered())
133 if (tag ==
"BTN_EQUIP") {
144 if (tag ==
"BTN_BACK") {
149 if (tag ==
"BTN_BACK") {
199 return item ? item->
getIcon() :
"";
207 lbItems->
addItem(
"None|inone|1");
211 const std::map<Common::UString, InventoryItem> &invItems = inv.
getItems();
212 for (std::map<Common::UString, InventoryItem>::const_iterator i = invItems.begin();
213 i != invItems.end(); ++i) {
215 Item item(i->second.tag);
226 e.
add(
"Failed to load item %s", i->second.tag.c_str());
237 if (tag ==
"LBL_INV_IMPLANT")
239 if (tag ==
"LBL_INV_BODY")
241 if (tag ==
"LBL_INV_HANDS")
243 if (tag ==
"LBL_INV_ARM_R")
245 if (tag ==
"LBL_INV_BODY")
247 if (tag ==
"LBL_INV_ARM_L")
249 if (tag ==
"LBL_INV_WEAP_R")
251 if (tag ==
"LBL_INV_BELT")
253 if (tag ==
"LBL_INV_WEAP_L")
287 return TalkMan.getString(31388);
289 return TalkMan.getString(31375);
291 return TalkMan.getString(31383);
293 return TalkMan.getString(31377);
295 return TalkMan.getString(31380);
297 return TalkMan.getString(31376);
299 return TalkMan.getString(31379);
301 return TalkMan.getString(31382);
303 return TalkMan.getString(31378);
374 btnInvImplant->
hide();
384 lblInvImplant->
hide();
407 btnInvImplant->
show();
419 lblInvImplant->
show();
A creature in a Star Wars: Knights of the Old Republic area.
void load(const Common::UString &resref)
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.
A class holding an UTF-8 string.
void equipItem(Common::UString tag, EquipmentSlot slot)
bool beginsWith(const UString &with) const
virtual void hide()
Hide the GUI.
Inventory & getInventory()
Exception that provides a stack of explanations.
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().
WidgetButton * getButton(const Common::UString &tag, bool vital=false)
A list box widget for Star Wars: Knights of the Old Republic and Jade Empire.
bool empty() const
Is the string empty?
virtual void show()
Show the GUI.
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.
Item * getEquipedItem(EquipmentSlot slot) const
EquipmentSlot getEquipableSlots() const
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
void printException(Exception &e, const UString &prefix)
Print a whole exception stack to stderr and the log.
#define GfxMan
Shortcut for accessing the graphics manager.
const std::map< Common::UString, InventoryItem > & getItems() const