55 r(0.0f), g(0.0f), b(0.0f),
63 r(1.0f), g(1.0f), b(1.0f),
75 _r(1.0f),
_g(1.0f),
_b(1.0f),
_a(1.0f),
109 _border->setPosition(extend.
x, extend.
y, 0.0f);
110 _border->setColor(border.
r, border.
g, border.
b);
127 _quad->setPosition(extend.
x, extend.
y, 0.0f);
131 _quad->setClickable(
true);
134 _quad->setColor(0.0f, 0.0f, 0.0f, 0.0f);
136 _quad->setColor(1.0f, 1.0f, 1.0f, 1.0f);
138 _quad->setColor(border.
r, border.
g, border.
b, 1.0f);
146 float tY = extend.
y, tH = extend.
h;
147 if (extend.
h < fontHeight) {
149 tY = extend.
y - (fontHeight - extend.
h);
154 _text->setPosition(extend.
x, tY, -1.0f);
156 _text->setClickable(
true);
164 _quad->setClickable(clickable);
166 _text->setClickable(clickable);
173 _quad->setScissor(
true);
174 _quad->setScissor(x, y, width, height);
192 _quad->setClickable(
true);
198 _quad->setTexture(fill);
199 _quad->setColor(1.0f, 1.0f, 1.0f, 1.0f);
204 _quad->setColor(r, g, b, a);
225 float wWidth, wHeight;
235 _quad->getPosition(x, y, z);
282 _text->getHighlightedLowerBound(r, g, b, a);
283 _text->setColor(r, g, b, a);
284 _text->setHighlighted(
true);
291 _quad->setColor(r, g, b, a);
302 _text->setHighlighted(
false);
329 _text->setClickable(
true);
334 _text->setPosition(x, y, z);
347 _text->setText(text);
352 _text->setColor(r, g, b, a);
357 _text->setHorizontalAlign(halign);
362 _text->setVerticalAlign(valign);
423 _quad->getPosition(x, y, z);
424 _quad->setPosition(x + dx, y + dy, z + dz);
429 _highlight->setPosition(x + dx, y + dy, z + dz);
433 _text->getPosition(x, y, z);
434 _text->setPosition(x + dx, y + dy, z + dz);
439 _border->setPosition(x + dx, y + dy, z + dz);
445 _quad->setRotation(angle);
449 float deltaWidth = width -
_width;
453 width =
_quad->getWidth();
454 _quad->setWidth(width + deltaWidth);
465 width =
_text->getWidth();
466 height =
_text->getHeight();
467 _text->setSize(width + deltaWidth, height);
471 _border->getSize(width, height);
472 _border->setSize(width + deltaWidth, height);
477 float deltaHeight = height -
_height;
481 height =
_quad->getHeight();
482 _quad->setHeight(height + deltaHeight);
493 width =
_text->getWidth();
494 height =
_text->getHeight();
495 _text->setSize(width, height + deltaHeight);
499 _border->getSize(width, height);
500 _border->setSize(width, height + deltaHeight);
529 extend.
x =
static_cast<float>(e.
getSint(
"LEFT"));
530 extend.
y =
static_cast<float>(e.
getSint(
"TOP"));
531 extend.
w =
static_cast<float>(e.
getSint(
"WIDTH"));
532 extend.
h =
static_cast<float>(e.
getSint(
"HEIGHT"));
576 if (text.
text ==
"(Unitialized)")
583 if (alignment == 10) {
586 }
else if (alignment == 18) {
int64 getSint(const Common::UString &field, int64 def=0) const
Handling version V3.2/V3.3 of BioWare's GFFs (generic file format).
virtual void show()
Show the object.
void setDistance(float distance)
#define TalkMan
Shortcut for accessing the talk manager.
virtual void hide()
Hide the object.
bool getBool(const Common::UString &field, bool def=false) const
A class holding an UTF-8 string.
void setHighlighted(bool hightlighted)
void reset(PointerType o=0)
Resets the pointer with the new value.
The Aurora texture manager.
bool hasField(const Common::UString &field) const
Does this specific field exist?
The global window manager.
uint64 getUint(const Common::UString &field, uint64 def=0) const
void getVector(const Common::UString &field, float &x, float &y, float &z) const
Basic Aurora graphics types.
Utility templates and functions.
double getDouble(const Common::UString &field, double def=0.0) const
void setSize(int width, int height)
static const uint32 kStrRefInvalid
bool empty() const
Is the string empty?
bool isHighlightable() const
const float kHAlignCenter
const float kVAlignMiddle
Basic type definitions to handle files used in BioWare's Aurora engine.
PointerType get() const
Returns the plain pointer value.
#define WindowMan
Shortcut for accessing the window manager.
const GFF3Struct & getStruct(const Common::UString &field) const
The global talk manager for Aurora strings.
Low-level detection of architecture/system properties.
void setPosition(int x, int y)
Common::UString getString(const Common::UString &field, const Common::UString &def="") const
A textured quad for a GUI element.
virtual float getHeight() const =0
Return the height of a character.
void clear()
Clear the string's contents.
virtual float getWidth(uint32 c) const =0
Return the width of a character.
#define FontMan
Shortcut for accessing the font manager.
void getHighlightedLowerBound(float &r, float &g, float &b, float &a) const