Browse Source
android: Enhance FPS Overlay with more customizable options
android: Enhance FPS Overlay with more customizable options
- Now the fps follows theme color set in settings - Added the ability to toggle stats on and off depending on user preference - Now you are able to change the fps position and add a background behind it for easier reding New added stats for the overlay are FPS FRAMETIME, SPEED, APP_RAM_USAGE, SYSTEM_RAM_USAGE, BATTERY_TEMPERATURE,nce_cpp
15 changed files with 453 additions and 139 deletions
-
10src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.kt
-
1src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.kt
-
2src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/Settings.kt
-
65src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SettingsItem.kt
-
27src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt
-
304src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
-
20src/android/app/src/main/jni/android_settings.h
-
32src/android/app/src/main/res/drawable/ic_frames.xml
-
6src/android/app/src/main/res/layout/fragment_emulation.xml
-
66src/android/app/src/main/res/layout/header_in_game.xml
-
9src/android/app/src/main/res/menu/menu_overlay_options.xml
-
1src/android/app/src/main/res/values-night/yuzu_colors.xml
-
17src/android/app/src/main/res/values/arrays.xml
-
31src/android/app/src/main/res/values/strings.xml
-
1src/android/app/src/main/res/values/yuzu_colors.xml
@ -0,0 +1,32 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android" |
|||
android:width="24dp" |
|||
android:height="24dp" |
|||
android:viewportWidth="24" |
|||
android:viewportHeight="24"> |
|||
<path |
|||
android:fillColor="#00000000" |
|||
android:strokeColor="#FF000000" |
|||
android:strokeWidth="1" |
|||
android:pathData="M4,4 L4,20 L20,20" /> |
|||
<path |
|||
android:fillColor="#00000000" |
|||
android:strokeColor="#FF000000" |
|||
android:strokeWidth="2" |
|||
android:pathData="M4,16 L8,12 L12,14 L16,8 L20,10" /> |
|||
<path |
|||
android:fillColor="#FF000000" |
|||
android:pathData="M4,16 C3.45,16 3,15.55 3,15 C3,14.45 3.45,14 4,14 C4.55,14 5,14.45 5,15 C5,15.55 4.55,16 4,16" /> |
|||
<path |
|||
android:fillColor="#FF000000" |
|||
android:pathData="M8,12 C7.45,12 7,11.55 7,11 C7,10.45 7.45,10 8,10 C8.55,10 9,10.45 9,11 C9,11.55 8.55,12 8,12" /> |
|||
<path |
|||
android:fillColor="#FF000000" |
|||
android:pathData="M12,14 C11.45,14 11,13.55 11,13 C11,12.45 11.45,12 12,12 C12.55,12 13,12.45 13,13 C13,13.55 12.55,14 12,14" /> |
|||
<path |
|||
android:fillColor="#FF000000" |
|||
android:pathData="M16,8 C15.45,8 15,7.55 15,7 C15,6.45 15.45,6 16,6 C16.55,6 17,6.45 17,7 C17,7.55 16.55,8 16,8" /> |
|||
<path |
|||
android:fillColor="#FF000000" |
|||
android:pathData="M20,10 C19.45,10 19,9.55 19,9 C19,8.45 19.45,8 20,8 C20.55,8 21,8.45 21,9 C21,9.55 20.55,10 20,10" /> |
|||
</vector> |
|||
@ -1,14 +1,64 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<com.google.android.material.textview.MaterialTextView |
|||
xmlns:android="http://schemas.android.com/apk/res/android" |
|||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|||
xmlns:tools="http://schemas.android.com/tools" |
|||
android:id="@+id/text_game_title" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:orientation="vertical" |
|||
android:layout_marginTop="24dp" |
|||
android:layout_marginStart="24dp" |
|||
android:layout_marginEnd="24dp" |
|||
android:textAppearance="?attr/textAppearanceHeadlineMedium" |
|||
android:textColor="?attr/colorOnSurface" |
|||
android:textAlignment="viewStart" |
|||
tools:text="Super Mario Odyssey" /> |
|||
android:layout_marginEnd="24dp"> |
|||
|
|||
<com.google.android.material.textview.MaterialTextView |
|||
android:id="@+id/text_game_title" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:textAppearance="?attr/textAppearanceHeadlineMedium" |
|||
android:textColor="?attr/colorOnSurface" |
|||
android:textAlignment="viewStart" |
|||
android:layout_marginBottom="8dp" |
|||
tools:text="text_game_title" /> |
|||
|
|||
<LinearLayout |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:orientation="horizontal"> |
|||
|
|||
<com.google.android.material.textview.MaterialTextView |
|||
android:layout_width="wrap_content" |
|||
android:layout_height="wrap_content" |
|||
android:textAppearance="?attr/textAppearanceBodyMedium" |
|||
android:textColor="?attr/colorOnSurfaceVariant" |
|||
android:textAlignment="viewStart" |
|||
android:layout_marginEnd="4dp" |
|||
android:text="System Info:" /> |
|||
|
|||
<com.google.android.material.textview.MaterialTextView |
|||
android:id="@+id/cpu_backend" |
|||
android:layout_width="wrap_content" |
|||
android:layout_height="wrap_content" |
|||
android:textAppearance="?attr/textAppearanceBodyMedium" |
|||
android:textColor="?attr/colorOnSurfaceVariant" |
|||
android:textAlignment="viewStart" |
|||
tools:text="cpu_backend" /> |
|||
|
|||
<com.google.android.material.textview.MaterialTextView |
|||
android:layout_width="wrap_content" |
|||
android:layout_height="wrap_content" |
|||
android:textAppearance="?attr/textAppearanceBodyMedium" |
|||
android:textColor="?attr/colorOnSurfaceVariant" |
|||
android:layout_marginStart="4dp" |
|||
android:layout_marginEnd="4dp" |
|||
android:text="|" /> |
|||
|
|||
<com.google.android.material.textview.MaterialTextView |
|||
android:id="@+id/gpu_vendor" |
|||
android:layout_width="wrap_content" |
|||
android:layout_height="wrap_content" |
|||
android:textAppearance="?attr/textAppearanceBodyMedium" |
|||
android:textColor="?attr/colorOnSurfaceVariant" |
|||
android:textAlignment="viewStart" |
|||
tools:text="gpu_vendor" /> |
|||
|
|||
</LinearLayout> |
|||
|
|||
</LinearLayout> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue