xremote_scene_wip.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #include "../xremote.h"
  2. void xremote_scene_wip_on_enter(void* context) {
  3. furi_assert(context);
  4. XRemote* app = context;
  5. Popup* popup = app->popup;
  6. //popup_set_icon(popup, 0, 2, &I_DolphinMafia_115x62);
  7. popup_set_header(popup, "SubGhz coming soon", 10, 19, AlignLeft, AlignBottom);
  8. popup_set_text(popup, "Check back later", 10, 29, AlignLeft, AlignBottom);
  9. popup_set_text(popup, "Press back long", 10, 39, AlignLeft, AlignBottom);
  10. popup_set_callback(popup, xremote_popup_closed_callback);
  11. popup_set_context(popup, context);
  12. popup_set_timeout(popup, 100);
  13. popup_enable_timeout(popup);
  14. view_dispatcher_switch_to_view(app->view_dispatcher, XRemoteViewIdWip);
  15. }
  16. bool xremote_scene_wip_on_event(void* context, SceneManagerEvent event) {
  17. XRemote* app = context;
  18. UNUSED(app);
  19. bool consumed = false;
  20. if(event.type == SceneManagerEventTypeCustom) {
  21. if(event.event == XRemoteCustomEventTypePopupClosed) {
  22. }
  23. consumed = true;
  24. }
  25. return consumed;
  26. }
  27. void xremote_scene_wip_on_exit(void* context) {
  28. XRemote* app = context;
  29. UNUSED(app);
  30. }