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

Function set_panel_style

perro_editor/res/scripts/ui/editor_ui.rs:3809–3830  ·  view source on GitHub ↗
(
    ctx: &mut ScriptContext<'_, API>,
    name: &str,
    fill: &str,
    stroke: &str,
    radius: f32,
)

Source from the content-addressed store, hash-verified

3807 return format!(
3808 "as sibling of {} parent: {parent} kind={kind} Tab toggles",
3809 doc.scene.key_name_or_id(node.key)
3810 );
3811 }
3812 format!(
3813 "as child of {} ({}) kind={} Tab toggles",
3814 doc.scene.key_name_or_id(node.key),
3815 node.data.type_name(),
3816 node_type_kind(node.data.node_type)
3817 )
3818}
3819
3820pub fn node_type_icon(node_type: perro_scene::NodeType) -> &'static str {
3821 match node_type.name() {
3822 "Sprite2D" => "[SPR]",
3823 "Camera2D" | "Camera3D" => "[CAM]",
3824 "MeshInstance3D" | "MultiMeshInstance3D" => "[MSH]",
3825 "PointLight2D" | "SpotLight2D" | "RayLight2D" | "AmbientLight2D" | "PointLight3D"
3826 | "SpotLight3D" | "RayLight3D" | "AmbientLight3D" => "[LGT]",
3827 "AudioPlayer2D"
3828 | "AudioStreamPlayer2D"
3829 | "AudioArea2D"
3830 | "AudioPlayer3D"
3831 | "AudioStreamPlayer3D"
3832 | "AudioArea3D" => "[AUD]",
3833 "PhysicsBody2D" | "StaticBody2D" | "RigidBody2D" | "CharacterBody2D" | "Area2D"

Callers 1

Calls 1

find_namedFunction · 0.85

Tested by

no test coverage detected