#include <shop_windows.h>
Inheritance diagram for hoa_shop::private_shop::ObjectSellListWindow:


Public Member Functions | |
| void | AddEntry (hoa_utils::ustring name, uint32 count, uint32 price, uint32 sell_count) |
| Adds a new entry to the option box. | |
| void | Clear () |
| Removes all object entries from the list. | |
| void | Draw () |
| Draws the object list window and options to the screen. | |
| ObjectSellListWindow () | |
| void | Update () |
| Processes user input and updates the cursor. | |
| void | UpdateSellList () |
| Refreshes list of sellable items. | |
| ~ObjectSellListWindow () | |
Public Attributes | |
| bool | hide_options |
| When set to true, the OptionBox will not be drawn for this window. | |
| hoa_video::OptionBox | object_list |
| Contains the list of objects for sale Each option includes the name of the object and its price. | |
| std::vector< hoa_utils::ustring > | option_text |
| Contains the text that forms each option in the list. | |
****************************************************************************
Definition at line 117 of file shop_windows.h.
| hoa_shop::private_shop::ObjectSellListWindow::ObjectSellListWindow | ( | ) |
Definition at line 301 of file shop_windows.cpp.
References hide_options, object_list, hoa_video::OptionBox::SetCellSize(), hoa_video::OptionBox::SetCursorOffset(), hoa_video::OptionBox::SetFont(), hoa_video::OptionBox::SetHorizontalWrapMode(), hoa_video::OptionBox::SetOptionAlignment(), hoa_video::private_video::GUIControl::SetOwner(), hoa_video::private_video::GUIElement::SetPosition(), hoa_video::OptionBox::SetSelectMode(), hoa_video::VIDEO_MENU_EDGE_ALL, hoa_video::VIDEO_MENU_EDGE_BOTTOM, hoa_video::VIDEO_MENU_EDGE_LEFT, hoa_video::VIDEO_MENU_INSTANT, hoa_video::VIDEO_SELECT_SINGLE, hoa_video::VIDEO_WRAP_MODE_NONE, hoa_video::VIDEO_X_LEFT, hoa_video::VIDEO_Y_CENTER, and hoa_video::VIDEO_Y_TOP.
Here is the call graph for this function:

| hoa_shop::private_shop::ObjectSellListWindow::~ObjectSellListWindow | ( | ) |
Definition at line 322 of file shop_windows.cpp.
| void hoa_shop::private_shop::ObjectSellListWindow::AddEntry | ( | hoa_utils::ustring | name, | |
| uint32 | count, | |||
| uint32 | price, | |||
| uint32 | sell_count | |||
| ) |
Adds a new entry to the option box.
| name | The name of the object for this entry | |
| count | The number of objects in the current inventory | |
| price | The price of the object in this entry |
Definition at line 336 of file shop_windows.cpp.
References hoa_utils::MakeUnicodeString(), hoa_utils::NumberToString(), and option_text.
Referenced by UpdateSellList().
Here is the call graph for this function:

| void hoa_shop::private_shop::ObjectSellListWindow::Clear | ( | ) |
Removes all object entries from the list.
Definition at line 328 of file shop_windows.cpp.
References hoa_shop::ShopMode::_current_inv, hoa_shop::private_shop::current_shop, object_list, option_text, and hoa_video::OptionBox::SetOptions().
Referenced by UpdateSellList().
Here is the call graph for this function:

| void hoa_shop::private_shop::ObjectSellListWindow::Draw | ( | ) | [virtual] |
Draws the object list window and options to the screen.
Reimplemented from hoa_video::MenuWindow.
Definition at line 412 of file shop_windows.cpp.
References hoa_shop::ShopMode::_state, hoa_shop::private_shop::current_shop, hoa_video::OptionBox::Draw(), hide_options, object_list, option_text, and hoa_shop::private_shop::SHOP_STATE_SELL.
Referenced by hoa_shop::ShopMode::Draw().
Here is the call graph for this function:

| void hoa_shop::private_shop::ObjectSellListWindow::Update | ( | ) |
Processes user input and updates the cursor.
Definition at line 344 of file shop_windows.cpp.
References hoa_shop::ShopMode::_action_window, hoa_shop::ShopMode::_confirm_window, hoa_shop::ShopMode::_current_inv, hoa_shop::ShopMode::_info_window, hoa_shop::ShopMode::_sales_revenue, hoa_shop::ShopMode::_sell_objects_quantities, hoa_shop::ShopMode::_shop_sounds, hoa_shop::ShopMode::_state, hoa_input::GameInput::CancelPress(), hoa_input::GameInput::ConfirmPress(), hoa_shop::private_shop::current_shop, hoa_input::GameInput::DownPress(), hoa_video::OptionBox::GetSelection(), hoa_system::GameSystem::GetUpdateTime(), hoa_video::OptionBox::HandleConfirmKey(), hoa_video::OptionBox::HandleDownKey(), hoa_video::OptionBox::HandleUpKey(), hide_options, hoa_input::InputManager, hoa_input::GameInput::LeftPress(), object_list, hoa_shop::private_shop::ShopActionWindow::options, hoa_shop::private_shop::ConfirmWindow::options, hoa_input::GameInput::RightPress(), hoa_video::OptionBox::SetCursorState(), hoa_shop::private_shop::ObjectInfoWindow::SetObject(), hoa_shop::private_shop::SHOP_STATE_ACTION, hoa_shop::private_shop::SHOP_STATE_CONFIRM, hoa_video::MenuWindow::Show(), hoa_system::SystemManager, hoa_video::OptionBox::Update(), hoa_shop::private_shop::ShopActionWindow::UpdateFinanceText(), UpdateSellList(), hoa_input::GameInput::UpPress(), hoa_video::VIDEO_CURSOR_STATE_HIDDEN, and hoa_video::VIDEO_CURSOR_STATE_VISIBLE.
Referenced by hoa_shop::ShopMode::Update().
Here is the call graph for this function:

| void hoa_shop::private_shop::ObjectSellListWindow::UpdateSellList | ( | ) |
Refreshes list of sellable items.
Definition at line 395 of file shop_windows.cpp.
References hoa_shop::ShopMode::_current_inv, hoa_shop::ShopMode::_sell_objects_quantities, AddEntry(), Clear(), hoa_shop::private_shop::current_shop, hoa_global::GameGlobal::GetInventory(), hoa_global::GlobalManager, object_list, option_text, hoa_video::OptionBox::SetOptions(), and hoa_video::OptionBox::SetSize().
Referenced by hoa_shop::ShopMode::Reset(), hoa_shop::private_shop::ConfirmWindow::Update(), Update(), and hoa_shop::private_shop::ShopActionWindow::Update().
Here is the call graph for this function:

When set to true, the OptionBox will not be drawn for this window.
Definition at line 147 of file shop_windows.h.
Referenced by Draw(), ObjectSellListWindow(), Update(), and hoa_shop::private_shop::ShopActionWindow::Update().
Contains the list of objects for sale Each option includes the name of the object and its price.
Definition at line 155 of file shop_windows.h.
Referenced by Clear(), Draw(), ObjectSellListWindow(), hoa_shop::ShopMode::Reset(), Update(), hoa_shop::private_shop::ShopActionWindow::Update(), and UpdateSellList().
Contains the text that forms each option in the list.
Definition at line 150 of file shop_windows.h.
Referenced by AddEntry(), Clear(), Draw(), and UpdateSellList().
1.5.1