88 y = widgetHeight + (-1.0f * (y - (
_guiHeight / 2.0f)));
153 for (Aurora::GFF3List::const_iterator c = children.begin(); c != children.end(); ++c)
222 if (!protoItem && vital)
234 if (!button && vital)
246 if (!checkBox && vital)
258 if (!slider && vital)
270 if (!scrollbar && vital)
282 if (!progressbar && vital)
294 if (!listBox && vital)
Handling version V3.2/V3.3 of BioWare's GFFs (generic file format).
virtual void initWidget(Widget &widget)
#define ResMan
Shortcut for accessing the sound manager.
void load(const Common::UString &resref)
void createWidget(WidgetContext &ctx)
Widget * getWidget(const Common::UString &tag, bool vital=false)
Return a widget in the GUI.
#define MKTAG(a0, a1, a2, a3)
A wrapper macro used around four character constants, like 'DATA', to ensure portability.
void add(const char *s,...) GCC_PRINTF(2
A label widget for Star Wars: Knights of the Old Republic and Jade Empire.
A class holding an UTF-8 string.
WidgetContext(const Aurora::GFF3Struct &s, Widget *p)
void reset(PointerType o=0)
Resets the pointer with the new value.
bool hasField(const Common::UString &field) const
Does this specific field exist?
A checkbox widget for Star Wars: Knights of the Old Repulic and Jade Empire.
virtual void mouseUp()
The mouse state has changed.
GUI(::Engines::Console *console=0)
uint64 getUint(const Common::UString &field, uint64 def=0) const
bool getCheckBoxState(const Common::UString &tag)
virtual void hide()
Hide the GUI.
A panel widget for Star Wars: Knights of the Old Republic and Jade Empire.
Exception that provides a stack of explanations.
void exceptionDispatcherWarning(const char *s,...)
Exception dispatcher that prints the exception as a warning, and adds another reason on top...
Basic exceptions to throw.
const char * c_str() const
Return the (utf8 encoded) string data.
virtual void show()
Show the GUI.
WidgetButton * getButton(const Common::UString &tag, bool vital=false)
Utility templates and functions.
WidgetScrollbar * getScrollbar(const Common::UString &tag, bool vital=false)
A list box widget for Star Wars: Knights of the Old Republic and Jade Empire.
Common::UString getName() const
const Aurora::GFF3Struct * strct
A GFF (generic file format) V3.2/V3.3 file, found in all Aurora games except Sonic Chronicles: The Da...
WidgetProtoItem * getProtoItem(const Common::UString &tag, bool vital=false)
void convertToXoreos(float &x, float &y, const float widgetHeight) const
Converts Kotor' GUI coordinates with a coordinate origin in the upper left corner to the Xoreos coord...
A slider widget for Star Wars: Knights of the Old Republic and Jade Empire.
WidgetSlider * getSlider(const Common::UString &tag, bool vital=false)
void addBackground(const Common::UString &background, bool front=false)
void loadWidget(const Aurora::GFF3Struct &strct, Widget *parent)
A progressbar widget for Star Wars: Knights of the Old Republic and Jade Empire.
#define CursorMan
Shortcut for accessing the cursor manager.
Common::ScopedPtr< GUIBackground > _background
std::vector< const GFF3Struct * > GFF3List
virtual void show()
Show the GUI.
The Aurora cursor manager.
void convertToGUI(float &x, float &y, const float widgetHeight) const
Converts Xoreos' coordinates with a coordinate origin in the center to Kotor's GUI coordinates with t...
WidgetLabel * getLabel(const Common::UString &tag, bool vital=false)
const GFF3List & getList(const Common::UString &field) const
void clearWidgets()
Clear all widgets.
A protoitem widget for Star Wars: Knights of the Old Republic and Jade Empire.
WidgetProgressbar * getProgressbar(const Common::UString &tag, bool vital=false)
WidgetCheckBox * getCheckBox(const Common::UString &tag, bool vital=false)
Common::UString getString(const Common::UString &field, const Common::UString &def="") const
WidgetListBox * getListBox(const Common::UString &tag, bool vital=false)
void addWidget(Widget *widget)
Add a widget.
WidgetPanel * getPanel(const Common::UString &tag, bool vital=false)
bool empty()
Check if the gui is currently empty.
Common::ScopedPtr< Aurora::GFF3File > _gff
virtual void hide()
Hide the GUI.
The global resource manager for Aurora resources.
void setCheckBoxState(const Common::UString &tag, bool state)