コード例 #1
0
    public float fixedScale;     //set in PlayerEditor.StartDelete

    public NameBox(Slot slot)
    {
        this.slot = slot;

        base.Init(slot.player);

        contentContainer.AddChild(nameLabel = new FLabel("Raleway", slot.player.name));
        nameLabel.color   = Color.black;
        nameLabel.anchorX = 0.0f;

        contentContainer.AddChild(_cursor = new NameBoxCursor());
        _cursor.alpha = 0;

        slot.player.SignalNameChange += HandleNameChange;

        HandleNameChange();
        ListenForUpdate(HandleUpdate);
    }
コード例 #2
0
ファイル: NameBox.cs プロジェクト: MattRix/ScorekeeperX
    public NameBox(Slot slot)
    {
        this.slot = slot;

        base.Init(slot.player);

        contentContainer.AddChild(nameLabel = new FLabel("Raleway",slot.player.name));
        nameLabel.color = Color.black;
        nameLabel.anchorX = 0.0f;

        contentContainer.AddChild(_cursor = new NameBoxCursor());
        _cursor.alpha = 0;

        slot.player.SignalNameChange += HandleNameChange;

        HandleNameChange();
        ListenForUpdate(HandleUpdate);
    }