示例#1
0
 public override void Reset()
 {
     selectedChannel     = 0;
     channelSelected     = false;
     colorMember         = null;
     CloseWidgetCallback = null;
 }
示例#2
0
            public override void SetData(object member, Action CloseWidgetCallback)
            {
                textValueMember          = member as IBlockValue <StringBuilder>;
                textMember               = member as IBlockTextMember;
                this.CloseWidgetCallback = CloseWidgetCallback;

                label.TextBoard.SetText(textMember.Name);
                textField.CharFilterFunc = textMember.CharFilterFunc;

                if (BindManager.IsChatOpen)
                {
                    textField.TextBoard.SetText(textValueMember.Value);
                }
                else
                {
                    textField.TextBoard.SetText(textEntryWarning);
                }

                if (BindManager.IsChatOpen && !textField.InputOpen)
                {
                    textField.OpenInput();
                }

                textField.MouseInput.GetInputFocus();
            }
示例#3
0
            public override void Reset()
            {
                CloseWidgetCallback = null;

                Confirm();
                textValueMember = null;
                textMember      = null;
            }
示例#4
0
        public override void VisitBlockValueNode(IBlockValue blockValue, IHighlightingConsumer consumer)
        {
            var containingNode = blockValue.GetContainingNode <IBlockCommand>();

            Assertion.AssertNotNull(containingNode, "containingNode != null");
            if (containingNode != null)
            {
                consumer.AddFoldingForBracedConstruct(blockValue.LBrace, blockValue.RBrace, containingNode);
            }
        }
示例#5
0
            public override void SetData(object member, Action CloseWidgetCallback)
            {
                colorMember = member as IBlockValue <Color>;
                this.CloseWidgetCallback = CloseWidgetCallback;

                initColor         = colorMember.Value;
                colorPicker.Color = colorMember.Value;
                colorPicker.NameBuilder.SetText(colorMember.Name);
                colorPicker.SetChannelFocused(selectedChannel);

                incrZ = BvConfig.Current.block.colorMult.Z; // x64
                incrY = BvConfig.Current.block.colorMult.Y; // x16
                incrX = BvConfig.Current.block.colorMult.X; // x8
            }
示例#6
0
 public IBlockValue SetValue(IBlockValue param)
 {
     return(SetValue((IShaderLabTreeNode)param) as IBlockValue);
 }