AllegroFlare/Elements/NotificationRenderers/AchievementUnlocked
view source (cpp, hpp, quintessence) • view tests (test file)
Properties
| bitmap_bin |
AllegroFlare::BitmapBin* |
| font_bin |
AllegroFlare::FontBin* |
| x |
float |
| y |
float |
| width |
float |
| height |
float |
| created_at |
float |
| name |
std::string |
Methods
| render() |
| draw_achievement_box(std::string title="[unset-title]", std::string description="[unset-description]") |
| infer_icon_character_by_status(std::string status="[unset-status]") |
| infer_icon_color_by_status(std::string status="[unset-status]", ALLEGRO_COLOR icon_locked_color=ALLEGRO_COLOR{1, 1, 1, 1}, ALLEGRO_COLOR icon_hidden_color=ALLEGRO_COLOR{1, 1, 1, 1}, ALLEGRO_COLOR icon_achieved_color=ALLEGRO_COLOR{1, 1, 1, 1}) |
| obtain_item_title_font() |
| obtain_item_description_font() |
| obtain_icon_font() |
| draw_unicode_character(ALLEGRO_FONT* font=nullptr, ALLEGRO_COLOR color=ALLEGRO_COLOR{1, 1, 1, 1}, int x=0, int y=0, uint32_t icon=61444, int flags=0) |
Dependencies
| {"symbol"=>"ALLEGRO_COLOR", "headers"=>["allegro5/allegro.h"]} |
| {"symbol"=>"al_draw_filled_rectangle", "headers"=>["allegro5/allegro_primitives.h"]} |
| {"symbol"=>"al_draw_text", "headers"=>["allegro5/allegro_font.h"]} |
| {"symbol"=>"AllegroFlare::FontBin", "headers"=>["AllegroFlare/FontBin.hpp"]} |
| {"symbol"=>"ALLEGRO_FONT", "headers"=>["allegro5/allegro_font.h"]} |
| {"symbol"=>"AllegroFlare::MotionFX::Sparkles2", "headers"=>["AllegroFlare/MotionFX/Sparkles2.hpp"]} |
| {"symbol"=>"AllegroFlare::BitmapBin", "headers"=>["AllegroFlare/BitmapBin.hpp"]} |
Sponsor
Grab cute Cat stickers for your laptop at CLUBCATT