| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #include "../metroflip_i.h"
- #include <dolphin/dolphin.h>
- #include "../api/metroflip/metroflip_api.h"
- #define TAG "Metroflip:Scene:Credits"
- void metroflip_scene_credits_on_enter(void* context) {
- Metroflip* app = context;
- Widget* widget = app->widget;
- dolphin_deed(DolphinDeedNfcReadSuccess);
- furi_string_reset(app->text_box_store);
- FuriString* str = furi_string_alloc();
- furi_string_printf(str, "\e#Credits:\n\n");
- furi_string_cat_printf(str, "Created by luu176\n");
- furi_string_cat_printf(str, "Inspired by Metrodroid\n\n");
- furi_string_cat_printf(str, "Special Thanks:\n willyjl\n");
- furi_string_cat_printf(str, "Info Slaves:\n Equip, TheDingo8MyBaby\n\n");
- furi_string_cat_printf(str, "\e#Parser Credits:\n\n");
- furi_string_cat_printf(str, "Bip! Parser:\n rbasoalto, gornekich\n\n");
- furi_string_cat_printf(str, "CharlieCard Parser:\n zacharyweiss\n\n");
- furi_string_cat_printf(str, "Clipper Parser:\n ke6jjj\n\n");
- furi_string_cat_printf(str, "ITSO Parser:\n gsp8181, hedger, gornekich\n\n");
- furi_string_cat_printf(str, "Metromoney Parser:\n Leptopt1los\n\n");
- furi_string_cat_printf(str, "myki Parser:\n gornekich\n\n");
- furi_string_cat_printf(str, "Navigo Parser: \n luu176, DocSystem \n\n");
- furi_string_cat_printf(str, "Opal Parser:\n gornekich\n\n");
- furi_string_cat_printf(str, "Opus Parser: DocSystem\n\n");
- furi_string_cat_printf(str, "Rav-Kav Parser: luu176\n\n");
- furi_string_cat_printf(str, "Troika Parser:\n gornekich\n\n");
- widget_add_text_scroll_element(widget, 0, 0, 128, 64, furi_string_get_cstr(str));
- widget_add_button_element(
- widget, GuiButtonTypeRight, "Exit", metroflip_exit_widget_callback, app);
- furi_string_free(str);
- view_dispatcher_switch_to_view(app->view_dispatcher, MetroflipViewWidget);
- }
- bool metroflip_scene_credits_on_event(void* context, SceneManagerEvent event) {
- Metroflip* app = context;
- bool consumed = false;
- if(event.type == SceneManagerEventTypeCustom) {
- if(event.event == GuiButtonTypeLeft) {
- consumed = scene_manager_previous_scene(app->scene_manager);
- }
- } else if(event.type == SceneManagerEventTypeBack) {
- scene_manager_search_and_switch_to_previous_scene(app->scene_manager, MetroflipSceneStart);
- consumed = true;
- }
- return consumed;
- }
- void metroflip_scene_credits_on_exit(void* context) {
- Metroflip* app = context;
- widget_reset(app->widget);
- UNUSED(context);
- }
|