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


Public Member Functions | |
| void | Activate (bool new_status) |
| Activates the window. | |
| void | Draw () |
| Draws the windows and option boxes. | |
| bool | IsActive () |
| Checks to see if the skills window is active. | |
| SkillsWindow () | |
| void | Update () |
| Updates key presses and window states. | |
| ~SkillsWindow () | |
Private Member Functions | |
| void | _InitCharSelect () |
| Initializes the character selector. | |
| void | _InitSkillsCategories () |
| Initializes the skills category chooser. | |
| void | _InitSkillsList () |
| Initializes the skills chooser. | |
| void | _UpdateSkillList () |
| Sets up the skills that comprise the different categories. | |
Private Attributes | |
| uint32 | _active_box |
| Flag to specify the active option box. | |
| hoa_video::OptionBox | _char_select |
| The character select option box. | |
| int32 | _char_skillset |
| Track which character's skillset was chosen. | |
| hoa_video::TextBox | _description |
| TextBox that holds the selected skill's description. | |
| hoa_video::OptionBox | _skills_categories |
| The skills categories option box. | |
| hoa_video::OptionBox | _skills_list |
| The skills list option box. | |
****************************************************************************
This window display all the skills for a particular character. You can scroll through them all, filter by category, choose one, and apply it to a character.
Definition at line 331 of file menu_views.h.
| hoa_menu::private_menu::SkillsWindow::SkillsWindow | ( | ) |
Definition at line 736 of file menu_views.cpp.
References _description, _InitCharSelect(), _InitSkillsCategories(), _InitSkillsList(), hoa_video::TextBox::SetDimensions(), hoa_video::TextBox::SetDisplayMode(), hoa_video::TextBox::SetDisplaySpeed(), hoa_video::TextBox::SetFont(), hoa_video::private_video::GUIControl::SetOwner(), hoa_video::private_video::GUIElement::SetPosition(), hoa_video::TextBox::SetTextAlignment(), hoa_video::VIDEO_TEXT_INSTANT, hoa_video::VIDEO_X_LEFT, and hoa_video::VIDEO_Y_TOP.
Here is the call graph for this function:

| hoa_menu::private_menu::SkillsWindow::~SkillsWindow | ( | ) | [inline] |
Definition at line 335 of file menu_views.h.
| void hoa_menu::private_menu::SkillsWindow::_InitCharSelect | ( | ) | [private] |
Initializes the character selector.
Definition at line 785 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 SkillsWindow().
Here is the call graph for this function:

| void hoa_menu::private_menu::SkillsWindow::_InitSkillsCategories | ( | ) | [private] |
Initializes the skills category chooser.
Definition at line 812 of file menu_views.cpp.
References _skills_categories, 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_menu::private_menu::SKILL_ALL, hoa_menu::private_menu::SKILL_CATEGORY_SIZE, hoa_video::VIDEO_CURSOR_STATE_HIDDEN, hoa_video::VIDEO_WRAP_MODE_SHIFTED, hoa_video::VIDEO_WRAP_MODE_STRAIGHT, hoa_video::VIDEO_X_CENTER, and hoa_video::VIDEO_Y_CENTER.
Referenced by SkillsWindow().
Here is the call graph for this function:

| void hoa_menu::private_menu::SkillsWindow::_InitSkillsList | ( | ) | [private] |
Initializes the skills chooser.
Definition at line 768 of file menu_views.cpp.
References _skills_list, _UpdateSkillList(), 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 SkillsWindow().
Here is the call graph for this function:

| void hoa_menu::private_menu::SkillsWindow::_UpdateSkillList | ( | ) | [private] |
Sets up the skills that comprise the different categories.
Definition at line 967 of file menu_views.cpp.
References _char_select, _skills_categories, _skills_list, hoa_global::GameGlobal::GetActiveParty(), hoa_global::GlobalParty::GetActorAtIndex(), hoa_global::GlobalCharacter::GetAttackSkills(), hoa_video::OptionBox::GetSelection(), hoa_global::GlobalManager, hoa_utils::MakeStandardString(), hoa_utils::MakeUnicodeString(), hoa_utils::NumberToString(), hoa_video::OptionBox::SetOptions(), hoa_video::OptionBox::SetSize(), hoa_menu::private_menu::SKILL_ALL, hoa_menu::private_menu::SKILL_BATTLE, and hoa_menu::private_menu::SKILL_FIELD.
Referenced by _InitSkillsList(), and Update().
Here is the call graph for this function:

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

