#include <menu_views.h>
Inheritance diagram for hoa_menu::private_menu::EquipWindow:


Public Member Functions | |
| void | Activate (bool new_status) |
| Activates the window. | |
| void | Draw () |
| Draws window. | |
| EquipWindow () | |
| bool | IsActive () |
| Checks to see if the equipment window is active. | |
| void | Update () |
| Performs updates. | |
| ~EquipWindow () | |
Private Member Functions | |
| void | _InitCharSelect () |
| Set up char selector. | |
| void | _InitEquipmentList () |
| Set up replacement selector. | |
| void | _InitEquipmentSelect () |
| Set up equipment selector. | |
| void | _UpdateEquipList () |
| Updates the equipment list. | |
Private Attributes | |
| uint32 | _active_box |
| Flag to specify the active option box. | |
| hoa_video::OptionBox | _char_select |
| Character selector. | |
| std::vector< hoa_video::StillImage > | _equip_images |
| equipment images | |
| hoa_video::OptionBox | _equip_list |
| Replacement selector. | |
| hoa_video::OptionBox | _equip_select |
| Equipment selector. | |
****************************************************************************
This window changes a character's equipment. You can choose a piece of equipment and replace with an item from the given list.
Definition at line 410 of file menu_views.h.
| hoa_menu::private_menu::EquipWindow::EquipWindow | ( | ) |
Definition at line 1027 of file menu_views.cpp.
References _char_select, _equip_images, _InitCharSelect(), _InitEquipmentList(), _InitEquipmentSelect(), hoa_menu::private_menu::EQUIP_CATEGORY_SIZE, hoa_global::GameGlobal::GetActiveParty(), hoa_global::GlobalParty::GetActorAtIndex(), hoa_global::GlobalCharacter::GetArmArmorEquipped(), hoa_video::StillImage::GetFilename(), hoa_global::GlobalCharacter::GetHeadArmorEquipped(), hoa_global::GlobalObject::GetIconImage(), hoa_global::GlobalCharacter::GetLegArmorEquipped(), hoa_video::OptionBox::GetSelection(), hoa_global::GlobalCharacter::GetTorsoArmorEquipped(), hoa_global::GlobalActor::GetWeaponEquipped(), hoa_global::GlobalManager, hoa_video::GameVideo::LoadImage(), hoa_video::StillImage::SetFilename(), and hoa_video::VideoManager.
Here is the call graph for this function:

| hoa_menu::private_menu::EquipWindow::~EquipWindow | ( | ) |
Definition at line 1061 of file menu_views.cpp.
References _equip_images, hoa_video::GameVideo::DeleteImage(), hoa_menu::private_menu::EQUIP_CATEGORY_SIZE, and hoa_video::VideoManager.
Here is the call graph for this function:

| void hoa_menu::private_menu::EquipWindow::_InitCharSelect | ( | ) | [private] |
Set up char selector.
Definition at line 1104 of file menu_views.cpp.
References _char_select, hoa_global::GameGlobal::GetActiveParty(), hoa_global::GlobalParty::GetPartySize(), hoa_global::GlobalManager, hoa_utils::MakeUnicodeString(), hoa_video::OptionBox::SetCellSize(), hoa_video::OptionBox::SetCursorOffset(), hoa_video::OptionBox::SetCursorState(), hoa_video::OptionBox::SetFont(), hoa_video::OptionBox::SetHorizontalWrapMode(), hoa_video::OptionBox::SetOptionAlignment(), hoa_video::OptionBox::SetOptions(), hoa_video::private_video::GUIElement::SetPosition(), hoa_video::OptionBox::SetSelection(), hoa_video::OptionBox::SetSize(), hoa_video::OptionBox::SetVerticalWrapMode(), hoa_video::VIDEO_CURSOR_STATE_HIDDEN, hoa_video::VIDEO_WRAP_MODE_SHIFTED, hoa_video::VIDEO_WRAP_MODE_STRAIGHT, hoa_video::VIDEO_X_LEFT, and hoa_video::VIDEO_Y_CENTER.
Referenced by EquipWindow().
Here is the call graph for this function:

