25 #ifndef ENGINES_KOTOR_GUI_GUI_H 26 #define ENGINES_KOTOR_GUI_GUI_H 42 class KotORJadeWidget;
46 class WidgetProtoItem;
50 class WidgetScrollbar;
51 class WidgetProgressbar;
70 void convertToXoreos(
float &x,
float &y,
const float widgetHeight)
const;
76 void convertToGUI(
float &x,
float &y,
const float widgetHeight)
const;
150 #endif // ENGINES_KOTOR_GUI_GUI_H
Handling version V3.2/V3.3 of BioWare's GFFs (generic file format).
virtual void initWidget(Widget &widget)
void load(const Common::UString &resref)
void createWidget(WidgetContext &ctx)
A class holding an UTF-8 string.
WidgetContext(const Aurora::GFF3Struct &s, Widget *p)
virtual void mouseUp()
The mouse state has changed.
GUI(::Engines::Console *console=0)
bool getCheckBoxState(const Common::UString &tag)
virtual void hide()
Hide the GUI.
A simple scoped smart pointer template.
WidgetButton * getButton(const Common::UString &tag, bool vital=false)
Basic Aurora graphics types.
WidgetScrollbar * getScrollbar(const Common::UString &tag, bool vital=false)
Common::UString getName() const
const Aurora::GFF3Struct * strct
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 scoped plain pointer, allowing pointer-y access and normal deletion.
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)
Common::ScopedPtr< GUIBackground > _background
virtual void show()
Show the GUI.
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)
Basic type definitions to handle files used in BioWare's Aurora engine.
WidgetProgressbar * getProgressbar(const Common::UString &tag, bool vital=false)
WidgetCheckBox * getCheckBox(const Common::UString &tag, bool vital=false)
WidgetListBox * getListBox(const Common::UString &tag, bool vital=false)
WidgetPanel * getPanel(const Common::UString &tag, bool vital=false)
Common::ScopedPtr< Aurora::GFF3File > _gff
void setCheckBoxState(const Common::UString &tag, bool state)