AllegroFlare/Elements/Inventory
view source (cpp, hpp, quintessence) • view tests (test file)
Properties
font_bin |
AllegroFlare::FontBin* |
bitmap_bin |
AllegroFlare::BitmapBin* |
af_inventory |
AllegroFlare::Inventory* |
inventory_index |
AllegroFlare::InventoryIndex* |
inventory_dictionary |
AllegroFlare::InventoryDictionary* |
event_emitter |
AllegroFlare::EventEmitter* |
place |
AllegroFlare::Placement2D |
cursor_x |
int |
cursor_y |
int |
num_columns |
int |
num_rows |
int |
active |
bool |
details_reveal_counter |
float |
details_num_revealed_characters |
int |
reveal_counter |
float |
item_in_details_pane |
int |
item_in_details_pane_set_at |
float |
inventory_items_left_padding |
float |
inventory_items_top_padding |
float |
inventory_items_box_size_x |
float |
inventory_items_box_size_y |
float |
inventory_items_box_gutter_x |
float |
inventory_items_box_gutter_y |
float |
cursor_move_sound_identifier |
std::string |
show_background |
bool |
show_backframe |
bool |
show_title_text |
bool |
draw_details_pane_func |
std::function<void(AllegroFlare::Elements::Inventory*, void*)> |
draw_details_pane_func_user_data |
void* |
draw_inventory_item_func |
std::function<void(AllegroFlare::Elements::Inventory*, float, float, int, void*)> |
draw_inventory_item_func_user_data |
void* |
render_selectable_items_before_details_pane |
bool |
inventory_show_sound_identifier |
std::string |
inventory_hide_sound_identifier |
std::string |
sound_is_disabled |
bool |
Methods
update() |
activate() |
deactivate() |
refresh() |
show() |
hide() |
toggle_show_hide() |
move_cursor_up() |
move_cursor_down() |
move_cursor_left() |
move_cursor_right() |
calc_details_header_reveal_x_offset() |
calc_details_header_reveal_color() |
disable_sound() |
enable_sound() |
is_sound_disabled() |
is_sound_enabled() |
set_num_columns(int num_columns=1) |
set_num_rows(int num_rows=1) |
set_details_pane() |
opaquify(ALLEGRO_COLOR color={0,0,0,0}) |
change_a(ALLEGRO_COLOR color={0,0,0,0}, float alpha=1.0f) |
inv_reveal_counter() |
render() |
draw_selectable_items() |
draw_background() |
draw_backframe() |
draw_title_text() |
draw_inventory_items() |
draw_inventory_boxes() |
draw_details_item_name(float x=0, float y=0, ALLEGRO_FONT* font=nullptr) |
draw_details_item_description(float x=0, float y=0, float width=1, ALLEGRO_FONT* font=nullptr) |
draw_details_pane() |
has_valid_size() |
draw_item_selection_cursor() |
draw_inventory_box(float x=0.0f, float y=0.0f) |
draw_inventory_item(float x=0.0f, float y=0.0f, int item=0) |
get_item_definition(int index=0) |
obtain_title_font() |
obtain_description_font() |
obtain_item_name_font() |
obtain_details_header_font() |
infer_item_boxes_width() |
infer_item_boxes_height() |
play_move_cursor_sound() |
play_hide_inventory_sound() |
play_show_inventory_sound() |
play_sound(std::string sound_identifier="[unset-play_sound]") |
create_placeholder_inventory_index() |
concat_text(std::string source_text="", int length=0) |
Dependencies
{"symbol"=>"AllegroFlare::Placement2D", "headers"=>["AllegroFlare/Placement2D.hpp"]} |
{"symbol"=>"ALLEGRO_COLOR", "headers"=>["allegro5/allegro.h"]} |
{"symbol"=>"X", "headers"=>["allegro5/allegro_primitives.h", "allegro5/allegro_color.h"]} |
{"symbol"=>"AllegroFlare::Color", "headers"=>["AllegroFlare/Color.hpp"]} |
{"symbol"=>"AllegroFlare::interpolator", "headers"=>["AllegroFlare/Interpolators.hpp"]} |
{"symbol"=>"fmod", "headers"=>["cmath"]} |
{"symbol"=>"AllegroFlare::Inventory", "headers"=>["AllegroFlare/Inventory.hpp"]} |
{"symbol"=>"AllegroFlare::BitmapBin", "headers"=>["AllegroFlare/BitmapBin.hpp"]} |
{"symbol"=>"AllegroFlare::FontBin", "headers"=>["AllegroFlare/FontBin.hpp"]} |
{"symbol"=>"ALLEGRO_FONT", "headers"=>["allegro5/allegro_font.h"]} |
{"symbol"=>"AllegroFlare::InventoryIndex", "headers"=>["AllegroFlare/InventoryIndex.hpp"]} |
{"symbol"=>"AllegroFlare::EventEmitter", "headers"=>["AllegroFlare/EventEmitter.hpp"]} |
{"symbol"=>"AllegroFlare::InventoryDictionary", "headers"=>["AllegroFlare/InventoryDictionary.hpp"]} |
{"symbol"=>"AllegroFlare::Elements::Inventory", "headers"=>["AllegroFlare/Elements/Inventory.hpp"]} |
{"symbol"=>"std::function", "headers"=>["functional"]} |
Sponsor
Look no further than CLUBCATT for cat shirts, cat mugs, and all kinds of cat-fancy stuff.