mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-02-16 15:22:01 +03:00
Added 3 remaining options to the fps unlocker settings
This commit is contained in:
parent
6839ec1ba2
commit
7bb2ecb270
3 changed files with 109 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
custom = Custom
|
||||
none = None
|
||||
default = Default
|
||||
|
||||
|
||||
|
||||
|
@ -58,4 +59,20 @@ enabled = Enabled
|
|||
fps-unlocker-description = Remove frames rendering limitation by modifying the game's memory. Can be detected by the anti-cheat
|
||||
|
||||
power-saving = Power saving
|
||||
power-saving-description = Automatically set the FPS limit to 10 and low process priority upon losing focus to the game (e.g. tabbing out)
|
||||
power-saving-description = Automatically set the FPS limit to 10 and low process priority upon losing focus to the game (e.g. tabbing out)
|
||||
|
||||
monitor = Monitor
|
||||
monitor-description = Number of monitor you want to run the game on
|
||||
|
||||
window-mode = Window Mode
|
||||
popup = Popup
|
||||
fullscreen = Fullscreen
|
||||
|
||||
priority = Priority
|
||||
priority-description = Game process priority
|
||||
realtime = Realtime
|
||||
high = High
|
||||
above-normal = Above Normal
|
||||
normal = Normal
|
||||
below-normal = Below Normal
|
||||
low = Low
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
custom = Свое значение
|
||||
none = Нет
|
||||
default = По умолчанию
|
||||
|
||||
|
||||
|
||||
|
@ -58,4 +59,20 @@ enabled = Включен
|
|||
fps-unlocker-description = Убрать ограничение количества кадров модифицируя память игры. Может быть обнаружено античитом
|
||||
|
||||
power-saving = Энергосбережение
|
||||
power-saving-description = Автоматически устанавливать предел количества кадров до 10 и снижать приоритет процесса игры когда она не находится в фокусе
|
||||
power-saving-description = Автоматически устанавливать предел количества кадров до 10 и снижать приоритет процесса игры когда она не находится в фокусе
|
||||
|
||||
monitor = Монитор
|
||||
monitor-description = Номер монитора, на котором стоит запустить игру
|
||||
|
||||
window-mode = Режим окна
|
||||
popup = Всплывающий
|
||||
fullscreen = Полноэкранный
|
||||
|
||||
priority = Приоритет
|
||||
priority-description = Приоритет процесса игры
|
||||
realtime = Реального времени
|
||||
high = Высокий
|
||||
above-normal = Выше среднего
|
||||
normal = Средний
|
||||
below-normal = Ниже среднего
|
||||
low = Низкий
|
||||
|
|
|
@ -318,7 +318,79 @@ impl WidgetTemplate for Enhancements {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
adw::ActionRow {
|
||||
set_title: &tr("monitor"),
|
||||
set_subtitle: &tr("monitor-description"),
|
||||
|
||||
add_suffix = >k::SpinButton {
|
||||
set_valign: gtk::Align::Center,
|
||||
set_adjustment: >k::Adjustment::new(1.0, 1.0, 10.0, 1.0, 1.0, 0.0),
|
||||
|
||||
set_value: CONFIG.game.enhancements.fps_unlocker.config.monitor as f64,
|
||||
|
||||
connect_changed => move |row| {
|
||||
if is_ready() {
|
||||
if let Ok(mut config) = config::get() {
|
||||
config.game.enhancements.fps_unlocker.config.monitor = row.value() as u64;
|
||||
|
||||
config::update(config);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
adw::ComboRow {
|
||||
set_title: &tr("window-mode"),
|
||||
|
||||
#[wrap(Some)]
|
||||
set_model = >k::StringList::new(&[
|
||||
&tr("default"),
|
||||
&tr("popup"),
|
||||
&tr("fullscreen")
|
||||
]),
|
||||
|
||||
set_selected: CONFIG.game.enhancements.fps_unlocker.config.window_mode.into(),
|
||||
|
||||
connect_selected_notify => move |row| {
|
||||
if is_ready() {
|
||||
if let Ok(mut config) = config::get() {
|
||||
config.game.enhancements.fps_unlocker.config.window_mode = WindowMode::try_from(row.selected()).unwrap();
|
||||
|
||||
config::update(config);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
adw::ComboRow {
|
||||
set_title: &tr("priority"),
|
||||
set_subtitle: &tr("priority-description"),
|
||||
|
||||
#[wrap(Some)]
|
||||
set_model = >k::StringList::new(&[
|
||||
&tr("realtime"),
|
||||
&tr("high"),
|
||||
&tr("above-normal"),
|
||||
&tr("normal"),
|
||||
&tr("below-normal"),
|
||||
&tr("low")
|
||||
]),
|
||||
|
||||
set_selected: CONFIG.game.enhancements.fps_unlocker.config.priority as u32,
|
||||
|
||||
connect_selected_notify => move |row| {
|
||||
if is_ready() {
|
||||
if let Ok(mut config) = config::get() {
|
||||
config.game.enhancements.fps_unlocker.config.priority = row.selected() as u64;
|
||||
|
||||
config::update(config);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue