71 float squareLength =
_quad->getHeight();
77 _quad->getPosition(x, y, z);
78 _quad->setPosition(x + _quadPosCorrect, y + _quadPosCorrect, z);
85 _text->getPosition(x, y, z);
86 _text->setPosition(x + squareLength, y, z);
104 float textR, textG, textB, textA;
105 _text->getColor(textR, textG, textB, textA);
107 float quadR, quadG, quadB, quadA;
109 _quad->getColor(quadR, quadG, quadB, quadA);
116 _text->setColor(textR, textG, textB, textA);
119 _quad->setColor(quadR, quadG, quadB, quadA);
135 _text->getHighlightedLowerBound(r, g, b, a);
136 _text->setColor(r, g, b, a);
137 _text->setHighlighted(
true);
144 _quad->setColor(r, g, b, a);
155 _text->setHighlighted(
false);
Handling version V3.2/V3.3 of BioWare's GFFs (generic file format).
Texture & getTexture() const
A class holding an UTF-8 string.
void setHighlighted(bool hightlighted)
#define TextureMan
Shortcut for accessing the texture manager.
The Aurora texture manager.
A checkbox widget for Star Wars: Knights of the Old Repulic and Jade Empire.
void setHighlightable(bool highlightable)
The global sound manager, handling all sound output.
bool empty() const
Is the string empty?
#define SoundMan
Shortcut for accessing the sound manager.
bool isHighlightable() const
void setHighlightDelta(float r, float g, float b, float a)
Set how much the quad changes per render.
Sound::ChannelHandle playSound(const Common::UString &sound, Sound::SoundType soundType, bool loop, float volume, bool pitchVariance)
Play this sound resource.
A texture as used in the Aurora engines.
const GFF3Struct & getStruct(const Common::UString &field) const
Low-level detection of architecture/system properties.
Common::UString getString(const Common::UString &field, const Common::UString &def="") const
Generic Aurora engines utility functions.
void setHighlightUpperBound(float r, float g, float b, float a)
When any of the quad properties are greater than this bound, the signs of the delta floats will flip...
A textured quad for a GUI element.
void setHighlightLowerBound(float r, float g, float b, float a)
When any of the quad properties are less than this bound, the signs of the delta floats will flip...
void getHighlightedLowerBound(float &r, float &g, float &b, float &a) const