@@ -16,7 +16,7 @@ use super::DataUi;
16
16
//
17
17
// Show a button to an [`Item`] with a given text.
18
18
// pub fn item_button_to(
19
- // ctx: &mut ViewerContext<'_>,
19
+ // ctx: &ViewerContext<'_>,
20
20
// ui: &mut egui::Ui,
21
21
// item: &Item,
22
22
// text: impl Into<egui::WidgetText>,
@@ -39,7 +39,7 @@ use super::DataUi;
39
39
40
40
/// Show an entity path and make it selectable.
41
41
pub fn entity_path_button (
42
- ctx : & mut ViewerContext < ' _ > ,
42
+ ctx : & ViewerContext < ' _ > ,
43
43
ui : & mut egui:: Ui ,
44
44
space_view_id : Option < SpaceViewId > ,
45
45
entity_path : & EntityPath ,
@@ -55,7 +55,7 @@ pub fn entity_path_button(
55
55
56
56
/// Show an entity path and make it selectable.
57
57
pub fn entity_path_button_to (
58
- ctx : & mut ViewerContext < ' _ > ,
58
+ ctx : & ViewerContext < ' _ > ,
59
59
ui : & mut egui:: Ui ,
60
60
space_view_id : Option < SpaceViewId > ,
61
61
entity_path : & EntityPath ,
@@ -72,7 +72,7 @@ pub fn entity_path_button_to(
72
72
73
73
/// Show an instance id and make it selectable.
74
74
pub fn instance_path_button (
75
- ctx : & mut ViewerContext < ' _ > ,
75
+ ctx : & ViewerContext < ' _ > ,
76
76
ui : & mut egui:: Ui ,
77
77
space_view_id : Option < SpaceViewId > ,
78
78
instance_path : & InstancePath ,
@@ -88,7 +88,7 @@ pub fn instance_path_button(
88
88
89
89
/// Show an instance id and make it selectable.
90
90
pub fn instance_path_button_to (
91
- ctx : & mut ViewerContext < ' _ > ,
91
+ ctx : & ViewerContext < ' _ > ,
92
92
ui : & mut egui:: Ui ,
93
93
space_view_id : Option < SpaceViewId > ,
94
94
instance_path : & InstancePath ,
@@ -214,7 +214,7 @@ pub fn data_blueprint_group_button_to(
214
214
}
215
215
216
216
pub fn data_blueprint_button_to (
217
- ctx : & mut ViewerContext < ' _ > ,
217
+ ctx : & ViewerContext < ' _ > ,
218
218
ui : & mut egui:: Ui ,
219
219
text : impl Into < egui:: WidgetText > ,
220
220
space_view_id : SpaceViewId ,
@@ -326,11 +326,7 @@ pub fn select_hovered_on_click(ctx: &ViewerContext<'_>, response: &egui::Respons
326
326
/// Displays the "hover card" (i.e. big tooltip) for an instance or an entity.
327
327
///
328
328
/// The entity hover card is displayed the provided instance path is a splat.
329
- pub fn instance_hover_card_ui (
330
- ui : & mut Ui ,
331
- ctx : & mut ViewerContext < ' _ > ,
332
- instance_path : & InstancePath ,
333
- ) {
329
+ pub fn instance_hover_card_ui ( ui : & mut Ui , ctx : & ViewerContext < ' _ > , instance_path : & InstancePath ) {
334
330
let subtype_string = if instance_path. instance_key . is_splat ( ) {
335
331
"Entity"
336
332
} else {
@@ -355,11 +351,7 @@ pub fn instance_hover_card_ui(
355
351
}
356
352
357
353
/// Displays the "hover card" (i.e. big tooltip) for an entity.
358
- pub fn entity_hover_card_ui (
359
- ui : & mut egui:: Ui ,
360
- ctx : & mut ViewerContext < ' _ > ,
361
- entity_path : & EntityPath ,
362
- ) {
354
+ pub fn entity_hover_card_ui ( ui : & mut egui:: Ui , ctx : & ViewerContext < ' _ > , entity_path : & EntityPath ) {
363
355
let instance_path = InstancePath :: entity_splat ( entity_path. clone ( ) ) ;
364
356
instance_hover_card_ui ( ui, ctx, & instance_path) ;
365
357
}
0 commit comments