|
|
@@ -7,13 +7,20 @@ void mag_scene_emulate_on_enter(void* context) {
|
|
|
FuriString* tmp_str;
|
|
|
tmp_str = furi_string_alloc();
|
|
|
|
|
|
- widget_add_button_element(widget, GuiButtonTypeLeft, "Back", mag_widget_callback, mag);
|
|
|
+ // Use strlcpy instead perhaps, to truncate to screen width, then add ellipses if needed?
|
|
|
+ furi_string_printf(tmp_str, "%s\r\n", mag->mag_dev->dev_name);
|
|
|
|
|
|
- furi_string_printf(tmp_str, "Under construction!");
|
|
|
+ widget_add_icon_element(widget, 1, 1, &I_mag_10px);
|
|
|
widget_add_string_element(
|
|
|
- widget, 64, 4, AlignCenter, AlignTop, FontPrimary, furi_string_get_cstr(tmp_str));
|
|
|
+ widget, 13, 2, AlignLeft, AlignTop, FontPrimary, furi_string_get_cstr(tmp_str));
|
|
|
furi_string_reset(tmp_str);
|
|
|
|
|
|
+ furi_string_printf(tmp_str, furi_string_get_cstr(mag->mag_dev->dev_data));
|
|
|
+ widget_add_string_multiline_element(
|
|
|
+ widget, 0, 15, AlignLeft, AlignTop, FontSecondary, furi_string_get_cstr(tmp_str));
|
|
|
+
|
|
|
+ widget_add_button_element(widget, GuiButtonTypeLeft, "Config", mag_widget_callback, mag);
|
|
|
+
|
|
|
view_dispatcher_switch_to_view(mag->view_dispatcher, MagViewWidget);
|
|
|
furi_string_free(tmp_str);
|
|
|
}
|
|
|
@@ -27,7 +34,7 @@ bool mag_scene_emulate_on_event(void* context, SceneManagerEvent event) {
|
|
|
if(event.event == GuiButtonTypeLeft) {
|
|
|
consumed = true;
|
|
|
|
|
|
- scene_manager_previous_scene(scene_manager);
|
|
|
+ scene_manager_next_scene(scene_manager, MagSceneEmulateConfig);
|
|
|
}
|
|
|
}
|
|
|
|