| void hoa_menu::private_menu::EquipWindow::_InitEquipmentList | ( | ) | [private] |
Set up replacement selector.
Definition at line 1084 of file menu_views.cpp.
References _equip_list, _UpdateEquipList(), hoa_video::OptionBox::SetCellSize(), hoa_video::OptionBox::SetCursorOffset(), hoa_video::OptionBox::SetCursorState(), hoa_video::OptionBox::SetFont(), hoa_video::OptionBox::SetHorizontalWrapMode(), hoa_video::OptionBox::SetOptionAlignment(), hoa_video::private_video::GUIElement::SetPosition(), hoa_video::OptionBox::SetSelection(), hoa_video::OptionBox::SetVerticalWrapMode(), hoa_video::VIDEO_CURSOR_STATE_HIDDEN, hoa_video::VIDEO_WRAP_MODE_SHIFTED, hoa_video::VIDEO_WRAP_MODE_STRAIGHT, hoa_video::VIDEO_X_LEFT, and hoa_video::VIDEO_Y_CENTER.
Referenced by EquipWindow().
Here is the call graph for this function:

| void hoa_menu::private_menu::EquipWindow::_InitEquipmentSelect | ( | ) | [private] |
Set up equipment selector.
Definition at line 1133 of file menu_views.cpp.
References _equip_select, _UpdateEquipList(), hoa_menu::private_menu::EQUIP_CATEGORY_SIZE, hoa_menu::private_menu::EQUIP_WEAPON, hoa_video::OptionBox::SetCellSize(), hoa_video::OptionBox::SetCursorOffset(), hoa_video::OptionBox::SetCursorState(), hoa_video::OptionBox::SetFont(), hoa_video::OptionBox::SetHorizontalWrapMode(), hoa_video::OptionBox::SetOptionAlignment(), hoa_video::private_video::GUIElement::SetPosition(), hoa_video::OptionBox::SetSelection(), hoa_video::OptionBox::SetSize(), hoa_video::OptionBox::SetVerticalWrapMode(), hoa_video::VIDEO_CURSOR_STATE_HIDDEN, hoa_video::VIDEO_WRAP_MODE_SHIFTED, hoa_video::VIDEO_WRAP_MODE_STRAIGHT, hoa_video::VIDEO_X_LEFT, and hoa_video::VIDEO_Y_CENTER.
Referenced by EquipWindow().
Here is the call graph for this function:

| void hoa_menu::private_menu::EquipWindow::_UpdateEquipList | ( | ) | [private] |
Updates the equipment list.
Definition at line 1299 of file menu_views.cpp.
References _active_box, _char_select, _equip_images, _equip_list, _equip_select, hoa_menu::private_menu::EQUIP_ACTIVE_LIST, hoa_menu::private_menu::EQUIP_BODYARMOR, hoa_menu::private_menu::EQUIP_CATEGORY_SIZE, hoa_menu::private_menu::EQUIP_HEADGEAR, hoa_menu::private_menu::EQUIP_LEGGINGS, hoa_menu::private_menu::EQUIP_OFFHAND, hoa_menu::private_menu::EQUIP_WEAPON, hoa_global::GameGlobal::GetActiveParty(), hoa_global::GlobalParty::GetActorAtIndex(), hoa_global::GlobalCharacter::GetArmArmorEquipped(), hoa_video::StillImage::GetFilename(), hoa_global::GlobalCharacter::GetHeadArmorEquipped(), hoa_global::GlobalObject::GetIconImage(), hoa_global::GameGlobal::GetInventoryArmArmor(), hoa_global::GameGlobal::GetInventoryHeadArmor(), hoa_global::GameGlobal::GetInventoryLegArmor(), hoa_global::GameGlobal::GetInventoryTorsoArmor(), hoa_global::GameGlobal::GetInventoryWeapons(), hoa_global::GlobalCharacter::GetLegArmorEquipped(), hoa_global::GlobalObject::GetName(), hoa_video::OptionBox::GetSelection(), hoa_global::GlobalCharacter::GetTorsoArmorEquipped(), hoa_global::GlobalActor::GetWeaponEquipped(), hoa_global::GlobalManager, hoa_video::GameVideo::LoadImage(), hoa_video::StillImage::SetFilename(), hoa_video::OptionBox::SetOptions(), hoa_video::OptionBox::SetSize(), and hoa_video::VideoManager.
Referenced by _InitEquipmentList(), _InitEquipmentSelect(), and Update().
Here is the call graph for this function:

| void hoa_menu::private_menu::EquipWindow::Activate | ( | bool | new_status | ) |
Activates the window.
| new_value | true to activate window, false to deactivate window |
Definition at line 1069 of file menu_views.cpp.
References _active_box, _char_select, hoa_menu::private_menu::EQUIP_ACTIVE_CHAR, hoa_menu::private_menu::EQUIP_ACTIVE_NONE, hoa_video::OptionBox::SetCursorState(), hoa_video::VIDEO_CURSOR_STATE_HIDDEN, and hoa_video::VIDEO_CURSOR_STATE_VISIBLE.
Referenced by hoa_menu::MenuMode::_HandleEquipMenu(), and Update().
Here is the call graph for this function:

