#include <shoplistbox.h>

Same as the Guichan list box except this one doesn't have a background, instead completely relying on the scroll area. It also adds selection listener functionality.
Definition at line 36 of file shoplistbox.h.
Public Member Functions | |
| ShopListBox (gcn::ListModel *listModel) | |
| Constructor. | |
| ShopListBox (gcn::ListModel *listModel, ShopItems *shopListModel) | |
| Constructor with shopitems. | |
| void | draw (gcn::Graphics *graphics) |
| Draws the list box. | |
| unsigned int | getRowHeight () const |
| Returns the height of a row. | |
| void | setPlayersMoney (int money) |
| gives information about the current player's money | |
| void | adjustSize () |
| Adjust List draw size. | |
| void | setPriceCheck (bool check) |
| Set on/off the disabling of too expensive items. | |
Private Attributes | |
| int | mPlayerMoney |
| ShopItems * | mShopItems |
| Keeps another pointer to the same listModel, permitting to use the ShopItems specific functions. | |
| unsigned int | mRowHeight |
| Row Height. | |
| bool | mPriceCheck |
Static Private Attributes | |
| static float | mAlpha = 1.0 |
| ShopListBox::ShopListBox | ( | gcn::ListModel * | listModel | ) |
| ShopListBox::ShopListBox | ( | gcn::ListModel * | listModel, | |
| ShopItems * | shopListModel | |||
| ) |
| void ShopListBox::draw | ( | gcn::Graphics * | graphics | ) |
| unsigned int ShopListBox::getRowHeight | ( | ) | const [inline] |
| void ShopListBox::setPlayersMoney | ( | int | money | ) |
| void ShopListBox::adjustSize | ( | ) |
| void ShopListBox::setPriceCheck | ( | bool | check | ) |
Set on/off the disabling of too expensive items.
(Good for selling mode.)
Definition at line 125 of file shoplistbox.cpp.
int ShopListBox::mPlayerMoney [private] |
Definition at line 76 of file shoplistbox.h.
ShopItems* ShopListBox::mShopItems [private] |
Keeps another pointer to the same listModel, permitting to use the ShopItems specific functions.
Definition at line 82 of file shoplistbox.h.
unsigned int ShopListBox::mRowHeight [private] |
float ShopListBox::mAlpha = 1.0 [static, private] |
bool ShopListBox::mPriceCheck [private] |
Definition at line 88 of file shoplistbox.h.
1.5.5