| void hoa_menu::private_menu::SkillsWindow::Draw | ( | ) | [virtual] |
Draws the windows and option boxes.
Reimplemented from hoa_video::MenuWindow.
Definition at line 998 of file menu_views.cpp.
References _active_box, _char_select, _description, _skills_categories, _skills_list, hoa_video::OptionBox::Draw(), hoa_video::TextBox::Draw(), hoa_video::GameVideo::DrawText(), hoa_global::GameGlobal::GetActiveParty(), hoa_global::GlobalParty::GetActorAtIndex(), hoa_global::GlobalCharacter::GetAttackSkills(), hoa_global::GlobalSkill::GetName(), hoa_video::OptionBox::GetSelection(), hoa_global::GlobalManager, hoa_video::GameVideo::Move(), hoa_video::GameVideo::MoveRelative(), hoa_video::GameVideo::SetDrawFlags(), hoa_menu::private_menu::SKILL_ACTIVE_LIST, hoa_video::VIDEO_X_LEFT, hoa_video::VIDEO_Y_BOTTOM, hoa_video::VIDEO_Y_CENTER, and hoa_video::VideoManager.
Referenced by hoa_menu::MenuMode::Draw().
Here is the call graph for this function:

| bool hoa_menu::private_menu::SkillsWindow::IsActive | ( | ) | [inline] |
Checks to see if the skills window is active.
Definition at line 359 of file menu_views.h.
References _active_box.
Referenced by hoa_menu::MenuMode::Update().
| void hoa_menu::private_menu::SkillsWindow::Update | ( | ) |
Updates key presses and window states.
Definition at line 836 of file menu_views.cpp.
References _active_box, _char_select, _char_skillset, _description, hoa_menu::MenuMode::_instance, hoa_menu::MenuMode::_menu_sounds, _skills_categories, _skills_list, _UpdateSkillList(), Activate(), hoa_input::GameInput::CancelPress(), hoa_input::GameInput::ConfirmPress(), hoa_input::GameInput::DownPress(), hoa_global::GameGlobal::GetActiveParty(), hoa_global::GlobalParty::GetActorAtIndex(), hoa_global::GlobalSkill::GetDescription(), hoa_video::OptionBox::GetEvent(), hoa_video::OptionBox::GetNumberOptions(), hoa_video::OptionBox::GetSelection(), hoa_global::GlobalManager, 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::TextBox::SetDisplayText(), hoa_video::OptionBox::SetSelection(), hoa_menu::private_menu::SKILL_ACTIVE_CATEGORY, hoa_menu::private_menu::SKILL_ACTIVE_CHAR, hoa_menu::private_menu::SKILL_ACTIVE_CHAR_APPLY, hoa_menu::private_menu::SKILL_ACTIVE_LIST, hoa_video::OptionBox::Update(), hoa_input::GameInput::UpPress(), 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 364 of file menu_views.h.
Referenced by Activate(), Draw(), IsActive(), and Update().
The character select option box.
Definition at line 367 of file menu_views.h.
Referenced by _InitCharSelect(), _UpdateSkillList(), Activate(), Draw(), and Update().
Track which character's skillset was chosen.
Definition at line 379 of file menu_views.h.
Referenced by Update().
TextBox that holds the selected skill's description.
Definition at line 376 of file menu_views.h.
Referenced by Draw(), SkillsWindow(), and Update().
The skills categories option box.
Definition at line 370 of file menu_views.h.
Referenced by _InitSkillsCategories(), _UpdateSkillList(), Draw(), and Update().
The skills list option box.
Definition at line 373 of file menu_views.h.
Referenced by _InitSkillsList(), _UpdateSkillList(), Draw(), and Update().
1.5.1