| void hoa_menu::private_menu::EquipWindow::Draw | ( | ) | [virtual] |
Draws window.
Reimplemented from hoa_video::MenuWindow.
Definition at line 1399 of file menu_views.cpp.
References _active_box, _char_select, _equip_images, _equip_list, _equip_select, hoa_video::OptionBox::Draw(), hoa_video::GameVideo::DrawImage(), hoa_video::GameVideo::DrawText(), hoa_menu::private_menu::EQUIP_ACTIVE_LIST, hoa_menu::private_menu::EQUIP_BODYARMOR, hoa_menu::private_menu::EQUIP_HEADGEAR, hoa_menu::private_menu::EQUIP_LEGGINGS, hoa_menu::private_menu::EQUIP_OFFHAND, hoa_menu::private_menu::EQUIP_WEAPON, hoa_video::OptionBox::GetSelection(), hoa_utils::MakeUnicodeString(), hoa_video::GameVideo::Move(), hoa_video::GameVideo::MoveRelative(), hoa_video::GameVideo::SetDrawFlags(), hoa_video::VIDEO_X_CENTER, hoa_video::VIDEO_X_LEFT, hoa_video::VIDEO_Y_CENTER, hoa_video::VIDEO_Y_TOP, and hoa_video::VideoManager.
Referenced by hoa_menu::MenuMode::Draw().
Here is the call graph for this function:

| bool hoa_menu::private_menu::EquipWindow::IsActive | ( | ) | [inline] |
Checks to see if the equipment window is active.
Definition at line 430 of file menu_views.h.
References _active_box.
Referenced by hoa_menu::MenuMode::Update().
| void hoa_menu::private_menu::EquipWindow::Update | ( | ) |
Performs updates.
Definition at line 1154 of file menu_views.cpp.
References _active_box, _char_select, _equip_list, _equip_select, hoa_menu::MenuMode::_instance, hoa_menu::MenuMode::_menu_sounds, _UpdateEquipList(), Activate(), hoa_input::GameInput::CancelPress(), hoa_input::GameInput::ConfirmPress(), hoa_input::GameInput::DownPress(), hoa_menu::private_menu::EQUIP_ACTIVE_CHAR, hoa_menu::private_menu::EQUIP_ACTIVE_LIST, hoa_menu::private_menu::EQUIP_ACTIVE_SELECT, hoa_video::OptionBox::GetEvent(), hoa_video::OptionBox::GetNumberOptions(), hoa_video::OptionBox::HandleCancelKey(), hoa_video::OptionBox::HandleConfirmKey(), hoa_video::OptionBox::HandleDownKey(), hoa_video::OptionBox::HandleLeftKey(), hoa_video::OptionBox::HandleRightKey(), hoa_video::OptionBox::HandleUpKey(), hoa_input::InputManager, hoa_input::GameInput::LeftPress(), hoa_input::GameInput::RightPress(), hoa_video::OptionBox::SetCursorState(), hoa_video::OptionBox::SetSelection(), hoa_video::OptionBox::Update(), hoa_input::GameInput::UpPress(), hoa_video::VIDEO_CURSOR_STATE_BLINKING, hoa_video::VIDEO_CURSOR_STATE_HIDDEN, hoa_video::VIDEO_CURSOR_STATE_VISIBLE, hoa_video::VIDEO_OPTION_CANCEL, and hoa_video::VIDEO_OPTION_CONFIRM.
Referenced by hoa_menu::MenuMode::Update().
Here is the call graph for this function:

Flag to specify the active option box.
Definition at line 451 of file menu_views.h.
Referenced by _UpdateEquipList(), Activate(), Draw(), IsActive(), and Update().
Character selector.
Definition at line 442 of file menu_views.h.
Referenced by _InitCharSelect(), _UpdateEquipList(), Activate(), Draw(), EquipWindow(), and Update().
std::vector<hoa_video::StillImage> hoa_menu::private_menu::EquipWindow::_equip_images [private] |
equipment images
Definition at line 454 of file menu_views.h.
Referenced by _UpdateEquipList(), Draw(), EquipWindow(), and ~EquipWindow().
Replacement selector.
Definition at line 448 of file menu_views.h.
Referenced by _InitEquipmentList(), _UpdateEquipList(), Draw(), and Update().
Equipment selector.
Definition at line 445 of file menu_views.h.
Referenced by _InitEquipmentSelect(), _UpdateEquipList(), Draw(), and Update().
1.5.1