Compare commits

...

5 Commits

Author SHA1 Message Date
LagoLunatic 221c1a8cda
Merge 0b7afa9f1e into 7aa878b48e 2024-12-01 22:33:58 -07:00
LagoLunatic 0b7afa9f1e Remove trailing newline when displaying decoded rlwinm info 2024-12-01 20:34:48 -05:00
LagoLunatic 5841d4db8a Display decoded rlwinm info to hover tooltip 2024-12-01 20:27:56 -05:00
LagoLunatic 7a360d4a99 Update .gitignore 2024-12-01 20:26:17 -05:00
LagoLunatic 40c97a1bc3 Fix missing dependency feature for objdiff-gui 2024-12-01 20:26:17 -05:00
4 changed files with 7 additions and 3 deletions

2
.gitignore vendored
View File

@ -18,4 +18,4 @@ android.keystore
*.frag
*.vert
*.metal
.vscode/launch.json
.vscode/

View File

@ -95,7 +95,7 @@ exec = "0.3"
# native:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tracing-subscriber = "0.3"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# web:
[target.'cfg(target_arch = "wasm32")'.dependencies]

View File

@ -149,6 +149,10 @@ fn ins_hover_ui(
ui.colored_label(appearance.highlight_color, "Extern".to_string());
}
}
if let Some(demangled) = rlwinmdec::decode(&ins.formatted) {
ui.colored_label(appearance.highlight_color, demangled.trim());
}
});
}

View File

@ -19,7 +19,7 @@ pub fn rlwinm_decode_window(
if let Some(demangled) = rlwinmdec::decode(&state.text) {
ui.scope(|ui| {
ui.style_mut().override_text_style = Some(TextStyle::Monospace);
ui.colored_label(appearance.replace_color, &demangled);
ui.colored_label(appearance.replace_color, demangled.trim());
});
if ui.button("Copy").clicked() {
ui.output_mut(|output| output.copied_text = demangled);