Skip to content

NRestSiteCharacter: reticle obstructs hitbox's focus events #358

Description

@OceanUwU

currently it's impossible to select another player using rest site visuals created with nrestsitecharacterfactory, because when it creates the reticle it creates it on top of the hitbox and prevents hover events from reaching it

when the selection reticle is created, it should be moved behind the hitbox with Node.MoveChild()

case "%SelectionReticle":
hitbox = target.GetNode<Control>("%Hitbox");
var reticle = SceneHelper.Instantiate<NSelectionReticle>("ui/selection_reticle");
CopyControlProperties(reticle, hitbox);
target.AddUnique(reticle, "SelectionReticle");
break;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions