#include <tooltips.hpp>
|
| ToolTips () |
|
void | onFrame (float frameDuration) |
|
void | setEnabled (bool enabled) |
|
bool | toggleFullHelp () |
| show extra info in item tooltips (owner, script) More...
|
|
bool | getFullHelp () const |
|
void | setDelay (float delay) |
|
void | setFocusObject (const MWWorld::ConstPtr &focus) |
|
void | setFocusObjectScreenCoords (float min_x, float min_y, float max_x, float max_y) |
| set the screen-space position of the tooltip for focused object More...
|
|
bool | checkOwned () |
|
| Layout (const std::string &_layout, MyGUI::Widget *_parent=nullptr) |
|
virtual | ~Layout () |
|
MyGUI::Widget * | getWidget (const std::string &_name) |
|
template<typename T > |
void | getWidget (T *&_widget, const std::string &_name) |
|
void | setCoord (int x, int y, int w, int h) |
|
virtual void | setVisible (bool b) |
|
void | setText (const std::string &name, const std::string &caption) |
|
void | setTitle (const std::string &title) |
|
|
static std::string | getWeightString (const float weight, const std::string &prefix) |
|
static std::string | getValueString (const int value, const std::string &prefix) |
|
static std::string | getMiscString (const std::string &text, const std::string &prefix) |
|
static std::string | toString (const float value) |
|
static std::string | toString (const int value) |
|
static std::string | getCountString (const int value) |
|
static std::string | getCellRefString (const MWWorld::CellRef &cellref) |
| Returns a string containing debug tooltip information about the given cellref. More...
|
|
static void | createSkillToolTip (MyGUI::Widget *widget, int skillId) |
|
static void | createAttributeToolTip (MyGUI::Widget *widget, int attributeId) |
|
static void | createSpecializationToolTip (MyGUI::Widget *widget, const std::string &name, int specId) |
|
static void | createBirthsignToolTip (MyGUI::Widget *widget, const std::string &birthsignId) |
|
static void | createRaceToolTip (MyGUI::Widget *widget, const ESM::Race *playerRace) |
|
static void | createClassToolTip (MyGUI::Widget *widget, const ESM::Class &playerClass) |
|
static void | createMagicEffectToolTip (MyGUI::Widget *widget, short id) |
|
|
MyGUI::IntSize | getToolTipViaPtr (int count, bool image=true) |
|
MyGUI::IntSize | createToolTip (const ToolTipInfo &info, bool isFocusObject) |
|
void | position (MyGUI::IntPoint &position, MyGUI::IntSize size, MyGUI::IntSize viewportSize) |
| Adjust position for a tooltip so that it doesn't leave the screen and does not obscure the mouse cursor. More...
|
|
|
static std::string | sSchoolNames [6] = {"#{sSchoolAlteration}", "#{sSchoolConjuration}", "#{sSchoolDestruction}", "#{sSchoolIllusion}", "#{sSchoolMysticism}", "#{sSchoolRestoration}"} |
|
MWGui::ToolTips::ToolTips |
( |
| ) |
|
bool MWGui::ToolTips::checkOwned |
( |
| ) |
|
void MWGui::ToolTips::createAttributeToolTip |
( |
MyGUI::Widget * |
widget, |
|
|
int |
attributeId |
|
) |
| |
|
static |
void MWGui::ToolTips::createBirthsignToolTip |
( |
MyGUI::Widget * |
widget, |
|
|
const std::string & |
birthsignId |
|
) |
| |
|
static |
void MWGui::ToolTips::createClassToolTip |
( |
MyGUI::Widget * |
widget, |
|
|
const ESM::Class & |
playerClass |
|
) |
| |
|
static |
void MWGui::ToolTips::createMagicEffectToolTip |
( |
MyGUI::Widget * |
widget, |
|
|
short |
id |
|
) |
| |
|
static |
void MWGui::ToolTips::createRaceToolTip |
( |
MyGUI::Widget * |
widget, |
|
|
const ESM::Race * |
playerRace |
|
) |
| |
|
static |
void MWGui::ToolTips::createSkillToolTip |
( |
MyGUI::Widget * |
widget, |
|
|
int |
skillId |
|
) |
| |
|
static |
void MWGui::ToolTips::createSpecializationToolTip |
( |
MyGUI::Widget * |
widget, |
|
|
const std::string & |
name, |
|
|
int |
specId |
|
) |
| |
|
static |
MyGUI::IntSize MWGui::ToolTips::createToolTip |
( |
const ToolTipInfo & |
info, |
|
|
bool |
isFocusObject |
|
) |
| |
|
private |
- Returns
- requested tooltip size
- Parameters
-
isFocusObject | Is the object this tooltips originates from mFocusObject? |
std::string MWGui::ToolTips::getCellRefString |
( |
const MWWorld::CellRef & |
cellref | ) |
|
|
static |
Returns a string containing debug tooltip information about the given cellref.
std::string MWGui::ToolTips::getCountString |
( |
const int |
value | ) |
|
|
static |
- Returns
- blank string if count is 1, or else " (value)"
bool MWGui::ToolTips::getFullHelp |
( |
| ) |
const |
std::string MWGui::ToolTips::getMiscString |
( |
const std::string & |
text, |
|
|
const std::string & |
prefix |
|
) |
| |
|
static |
- Returns
- "prefix: text" or "" if text is empty
MyGUI::IntSize MWGui::ToolTips::getToolTipViaPtr |
( |
int |
count, |
|
|
bool |
image = true |
|
) |
| |
|
private |
- Returns
- requested tooltip size
std::string MWGui::ToolTips::getValueString |
( |
const int |
value, |
|
|
const std::string & |
prefix |
|
) |
| |
|
static |
- Returns
- "prefix: value" or "" if value is 0
std::string MWGui::ToolTips::getWeightString |
( |
const float |
weight, |
|
|
const std::string & |
prefix |
|
) |
| |
|
static |
void MWGui::ToolTips::onFrame |
( |
float |
frameDuration | ) |
|
void MWGui::ToolTips::position |
( |
MyGUI::IntPoint & |
position, |
|
|
MyGUI::IntSize |
size, |
|
|
MyGUI::IntSize |
viewportSize |
|
) |
| |
|
private |
Adjust position for a tooltip so that it doesn't leave the screen and does not obscure the mouse cursor.
void MWGui::ToolTips::setDelay |
( |
float |
delay | ) |
|
void MWGui::ToolTips::setEnabled |
( |
bool |
enabled | ) |
|
void MWGui::ToolTips::setFocusObjectScreenCoords |
( |
float |
min_x, |
|
|
float |
min_y, |
|
|
float |
max_x, |
|
|
float |
max_y |
|
) |
| |
set the screen-space position of the tooltip for focused object
bool MWGui::ToolTips::toggleFullHelp |
( |
| ) |
|
show extra info in item tooltips (owner, script)
std::string MWGui::ToolTips::toString |
( |
const float |
value | ) |
|
|
static |
std::string MWGui::ToolTips::toString |
( |
const int |
value | ) |
|
|
static |
float MWGui::ToolTips::mDelay |
|
private |
MyGUI::Widget* MWGui::ToolTips::mDynamicToolTipBox |
|
private |
Returns True if taking mFocusObject would be crime.
bool MWGui::ToolTips::mEnabled |
|
private |
float MWGui::ToolTips::mFocusToolTipX |
|
private |
float MWGui::ToolTips::mFocusToolTipY |
|
private |
bool MWGui::ToolTips::mFullHelp |
|
private |
int MWGui::ToolTips::mHorizontalScrollIndex |
|
private |
int MWGui::ToolTips::mLastMouseX |
|
private |
int MWGui::ToolTips::mLastMouseY |
|
private |
float MWGui::ToolTips::mRemainingDelay |
|
private |
int MWGui::ToolTips::mShowOwned |
|
private |
std::string MWGui::ToolTips::sSchoolNames = {"#{sSchoolAlteration}", "#{sSchoolConjuration}", "#{sSchoolDestruction}", "#{sSchoolIllusion}", "#{sSchoolMysticism}", "#{sSchoolRestoration}"} |
|
staticprivate |
The documentation for this class was generated from the following files:
- /home/travis/build/OpenMW/openmw/apps/openmw/mwgui/tooltips.hpp
- /home/travis/build/OpenMW/openmw/apps/openmw/mwgui/tooltips.cpp