Skip to content

Commit

Permalink
Add better visual indication of DRG pak help text
Browse files Browse the repository at this point in the history
  • Loading branch information
trumank committed Jul 21, 2023
1 parent 56e04be commit 679af50
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/gui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use std::{
use anyhow::{anyhow, Context, Result};
use eframe::{
egui::{self, TextFormat},
epaint::{text::LayoutJob, Color32},
epaint::{text::LayoutJob, Color32, Stroke},
};
use tokio::{
sync::mpsc::{self, Receiver, Sender},
Expand Down Expand Up @@ -415,7 +415,17 @@ impl App {
.resizable(false)
.show(ctx, |ui| {
egui::Grid::new("grid").num_columns(2).show(ui, |ui| {
ui.label("DRG pak").on_hover_text("Path to FSD-WindowsNoEditor.pak (FSD-WinGDK.pak for Microsoft Store version)\nLocated inside the \"Deep Rock Galactic\" installation directory under FSD/Content/Paks.");
let mut job = LayoutJob::default();
job.append(
"DRG pak",
0.0,
TextFormat {
color: ui.visuals().text_color(),
underline: Stroke::new(1.0, ui.visuals().text_color()),
..Default::default()
},
);
ui.label(job).on_hover_cursor(egui::CursorIcon::Help).on_hover_text("Path to FSD-WindowsNoEditor.pak (FSD-WinGDK.pak for Microsoft Store version)\nLocated inside the \"Deep Rock Galactic\" installation directory under FSD/Content/Paks.");
ui.horizontal(|ui| {
let res = ui.add(
egui::TextEdit::singleline(
Expand Down

0 comments on commit 679af50

Please sign in to comment.