MCPcopy Create free account
hub / github.com/PerroEngine/Perro / format_compact_f32

Function format_compact_f32

perro_editor/res/scripts/ui/editor_ui.rs:2420–2428  ·  view source on GitHub ↗
(value: f32)

Source from the content-addressed store, hash-verified

2418 set_label_color(ctx, &name_label, theme::TEXT);
2419 } else if changed {
2420 // Godot renders overridden properties with a brighter label.
2421 set_label_color(ctx, &name_label, theme::TEXT);
2422 } else {
2423 set_label_color(ctx, &name_label, theme::TEXT_DIM);
2424 }
2425 let box_w = if row.kind == "Quat" && row.components.len() == 3 {
2426 0.28
2427 } else if row.kind == "Quat" {
2428 0.20
2429 } else {
2430 match row.components.len() {
2431 2 => 0.42,

Callers 1

scene_value_edit_textFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected