Skip to content

Commit

Permalink
gui: rename primary action buttons
Browse files Browse the repository at this point in the history
- Rename "Install mods" -> "Apply changes" to be less confusing.
- Rename "Uninstall mods" -> "Uninstall hook and mods".
- Added hover text for both buttons to help explain what they do.
  • Loading branch information
jieyouxu committed Aug 4, 2024
1 parent 64d4aa7 commit c245654
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/gui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,9 @@ impl eframe::App for App {
}

ui.add_enabled_ui(self.state.config.drg_pak_path.is_some(), |ui| {
let mut button = ui.button("Install mods");
let mut button = ui.button("Apply changes").on_hover_text(
"Install the hook dll to game folder and regenerate mod bundle",
);
if self.state.config.drg_pak_path.is_none() {
button = button.on_disabled_hover_text(
"DRG install not found. Configure it in the settings menu.",
Expand Down Expand Up @@ -1800,7 +1802,9 @@ impl eframe::App for App {
});

ui.add_enabled_ui(self.state.config.drg_pak_path.is_some(), |ui| {
let mut button = ui.button("Uninstall mods");
let mut button = ui.button("Uninstall hook and mods").on_hover_text(
"Remove the hook dll and mod bundle from game folder",
);
if self.state.config.drg_pak_path.is_none() {
button = button.on_disabled_hover_text(
"DRG install not found. Configure it in the settings menu.",
Expand Down

0 comments on commit c245654

Please sign in to comment.