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

Function apply_component_row

perro_editor/res/scripts/ui/editor_ui.rs:811–835  ·  view source on GitHub ↗
(
    ctx: &mut ScriptContext<'_, API>,
    prefix: &str,
    labels: &[&str],
    values: &[String],
    visible: bool,
)

Source from the content-addressed store, hash-verified

809 set_ui_node_size(
810 ctx,
811 "bottom_tab_bar",
812 (
813 1.0,
814 if anim_open {
815 0.075
816 } else if view.bottom_dock_open {
817 0.22
818 } else {
819 1.0
820 },
821 ),
822 );
823 set_ui_display(
824 ctx,
825 "log_text",
826 view.bottom_dock_open && !view.anim_drawer_open,
827 );
828 set_ui_display(
829 ctx,
830 "output_toolbar",
831 view.bottom_dock_open && !view.anim_drawer_open,
832 );
833 set_ui_display(
834 ctx,
835 "anim_drawer",
836 view.bottom_dock_open && view.anim_drawer_open,
837 );
838 set_ui_display(ctx, "anim_create_button", view.anim_can_create);

Callers 1

refresh_inspector_viewFunction · 0.85

Calls 4

set_ui_displayFunction · 0.85
set_labelFunction · 0.85
set_text_boxFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected