예제 #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);
 }