88 y = widgetHeight + (-1.0f * (y - (
_guiHeight / 2.0f)));
147 for (Aurora::GFF3List::const_iterator c = children.begin(); c != children.end(); ++c)
212 if (!protoItem && vital)
224 if (!button && vital)
236 if (!checkBox && vital)
248 if (!slider && vital)
260 if (!scrollbar && vital)
272 if (!progressbar && vital)
284 if (!listBox && vital)
Handling version V3.2/V3.3 of BioWare's GFFs (generic file format).
#define ResMan
Shortcut for accessing the sound manager.
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.
WidgetButton * getButton(const Common::UString &tag, bool vital=false)
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.
WidgetScrollbar * getScrollbar(const Common::UString &tag, bool vital=false)
void loadWidget(const Aurora::GFF3Struct &strct, Widget *parent)
virtual void hide()
Hide the GUI.
const Aurora::GFF3Struct * strct
uint64 getUint(const Common::UString &field, uint64 def=0) const
A panel widget for Star Wars: Knights of the Old Republic and Jade Empire.
Exception that provides a stack of explanations.
Common::UString getName() const
WidgetContext(const Aurora::GFF3Struct &s, Widget *p)
WidgetProtoItem * getProtoItem(const Common::UString &tag, bool vital=false)
Basic exceptions to throw.
const char * c_str() const
Return the (utf8 encoded) string data.
virtual void show()
Show the GUI.
Utility templates and functions.
void addBackground(const Common::UString &background, bool front=false)
WidgetSlider * getSlider(const Common::UString &tag, bool vital=false)
A list box widget for Star Wars: Knights of the Old Republic and Jade Empire.
GUI(::Engines::Console *console=0)
A GFF (generic file format) V3.2/V3.3 file, found in all Aurora games except Sonic Chronicles: The Da...
A slider widget for Star Wars: Knights of the Old Republic and Jade Empire.
A progressbar widget for Star Wars: Knights of the Old Republic and Jade Empire.
#define CursorMan
Shortcut for accessing the cursor manager.
std::vector< const GFF3Struct * > GFF3List
Common::ScopedPtr< Aurora::GFF3File > _gff
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 Jade Empire's GUI coordinates ...
const GFF3List & getList(const Common::UString &field) const
void load(const Common::UString &resref)
virtual void show()
Show the GUI.
void setCheckBoxState(const Common::UString &tag, bool state)
void createWidget(WidgetContext &ctx)
virtual void initWidget(Widget &widget)
void convertToXoreos(float &x, float &y, const float widgetHeight) const
Converts Jade Empire' GUI coordinates with a coordinate origin in the upper left corner to the Xoreos...
A protoitem widget for Star Wars: Knights of the Old Republic and Jade Empire.
WidgetListBox * getListBox(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
Common::ScopedPtr< GUIBackground > _background
void addWidget(Widget *widget)
Add a widget.
virtual void mouseUp()
The mouse state has changed.
bool getCheckBoxState(const Common::UString &tag)
WidgetPanel * getPanel(const Common::UString &tag, bool vital=false)
WidgetProgressbar * getProgressbar(const Common::UString &tag, bool vital=false)
virtual void hide()
Hide the GUI.
The global resource manager for Aurora resources.
WidgetLabel * getLabel(const Common::UString &tag, bool vital=false)