xoreos
0.0.5
|
#include <kotorjadewidget.h>
Classes | |
struct | Border |
struct | Extend |
struct | Hilight |
struct | Text |
Public Member Functions | |
KotORJadeWidget (GUI &gui, const Common::UString &tag) | |
~KotORJadeWidget () | |
virtual void | load (const Aurora::GFF3Struct &gff) |
void | setClickable (bool clickable) |
Set the widget clickable, or not clickable. More... | |
void | setScissor (int x, int y, int width, int height) |
Create a scissor test over this widget. More... | |
void | setFill (const Common::UString &fill) |
void | setColor (float r, float g, float b, float a) |
void | setBorderColor (float r, float g, float b, float a) |
void | setWrapped (bool wrapped) |
void | setSubScene (Graphics::Aurora::SubSceneQuad *subscene) |
float | getBorderDimension () const |
void | setHighlight (const Common::UString &hilight) |
void | setHighlight (bool highlight) |
Set if the widget should be highlighted. More... | |
bool | isHighlight () |
If the widget is highlighted. More... | |
void | createText (const Common::UString &font, const Common::UString &str) |
Initialize the text within this widget. More... | |
void | setFont (const Common::UString &fnt) |
Change the font for this widget. More... | |
void | setText (const Common::UString &text) |
void | setTextColor (float r, float g, float b, float a) |
void | setHorizontalTextAlign (float halign) |
void | setVerticalTextAlign (float valign) |
float | getTextHeight (const Common::UString &text) const |
void | setTag (const Common::UString &tag) |
Set the widget's tag. More... | |
virtual void | show () |
Show the widget. More... | |
virtual void | hide () |
Hide the widget. More... | |
virtual void | setPosition (float x, float y, float z) |
Set the widget's position. More... | |
virtual void | setRotation (float angle) |
Set the rotation of the widget in degrees. More... | |
virtual void | setWidth (float width) |
Set the width of the widget. More... | |
virtual void | setHeight (float height) |
Set the height of the widget. More... | |
float | getWidth () const |
Get the widget's width. More... | |
float | getHeight () const |
Get the widget's height. More... | |
virtual void | setInvisible (bool invisible) |
Make the widget invisible. More... | |
Public Member Functions inherited from Engines::Widget | |
Widget (GUI &gui, const Common::UString &tag) | |
virtual | ~Widget () |
const Common::UString & | getTag () const |
Get the widget's tag. More... | |
bool | isActive () const |
Was the widget activated? More... | |
bool | isVisible () const |
Is the widget visible? More... | |
bool | isDisabled () const |
Is the widget disabled? More... | |
bool | isInvisible () const |
Is the widget invisible (never visible)? More... | |
Widget * | getParent () |
const Widget * | getParent () const |
Widget * | getChild (const Common::UString &childTag) |
Get the widget's child by tag. More... | |
virtual void | movePosition (float x, float y, float z) |
Move the widget, relative to its current position. More... | |
virtual void | getPosition (float &x, float &y, float &z) const |
Get the widget's position. More... | |
virtual void | setDisabled (bool disabled) |
Disable/Enable the widget. More... | |
virtual void | enter () |
The mouse entered the widget. More... | |
virtual void | leave () |
The mouse left the widget. More... | |
virtual void | mouseMove (uint8 state, float x, float y) |
The mouse was moved over the widget. More... | |
virtual void | mouseDown (uint8 state, float x, float y) |
A mouse button was pressed on the widget. More... | |
virtual void | mouseUp (uint8 state, float x, float y) |
A mouse button was released on the widget. More... | |
virtual void | mouseWheel (uint8 state, int x, int y) |
A mouse wheel was used on the widget. More... | |
virtual void | mouseDblClick (uint8 state, float x, float y) |
A mouse button was double-clicked on the widget. More... | |
virtual void | subActive (Widget &widget) |
A sub-widget was activated. More... | |
void | remove () |
Remove the widget from the GUI. More... | |
virtual void | addSub (Widget &widget) |
Add a sub-widget to the widget. More... | |
virtual void | addChild (Widget &widget) |
Add a child to the widget. More... | |
virtual void | addGroupMember (Widget &widget) |
Add a fellow group member to the widget. More... | |
virtual void | removeSub (Widget &widget) |
Remove a sub-widget from the widget. More... | |
virtual void | removeChild (Widget &widget) |
Remove a child from the widget. More... | |
virtual void | removeGroupMember (Widget &widget) |
Remove fellow group member from the widget. More... | |
Protected Member Functions | |
Graphics::Aurora::Highlightable * | getTextHighlightableComponent () const |
Graphics::Aurora::Highlightable * | getQuadHighlightableComponent () const |
Extend | createExtend (const Aurora::GFF3Struct &gff) |
Border | createBorder (const Aurora::GFF3Struct &gff) |
Text | createText (const Aurora::GFF3Struct &gff) |
Hilight | createHilight (const Aurora::GFF3Struct &gff) |
Protected Member Functions inherited from Engines::Widget | |
virtual void | signalGroupMemberActive () |
A fellow group member signaled that it is now active. More... | |
void | setActive (bool active) |
The widget's active state. More... | |
void | raiseCallbackActive (Widget &widget) |
Protected Attributes | |
float | _width |
float | _height |
uint32 | _borderDimension |
float | _r |
float | _g |
float | _b |
float | _a |
float | _unselectedR |
float | _unselectedG |
float | _unselectedB |
float | _unselectedA |
bool | _wrapped |
Common::ScopedPtr< Graphics::Aurora::GUIQuad > | _quad |
Common::ScopedPtr< Graphics::Aurora::GUIQuad > | _highlight |
Common::ScopedPtr< Graphics::Aurora::HighlightableText > | _text |
Common::ScopedPtr< Graphics::Aurora::BorderQuad > | _border |
Graphics::Aurora::SubSceneQuad * | _subScene |
bool | _highlighted |
Protected Attributes inherited from Engines::Widget | |
GUI * | _gui |
The GUI the widget belongs to. More... | |
Common::UString | _tag |
The widget's tag. More... | |
Widget * | _parent |
The widget's parent, if any. More... | |
Widget * | _owner |
The widget's owner, if any. More... | |
std::list< Widget * > | _subWidgets |
The widget's sub-widgets. More... | |
std::list< Widget * > | _children |
The widget's children. More... | |
std::list< Widget * > | _groupMembers |
The widget's fellow group members. More... | |
Definition at line 43 of file kotorjadewidget.h.
Engines::KotORJadeWidget::KotORJadeWidget | ( | GUI & | gui, |
const Common::UString & | tag | ||
) |
Definition at line 70 of file kotorjadewidget.cpp.
Engines::KotORJadeWidget::~KotORJadeWidget | ( | ) |
Definition at line 83 of file kotorjadewidget.cpp.
|
protected |
Definition at line 537 of file kotorjadewidget.cpp.
References Engines::KotORJadeWidget::Border::b, Engines::KotORJadeWidget::Border::corner, Engines::KotORJadeWidget::Border::dimension, Engines::KotORJadeWidget::Border::edge, Engines::KotORJadeWidget::Border::fill, Engines::KotORJadeWidget::Border::fillStyle, Engines::KotORJadeWidget::Border::g, Aurora::GFF3Struct::getBool(), Aurora::GFF3Struct::getString(), Aurora::GFF3Struct::getStruct(), Aurora::GFF3Struct::getUint(), Aurora::GFF3Struct::getVector(), Engines::KotORJadeWidget::Border::hasColor, Aurora::GFF3Struct::hasField(), Engines::KotORJadeWidget::Border::innerOffset, Engines::KotORJadeWidget::Border::pulsing, and Engines::KotORJadeWidget::Border::r.
Referenced by Engines::WidgetCheckBox::load(), and load().
|
protected |
Definition at line 525 of file kotorjadewidget.cpp.
References Aurora::GFF3Struct::getSint(), Aurora::GFF3Struct::getStruct(), Engines::KotORJadeWidget::Extend::h, Aurora::GFF3Struct::hasField(), Engines::KotORJadeWidget::Extend::w, Engines::KotORJadeWidget::Extend::x, and Engines::KotORJadeWidget::Extend::y.
Referenced by load().
|
protected |
Definition at line 595 of file kotorjadewidget.cpp.
References Engines::KotORJadeWidget::Hilight::fill, Aurora::GFF3Struct::getString(), Aurora::GFF3Struct::getStruct(), and Aurora::GFF3Struct::hasField().
Referenced by load().
void Engines::KotORJadeWidget::createText | ( | const Common::UString & | font, |
const Common::UString & | str | ||
) |
Initialize the text within this widget.
Definition at line 321 of file kotorjadewidget.cpp.
References _height, _text, _width, FontMan, Graphics::Aurora::FontHandle::getFont(), Graphics::Font::getHeight(), Engines::Widget::getPosition(), Engines::Widget::getTag(), Graphics::Font::getWidth(), MAX(), and Common::ScopedPtrBase< T, Deallocator >::reset().
Referenced by load(), and Engines::KotOR::OptionsMenu::OptionsMenu().
|
protected |
Definition at line 559 of file kotorjadewidget.cpp.
References Engines::KotORJadeWidget::Text::b, Common::UString::clear(), Engines::KotORJadeWidget::Text::font, Engines::KotORJadeWidget::Text::g, Aurora::GFF3Struct::getBool(), Aurora::GFF3Struct::getString(), Aurora::GFF3Struct::getStruct(), Aurora::GFF3Struct::getUint(), Aurora::GFF3Struct::getVector(), Engines::KotORJadeWidget::Text::halign, Aurora::GFF3Struct::hasField(), Graphics::Aurora::kHAlignCenter, Aurora::kStrRefInvalid, Graphics::Aurora::kVAlignMiddle, Graphics::Aurora::kVAlignTop, Engines::KotORJadeWidget::Text::pulsing, Engines::KotORJadeWidget::Text::r, Engines::KotORJadeWidget::Text::strRef, TalkMan, Engines::KotORJadeWidget::Text::text, and Engines::KotORJadeWidget::Text::valign.
float Engines::KotORJadeWidget::getBorderDimension | ( | ) | const |
Definition at line 240 of file kotorjadewidget.cpp.
References _borderDimension.
Referenced by Engines::WidgetListBox::positionItemWidgets().
|
virtual |
Get the widget's height.
Reimplemented from Engines::Widget.
Definition at line 508 of file kotorjadewidget.cpp.
References _height.
Referenced by Engines::KotOR::CharacterGenerationMenu::CharacterGenerationMenu(), Engines::KotOR::ClassSelectionMenu::ClassSelectionMenu(), Engines::KotOR::ConfirmDialog::ConfirmDialog(), Engines::KotOR::ContainerMenu::ContainerMenu(), Engines::KotOR::CustomCharPanel::CustomCharPanel(), Engines::KotOR2::GUI::initWidget(), Engines::WidgetProgressbar::load(), Engines::KotOR::GUI::loadWidget(), Engines::Jade::GUI::loadWidget(), Engines::WidgetListBox::positionItemWidgets(), Engines::KotOR::QuickCharPanel::QuickCharPanel(), Engines::KotOR::QuickOrCustomPanel::QuickOrCustomPanel(), Engines::WidgetListBox::refreshItemWidgets(), and Engines::WidgetListBox::setHeight().
|
protected |
Definition at line 521 of file kotorjadewidget.cpp.
References _quad, and Common::ScopedPtrBase< T, Deallocator >::get().
Referenced by Engines::WidgetCheckBox::enter(), Engines::WidgetCheckBox::leave(), Engines::WidgetButton::load(), Engines::WidgetCheckBox::load(), Engines::WidgetProtoItem::load(), setHighlight(), and Engines::WidgetButton::setStaticHighlight().
float Engines::KotORJadeWidget::getTextHeight | ( | const Common::UString & | text | ) | const |
Definition at line 365 of file kotorjadewidget.cpp.
References _text.
Referenced by Engines::WidgetListBox::refreshItemWidgets().
|
protected |
Definition at line 517 of file kotorjadewidget.cpp.
References _text, and Common::ScopedPtrBase< T, Deallocator >::get().
Referenced by Engines::WidgetCheckBox::enter(), Engines::WidgetCheckBox::leave(), Engines::WidgetCheckBox::load(), Engines::WidgetButton::load(), Engines::WidgetProtoItem::load(), and setHighlight().
|
virtual |
Get the widget's width.
Reimplemented from Engines::Widget.
Definition at line 504 of file kotorjadewidget.cpp.
References _width.
Referenced by Engines::KotOR::CharacterGenerationMenu::CharacterGenerationMenu(), Engines::KotOR::ClassSelectionMenu::ClassSelectionMenu(), Engines::KotOR::ConfirmDialog::ConfirmDialog(), Engines::KotOR::ContainerMenu::ContainerMenu(), Engines::WidgetListBox::createScrollbar(), Engines::KotOR::CustomCharPanel::CustomCharPanel(), Engines::KotOR2::GUI::initWidget(), Engines::WidgetProgressbar::load(), Engines::KotOR::GUI::loadWidget(), Engines::Jade::GUI::loadWidget(), Engines::KotOR::OptionsMenu::OptionsMenu(), Engines::WidgetListBox::positionItemWidgets(), Engines::KotOR::QuickCharPanel::QuickCharPanel(), and Engines::KotOR::QuickOrCustomPanel::QuickOrCustomPanel().
|
virtual |
Hide the widget.
Reimplemented from Engines::Widget.
Reimplemented in Engines::KotORInventoryItem, Engines::WidgetProgressbar, and Engines::WidgetScrollbar.
Definition at line 394 of file kotorjadewidget.cpp.
References _border, _highlight, _quad, _subScene, _text, Engines::Widget::hide(), Graphics::Renderable::hide(), and Engines::Widget::isVisible().
Referenced by Engines::KotOR::MenuEquipment::fixateOnSlot(), Engines::WidgetScrollbar::hide(), Engines::WidgetProgressbar::hide(), Engines::KotORInventoryItem::hide(), Engines::WidgetListBox::refreshItemWidgets(), Engines::KotOR::HUD::setPortrait(), Engines::KotOR::OptionsGraphicsAdvancedMenu::updateAnisotropy(), Engines::KotOR::OptionsGraphicsAdvancedMenu::updateAntiAliasing(), Engines::KotOR::OptionsGameplayMenu::updateDifficulty(), Engines::KotOR::OptionsSoundAdvancedMenu::updateEAX(), and Engines::KotOR::OptionsGraphicsAdvancedMenu::updateTextureQuality().
bool Engines::KotORJadeWidget::isHighlight | ( | ) |
If the widget is highlighted.
Definition at line 317 of file kotorjadewidget.cpp.
References _highlighted.
|
virtual |
Reimplemented in Engines::WidgetListBox, Engines::WidgetProtoItem, Engines::WidgetPanel, Engines::WidgetProgressbar, Engines::KotORInventoryItem, Engines::WidgetButton, Engines::WidgetCheckBox, Engines::WidgetLabel, Engines::WidgetScrollbar, and Engines::WidgetSlider.
Definition at line 86 of file kotorjadewidget.cpp.
References _a, _b, _border, _borderDimension, _g, _height, _highlight, _quad, _r, _text, _width, Engines::KotORJadeWidget::Border::b, Engines::KotORJadeWidget::Text::b, Engines::KotORJadeWidget::Border::corner, createBorder(), createExtend(), createHilight(), createText(), Engines::KotORJadeWidget::Border::dimension, Engines::KotORJadeWidget::Border::edge, Common::UString::empty(), Engines::KotORJadeWidget::Border::fill, Engines::KotORJadeWidget::Hilight::fill, Engines::KotORJadeWidget::Text::font, FontMan, Engines::KotORJadeWidget::Border::g, Engines::KotORJadeWidget::Text::g, Aurora::GFF3Struct::getDouble(), Graphics::Aurora::FontHandle::getFont(), Graphics::Font::getHeight(), Engines::Widget::getTag(), Aurora::GFF3Struct::getVector(), Engines::KotORJadeWidget::Extend::h, Engines::KotORJadeWidget::Text::halign, Engines::KotORJadeWidget::Border::hasColor, Engines::KotORJadeWidget::Border::r, Engines::KotORJadeWidget::Text::r, Common::ScopedPtrBase< T, Deallocator >::reset(), Engines::Widget::setPosition(), Engines::KotORJadeWidget::Text::text, Engines::KotORJadeWidget::Text::valign, Engines::KotORJadeWidget::Extend::w, Engines::KotORJadeWidget::Extend::x, and Engines::KotORJadeWidget::Extend::y.
Referenced by Engines::Jade::GUI::createWidget(), Engines::KotOR::GUI::createWidget(), Engines::WidgetScrollbar::load(), Engines::WidgetSlider::load(), Engines::WidgetLabel::load(), Engines::WidgetCheckBox::load(), Engines::WidgetButton::load(), Engines::WidgetProgressbar::load(), Engines::WidgetPanel::load(), Engines::WidgetListBox::load(), and Engines::WidgetProtoItem::load().
void Engines::KotORJadeWidget::setBorderColor | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
Definition at line 207 of file kotorjadewidget.cpp.
References _border.
Referenced by Engines::KotOR::PartySelectionGUI::onSelectionChanged().
void Engines::KotORJadeWidget::setClickable | ( | bool | clickable | ) |
Set the widget clickable, or not clickable.
Definition at line 162 of file kotorjadewidget.cpp.
References _highlight, _quad, and _text.
Referenced by setInvisible().
void Engines::KotORJadeWidget::setColor | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
Definition at line 202 of file kotorjadewidget.cpp.
References _quad.
Referenced by Engines::KotOR::OptionsAutoPauseMenu::OptionsAutoPauseMenu(), Engines::KotOR::OptionsGameplayMenu::OptionsGameplayMenu(), Engines::KotOR::OptionsGraphicsAdvancedMenu::OptionsGraphicsAdvancedMenu(), Engines::KotOR::OptionsGraphicsMenu::OptionsGraphicsMenu(), Engines::KotOR::OptionsMouseSettingsMenu::OptionsMouseSettingsMenu(), and Engines::KotOR::OptionsSoundAdvancedMenu::OptionsSoundAdvancedMenu().
void Engines::KotORJadeWidget::setFill | ( | const Common::UString & | fill | ) |
Definition at line 178 of file kotorjadewidget.cpp.
References _borderDimension, _height, _quad, _width, Common::UString::empty(), Engines::Widget::getPosition(), Engines::Widget::getTag(), Engines::Widget::isVisible(), and Common::ScopedPtrBase< T, Deallocator >::reset().
Referenced by Engines::KotOR2::CharacterGenerationPortraitMenu::callbackActive(), Engines::KotOR::CharacterGenerationPortraitMenu::callbackActive(), Engines::KotOR2::CharacterGeneration::CharacterGeneration(), Engines::KotOR::CharacterGenerationMenu::CharacterGenerationMenu(), Engines::KotOR::MenuEquipment::fillEquipedItems(), Engines::KotOR::LoadScreen::LoadScreen(), Engines::Jade::MainMenu::MainMenu(), Engines::KotOR::HUD::setPortrait(), Engines::KotOR::PartySelectionGUI::setSlotTexture(), Engines::WidgetCheckBox::setState(), Engines::KotOR2::CharacterGeneration::showPortrait(), and Engines::KotOR::CharacterGenerationMenu::showPortrait().
void Engines::KotORJadeWidget::setFont | ( | const Common::UString & | fnt | ) |
Change the font for this widget.
Definition at line 340 of file kotorjadewidget.cpp.
References _text.
|
virtual |
Set the height of the widget.
Reimplemented in Engines::WidgetListBox, and Engines::WidgetScrollbar.
Definition at line 476 of file kotorjadewidget.cpp.
References _border, _height, _highlight, _quad, and _text.
Referenced by Engines::KotOR2::GUI::initWidget(), Engines::Jade::MainMenu::MainMenu(), Engines::WidgetListBox::refreshItemWidgets(), Engines::WidgetScrollbar::setHeight(), Engines::WidgetListBox::setHeight(), and Engines::KotOR::DialogGUIBase::update().
void Engines::KotORJadeWidget::setHighlight | ( | const Common::UString & | hilight | ) |
Definition at line 244 of file kotorjadewidget.cpp.
References _borderDimension, _height, _highlight, _width, Common::UString::empty(), Engines::Widget::getPosition(), Engines::Widget::getTag(), Engines::Widget::isVisible(), and Common::ScopedPtrBase< T, Deallocator >::reset().
Referenced by Engines::KotOR::MenuEquipment::callbackRun(), Engines::WidgetProtoItem::enter(), Engines::WidgetButton::enter(), Engines::KotOR::MenuEquipment::fixateOnSlot(), Engines::KotOR::MenuEquipment::hide(), Engines::WidgetProtoItem::leave(), Engines::WidgetButton::leave(), Engines::KotOR::PartySelectionGUI::loadConfiguration(), Engines::WidgetListBox::refreshItemWidgets(), Engines::WidgetButton::setDisableHighlight(), Engines::WidgetButton::setPermanentHighlight(), Engines::WidgetCheckBox::setState(), Engines::KotOR::MenuEquipment::show(), and Engines::KotOR::Menu::showMenu().
void Engines::KotORJadeWidget::setHighlight | ( | bool | highlight | ) |
Set if the widget should be highlighted.
Definition at line 268 of file kotorjadewidget.cpp.
References _highlight, _highlighted, _quad, _text, _unselectedA, _unselectedB, _unselectedG, _unselectedR, Graphics::Aurora::Highlightable::getHighlightedLowerBound(), getQuadHighlightableComponent(), getTextHighlightableComponent(), Graphics::Aurora::Highlightable::isHighlightable(), and Graphics::Aurora::Highlightable::setHighlighted().
void Engines::KotORJadeWidget::setHorizontalTextAlign | ( | float | halign | ) |
Definition at line 355 of file kotorjadewidget.cpp.
References _text.
Referenced by Engines::KotOR::DialogGUIBase::update().
|
virtual |
Make the widget invisible.
Reimplemented from Engines::Widget.
Definition at line 512 of file kotorjadewidget.cpp.
References setClickable(), and Engines::Widget::setInvisible().
Referenced by Engines::KotOR::MenuEquipment::fixateOnSlot(), Engines::KotOR::MainMenu::MainMenu(), Engines::KotOR::MenuEquipment::MenuEquipment(), Engines::WidgetListBox::refreshItemWidgets(), Engines::KotOR::HUD::setPortrait(), and Engines::KotOR::PartySelectionGUI::toggleSlot().
|
virtual |
Set the widget's position.
Reimplemented from Engines::Widget.
Reimplemented in Engines::KotORInventoryItem, Engines::WidgetProgressbar, and Engines::WidgetScrollbar.
Definition at line 412 of file kotorjadewidget.cpp.
References _border, _highlight, _quad, _text, Engines::Widget::getPosition(), and Engines::Widget::setPosition().
Referenced by Engines::KotOR::ConfirmDialog::ConfirmDialog(), Engines::KotOR::ContainerMenu::ContainerMenu(), Engines::KotOR2::GUI::initWidget(), Engines::KotOR::GUI::loadWidget(), Engines::Jade::GUI::loadWidget(), Engines::Jade::MainMenu::MainMenu(), Engines::KotOR::Menu::Menu(), Engines::KotOR::OptionsMenu::OptionsMenu(), Engines::WidgetListBox::refreshItemWidgets(), Engines::WidgetScrollbar::setPosition(), Engines::WidgetProgressbar::setPosition(), Engines::KotORInventoryItem::setPosition(), and Engines::KotOR::DialogGUIBase::update().
|
virtual |
Set the rotation of the widget in degrees.
Definition at line 443 of file kotorjadewidget.cpp.
References _quad.
void Engines::KotORJadeWidget::setScissor | ( | int | x, |
int | y, | ||
int | width, | ||
int | height | ||
) |
Create a scissor test over this widget.
Definition at line 171 of file kotorjadewidget.cpp.
References _quad.
Referenced by Engines::KotOR::CustomCharPanel::CustomCharPanel(), Engines::KotOR::QuickCharPanel::QuickCharPanel(), and Engines::KotOR::QuickOrCustomPanel::QuickOrCustomPanel().
void Engines::KotORJadeWidget::setSubScene | ( | Graphics::Aurora::SubSceneQuad * | subscene | ) |
Definition at line 216 of file kotorjadewidget.cpp.
References _height, _quad, _subScene, _width, Engines::Widget::getPosition(), Graphics::Aurora::SubSceneQuad::setDistance(), Graphics::Aurora::SubSceneQuad::setPosition(), Graphics::Aurora::SubSceneQuad::setSize(), and WindowMan.
Referenced by Engines::KotOR::CharacterGenerationMenu::CharacterGenerationMenu(), Engines::KotOR::MainMenu::MainMenu(), Engines::KotOR::HUD::setMinimap(), and Engines::KotOR::ClassSelectionMenu::setupClassSubScene().
|
virtual |
Set the widget's tag.
Reimplemented from Engines::Widget.
Definition at line 369 of file kotorjadewidget.cpp.
References _quad, _text, Engines::Widget::getTag(), and Engines::Widget::setTag().
void Engines::KotORJadeWidget::setText | ( | const Common::UString & | text | ) |
Definition at line 345 of file kotorjadewidget.cpp.
References _text.
Referenced by Engines::KotOR::CharacterGenerationNameMenu::callbackActive(), Engines::KotOR2::CharacterGenerationNameMenu::callbackActive(), Engines::KotOR::CharacterGenerationNameMenu::callbackKeyInput(), Engines::KotOR2::CharacterGenerationNameMenu::callbackKeyInput(), Engines::KotOR2::ClassSelection::callbackRun(), Engines::KotOR::MenuEquipment::callbackRun(), Engines::KotOR::ClassSelectionMenu::callbackRun(), Engines::KotOR::CharacterGenerationNameMenu::callbackTextInput(), Engines::KotOR2::CharacterGenerationNameMenu::callbackTextInput(), Engines::KotOR2::CharacterGeneration::CharacterGeneration(), Engines::KotOR::CharacterGenerationMenu::CharacterGenerationMenu(), Engines::KotOR2::ClassSelection::ClassSelection(), Engines::KotOR::ClassSelectionMenu::ClassSelectionMenu(), Engines::KotOR::ContainerMenu::fillFromInventory(), Engines::KotOR::MenuEquipment::fixateOnSlot(), Engines::KotOR::LoadScreen::LoadScreen(), Engines::KotOR::MenuEquipment::MenuEquipment(), Engines::KotOR::PartySelectionGUI::onSelectionChanged(), Engines::KotOR::DialogGUIBase::refresh(), Engines::KotOR::SaveLoadMenu::SaveLoadMenu(), Engines::KotOR::MenuMap::setReturnStrref(), Engines::KotOR2::CharacterGeneration::showName(), Engines::KotOR::CharacterGenerationMenu::showName(), Engines::KotOR::OptionsGraphicsAdvancedMenu::updateAnisotropy(), Engines::KotOR::OptionsGraphicsAdvancedMenu::updateAntiAliasing(), Engines::KotOR::OptionsGameplayMenu::updateDifficulty(), Engines::KotOR::OptionsSoundAdvancedMenu::updateEAX(), and Engines::KotOR::OptionsGraphicsAdvancedMenu::updateTextureQuality().
void Engines::KotORJadeWidget::setTextColor | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
Definition at line 350 of file kotorjadewidget.cpp.
References _text.
Referenced by Engines::KotOR::OptionsMenu::OptionsMenu(), and Engines::KotOR::DialogGUIBase::update().
void Engines::KotORJadeWidget::setVerticalTextAlign | ( | float | valign | ) |
Definition at line 360 of file kotorjadewidget.cpp.
References _text.
Referenced by Engines::KotOR::DialogGUIBase::update().
|
virtual |
Set the width of the widget.
Reimplemented in Engines::KotORInventoryItem, and Engines::WidgetScrollbar.
Definition at line 448 of file kotorjadewidget.cpp.
References _border, _highlight, _quad, _text, and _width.
Referenced by Engines::KotOR2::GUI::initWidget(), Engines::Jade::MainMenu::MainMenu(), Engines::WidgetScrollbar::setWidth(), Engines::KotORInventoryItem::setWidth(), and Engines::KotOR::DialogGUIBase::update().
void Engines::KotORJadeWidget::setWrapped | ( | bool | wrapped | ) |
Definition at line 212 of file kotorjadewidget.cpp.
References _wrapped.
Referenced by Engines::KotOR2::ClassSelection::ClassSelection(), and Engines::KotOR::ClassSelectionMenu::ClassSelectionMenu().
|
virtual |
Show the widget.
Reimplemented from Engines::Widget.
Reimplemented in Engines::KotORInventoryItem, Engines::WidgetProgressbar, and Engines::WidgetScrollbar.
Definition at line 378 of file kotorjadewidget.cpp.
References _border, _quad, _subScene, _text, Engines::Widget::isInvisible(), Engines::Widget::show(), and Graphics::Renderable::show().
Referenced by Engines::KotOR::MenuEquipment::fixateOnSlot(), Engines::WidgetListBox::refreshItemWidgets(), Engines::KotOR::HUD::setPortrait(), Engines::WidgetScrollbar::show(), Engines::WidgetProgressbar::show(), Engines::KotORInventoryItem::show(), Engines::KotOR::OptionsGraphicsAdvancedMenu::updateAnisotropy(), Engines::KotOR::OptionsGraphicsAdvancedMenu::updateAntiAliasing(), Engines::KotOR::OptionsGameplayMenu::updateDifficulty(), Engines::KotOR::OptionsSoundAdvancedMenu::updateEAX(), and Engines::KotOR::OptionsGraphicsAdvancedMenu::updateTextureQuality().
|
protected |
Definition at line 166 of file kotorjadewidget.h.
Referenced by load().
|
protected |
Definition at line 166 of file kotorjadewidget.h.
Referenced by load().
|
protected |
Definition at line 174 of file kotorjadewidget.h.
Referenced by hide(), Engines::WidgetScrollbar::load(), Engines::KotORInventoryItem::load(), load(), setBorderColor(), setHeight(), setPosition(), setWidth(), and show().
|
protected |
Definition at line 164 of file kotorjadewidget.h.
Referenced by getBorderDimension(), Engines::WidgetScrollbar::load(), load(), setFill(), and setHighlight().
|
protected |
Definition at line 166 of file kotorjadewidget.h.
Referenced by load().
|
protected |
Definition at line 163 of file kotorjadewidget.h.
Referenced by Engines::WidgetListBox::createScrollbar(), createText(), getHeight(), Engines::WidgetScrollbar::load(), Engines::KotORInventoryItem::load(), load(), Engines::WidgetListBox::positionItemWidgets(), Engines::WidgetListBox::refreshItemWidgets(), setFill(), Engines::WidgetScrollbar::setHeight(), Engines::WidgetListBox::setHeight(), setHeight(), setHighlight(), setSubScene(), Engines::WidgetProgressbar::update(), and Engines::WidgetPanel::WidgetPanel().
|
protected |
Definition at line 172 of file kotorjadewidget.h.
Referenced by hide(), Engines::WidgetScrollbar::load(), load(), setClickable(), setHeight(), setHighlight(), setPosition(), and setWidth().
|
protected |
Definition at line 178 of file kotorjadewidget.h.
Referenced by isHighlight(), and setHighlight().
|
protected |
Definition at line 171 of file kotorjadewidget.h.
Referenced by Engines::WidgetCheckBox::enter(), getQuadHighlightableComponent(), hide(), Engines::WidgetCheckBox::leave(), Engines::WidgetScrollbar::load(), Engines::WidgetCheckBox::load(), load(), setClickable(), setColor(), setFill(), setHeight(), setHighlight(), setPosition(), setRotation(), setScissor(), Engines::WidgetCheckBox::setState(), setSubScene(), setTag(), setWidth(), show(), and Engines::WidgetPanel::WidgetPanel().
|
protected |
Definition at line 166 of file kotorjadewidget.h.
Referenced by load().
|
protected |
Definition at line 176 of file kotorjadewidget.h.
Referenced by hide(), setSubScene(), and show().
|
protected |
Definition at line 173 of file kotorjadewidget.h.
Referenced by createText(), Engines::WidgetCheckBox::enter(), getTextHeight(), getTextHighlightableComponent(), hide(), Engines::WidgetCheckBox::leave(), Engines::WidgetCheckBox::load(), Engines::KotORInventoryItem::load(), load(), setClickable(), Engines::KotORInventoryItem::setContents(), Engines::WidgetProtoItem::setContents(), setFont(), setHeight(), setHighlight(), setHorizontalTextAlign(), setPosition(), Engines::WidgetCheckBox::setState(), setTag(), setText(), setTextColor(), setVerticalTextAlign(), setWidth(), and show().
|
protected |
Definition at line 167 of file kotorjadewidget.h.
Referenced by setHighlight().
|
protected |
Definition at line 167 of file kotorjadewidget.h.
Referenced by setHighlight().
|
protected |
Definition at line 167 of file kotorjadewidget.h.
Referenced by setHighlight().
|
protected |
Definition at line 167 of file kotorjadewidget.h.
Referenced by setHighlight().
|
protected |
Definition at line 162 of file kotorjadewidget.h.
Referenced by Engines::WidgetListBox::createScrollbar(), createText(), getWidth(), Engines::WidgetScrollbar::load(), load(), setFill(), setHighlight(), setSubScene(), Engines::WidgetScrollbar::setWidth(), Engines::KotORInventoryItem::setWidth(), setWidth(), Engines::WidgetProgressbar::update(), and Engines::WidgetPanel::WidgetPanel().
|
protected |
Definition at line 169 of file kotorjadewidget.h.
Referenced by setWrapped().