#include <tradewindow.hpp>
|
| TradeWindow () |
|
void | setPtr (const MWWorld::Ptr &actor) |
| Open this object in the GUI, for windows that support it. More...
|
|
void | onFrame (float dt) |
| Called every frame if the window is in an active GUI mode. More...
|
|
void | clear () |
| Clear any state specific to the running game. More...
|
|
void | borrowItem (int index, size_t count) |
|
void | returnItem (int index, size_t count) |
|
int | getMerchantServices () |
|
virtual bool | exit () |
| Gracefully exits the window. More...
|
|
virtual void | resetReference () |
|
| WindowBase (const std::string &parLayout) |
|
virtual MyGUI::Widget * | getDefaultKeyFocus () |
|
virtual void | onOpen () |
| Notify that window has been made visible. More...
|
|
virtual void | onClose () |
| Notify that window has been hidden. More...
|
|
virtual void | setVisible (bool visible) |
| Sets the visibility of the window. More...
|
|
bool | isVisible () |
| Returns the visibility state of the window. More...
|
|
void | center () |
|
virtual void | onResChange (int width, int height) |
| Called when GUI viewport changes size. More...
|
|
| 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) |
|
void | setText (const std::string &name, const std::string &caption) |
|
void | setTitle (const std::string &title) |
|
| ReferenceInterface () |
|
virtual | ~ReferenceInterface () |
|
void | checkReferenceAvailable () |
| closes the window, if the MW-reference has become unavailable More...
|
|
|
void | sellToNpc (const MWWorld::Ptr &item, int count, bool boughtItem) |
| only used for adjusting the gold balance More...
|
|
void | buyFromNpc (const MWWorld::Ptr &item, int count, bool soldItem) |
| only used for adjusting the gold balance More...
|
|
void | updateOffer () |
|
void | onItemSelected (int index) |
|
void | sellItem (MyGUI::Widget *sender, int count) |
|
void | onFilterChanged (MyGUI::Widget *_sender) |
|
void | onOfferButtonClicked (MyGUI::Widget *_sender) |
|
void | onAccept (MyGUI::EditBox *sender) |
|
void | onCancelButtonClicked (MyGUI::Widget *_sender) |
|
void | onMaxSaleButtonClicked (MyGUI::Widget *_sender) |
|
void | onIncreaseButtonPressed (MyGUI::Widget *_sender, int _left, int _top, MyGUI::MouseButton _id) |
|
void | onDecreaseButtonPressed (MyGUI::Widget *_sender, int _left, int _top, MyGUI::MouseButton _id) |
|
void | onBalanceButtonReleased (MyGUI::Widget *_sender, int _left, int _top, MyGUI::MouseButton _id) |
|
void | onBalanceValueChanged (int value) |
|
void | onRepeatClick (MyGUI::Widget *widget, MyGUI::ControllerItem *controller) |
|
void | addRepeatController (MyGUI::Widget *widget) |
|
void | onIncreaseButtonTriggered () |
|
void | onDecreaseButtonTriggered () |
|
void | addOrRemoveGold (int gold, const MWWorld::Ptr &actor) |
|
void | updateLabels () |
|
virtual void | onReferenceUnavailable () |
| called when reference has become unavailable More...
|
|
int | getMerchantGold () |
|
void | restock () |
|
MWGui::TradeWindow::TradeWindow |
( |
| ) |
|
void MWGui::TradeWindow::addOrRemoveGold |
( |
int |
gold, |
|
|
const MWWorld::Ptr & |
actor |
|
) |
| |
|
private |
void MWGui::TradeWindow::addRepeatController |
( |
MyGUI::Widget * |
widget | ) |
|
|
private |
void MWGui::TradeWindow::borrowItem |
( |
int |
index, |
|
|
size_t |
count |
|
) |
| |
only used for adjusting the gold balance
void MWGui::TradeWindow::clear |
( |
| ) |
|
|
inlinevirtual |
bool MWGui::TradeWindow::exit |
( |
| ) |
|
|
virtual |
int MWGui::TradeWindow::getMerchantGold |
( |
| ) |
|
|
private |
int MWGui::TradeWindow::getMerchantServices |
( |
| ) |
|
void MWGui::TradeWindow::onAccept |
( |
MyGUI::EditBox * |
sender | ) |
|
|
private |
void MWGui::TradeWindow::onBalanceButtonReleased |
( |
MyGUI::Widget * |
_sender, |
|
|
int |
_left, |
|
|
int |
_top, |
|
|
MyGUI::MouseButton |
_id |
|
) |
| |
|
private |
void MWGui::TradeWindow::onBalanceValueChanged |
( |
int |
value | ) |
|
|
private |
void MWGui::TradeWindow::onCancelButtonClicked |
( |
MyGUI::Widget * |
_sender | ) |
|
|
private |
void MWGui::TradeWindow::onDecreaseButtonPressed |
( |
MyGUI::Widget * |
_sender, |
|
|
int |
_left, |
|
|
int |
_top, |
|
|
MyGUI::MouseButton |
_id |
|
) |
| |
|
private |
void MWGui::TradeWindow::onDecreaseButtonTriggered |
( |
| ) |
|
|
private |
void MWGui::TradeWindow::onFilterChanged |
( |
MyGUI::Widget * |
_sender | ) |
|
|
private |
void MWGui::TradeWindow::onFrame |
( |
float |
duration | ) |
|
|
virtual |
Called every frame if the window is in an active GUI mode.
Reimplemented from MWGui::WindowBase.
void MWGui::TradeWindow::onIncreaseButtonPressed |
( |
MyGUI::Widget * |
_sender, |
|
|
int |
_left, |
|
|
int |
_top, |
|
|
MyGUI::MouseButton |
_id |
|
) |
| |
|
private |
void MWGui::TradeWindow::onIncreaseButtonTriggered |
( |
| ) |
|
|
private |
void MWGui::TradeWindow::onItemSelected |
( |
int |
index | ) |
|
|
private |
void MWGui::TradeWindow::onMaxSaleButtonClicked |
( |
MyGUI::Widget * |
_sender | ) |
|
|
private |
void MWGui::TradeWindow::onOfferButtonClicked |
( |
MyGUI::Widget * |
_sender | ) |
|
|
private |
void MWGui::TradeWindow::onReferenceUnavailable |
( |
| ) |
|
|
privatevirtual |
void MWGui::TradeWindow::onRepeatClick |
( |
MyGUI::Widget * |
widget, |
|
|
MyGUI::ControllerItem * |
controller |
|
) |
| |
|
private |
void MWGui::TradeWindow::resetReference |
( |
| ) |
|
|
virtual |
void MWGui::TradeWindow::restock |
( |
| ) |
|
|
private |
void MWGui::TradeWindow::returnItem |
( |
int |
index, |
|
|
size_t |
count |
|
) |
| |
void MWGui::TradeWindow::sellItem |
( |
MyGUI::Widget * |
sender, |
|
|
int |
count |
|
) |
| |
|
private |
only used for adjusting the gold balance
Open this object in the GUI, for windows that support it.
Reimplemented from MWGui::WindowBase.
void MWGui::TradeWindow::updateLabels |
( |
| ) |
|
|
private |
void MWGui::TradeWindow::updateOffer |
( |
| ) |
|
|
private |
MyGUI::Widget* MWGui::TradeWindow::mBottomPane |
|
private |
MyGUI::Button* MWGui::TradeWindow::mCancelButton |
|
private |
int MWGui::TradeWindow::mCurrentBalance |
|
private |
int MWGui::TradeWindow::mCurrentMerchantOffer |
|
private |
MyGUI::Button* MWGui::TradeWindow::mDecreaseButton |
|
private |
MyGUI::Button* MWGui::TradeWindow::mFilterAll |
|
private |
MyGUI::Button* MWGui::TradeWindow::mFilterApparel |
|
private |
MyGUI::Button* MWGui::TradeWindow::mFilterMagic |
|
private |
MyGUI::Button* MWGui::TradeWindow::mFilterMisc |
|
private |
MyGUI::Button* MWGui::TradeWindow::mFilterWeapon |
|
private |
MyGUI::Button* MWGui::TradeWindow::mIncreaseButton |
|
private |
int MWGui::TradeWindow::mItemToSell |
|
private |
MyGUI::Button* MWGui::TradeWindow::mMaxSaleButton |
|
private |
MyGUI::TextBox* MWGui::TradeWindow::mMerchantGold |
|
private |
MyGUI::Button* MWGui::TradeWindow::mOfferButton |
|
private |
MyGUI::TextBox* MWGui::TradeWindow::mPlayerGold |
|
private |
MyGUI::TextBox* MWGui::TradeWindow::mTotalBalanceLabel |
|
private |
const float MWGui::TradeWindow::sBalanceChangeInitialPause = 0.5f |
|
staticprivate |
const float MWGui::TradeWindow::sBalanceChangeInterval = 0.1f |
|
staticprivate |
The documentation for this class was generated from the following files: