mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-10 21:40:43 +00:00
Qt: Add perf overlay position to settings dialog
This commit is contained in:
parent
dd0684b58a
commit
392a4bdc0b
@ -67,6 +67,7 @@
|
||||
},
|
||||
"overlay": {
|
||||
"perfOverlayEnabled": "Enables or disables the performance overlay.",
|
||||
"perfOverlayPosition": "Sets the on-screen position (quadrant) of the perfomance overlay.",
|
||||
"perfOverlayDetailLevel": "Controls the amount of information displayed on the performance overlay.",
|
||||
"perfOverlayUpdateInterval": "Sets the time interval in which the performance overlay is being updated (measured in milliseconds).",
|
||||
"perfOverlayFontSize": "Sets the font size of the performance overlay (measured in pixels)."
|
||||
|
@ -72,6 +72,7 @@ public:
|
||||
// Performance Overlay
|
||||
PerfOverlayEnabled,
|
||||
PerfOverlayDetailLevel,
|
||||
PerfOverlayPosition,
|
||||
PerfOverlayUpdateInterval,
|
||||
PerfOverlayFontSize,
|
||||
|
||||
@ -241,6 +242,7 @@ private:
|
||||
// Performance Overlay
|
||||
{ PerfOverlayEnabled, { "Video", "Performance Overlay", "Enabled" } },
|
||||
{ PerfOverlayDetailLevel, { "Video", "Performance Overlay", "Detail level" } },
|
||||
{ PerfOverlayPosition, { "Video", "Performance Overlay", "Position" } },
|
||||
{ PerfOverlayUpdateInterval,{ "Video", "Performance Overlay", "Metrics update interval (ms)" } },
|
||||
{ PerfOverlayFontSize, { "Video", "Performance Overlay", "Font size (px)" } },
|
||||
|
||||
|
@ -742,6 +742,9 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> guiSettings, std:
|
||||
xemu_settings->EnhanceComboBox(ui->perfOverlayDetailLevel, emu_settings::PerfOverlayDetailLevel);
|
||||
SubscribeTooltip(ui->perfOverlayDetailLevel, json_emu_overlay["perfOverlayDetailLevel"].toString());
|
||||
|
||||
xemu_settings->EnhanceComboBox(ui->perfOverlayPosition, emu_settings::PerfOverlayPosition);
|
||||
SubscribeTooltip(ui->perfOverlayPosition, json_emu_overlay["perfOverlayPosition"].toString());
|
||||
|
||||
// Checkboxes
|
||||
|
||||
SubscribeTooltip(ui->gs_resizeOnBoot, json_emu_misc["gs_resizeOnBoot"].toString());
|
||||
@ -777,6 +780,7 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> guiSettings, std:
|
||||
ui->label_update_interval->setEnabled(enabled);
|
||||
ui->label_font_size->setEnabled(enabled);
|
||||
ui->perfOverlayDetailLevel->setEnabled(enabled);
|
||||
ui->perfOverlayPosition->setEnabled(enabled);
|
||||
ui->perfOverlayUpdateInterval->setEnabled(enabled);
|
||||
ui->perfOverlayFontSize->setEnabled(enabled);
|
||||
};
|
||||
|
@ -1447,6 +1447,16 @@
|
||||
<item>
|
||||
<widget class="QComboBox" name="perfOverlayDetailLevel"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_position">
|
||||
<property name="text">
|
||||
<string>Position:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="perfOverlayPosition"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_update_interval">
|
||||
<property name="text">
|
||||
|
Loading…
x
Reference in New Issue
Block a user