public override void Reset() { selectedChannel = 0; channelSelected = false; colorMember = null; CloseWidgetCallback = null; }
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(); }
public override void Reset() { CloseWidgetCallback = null; Confirm(); textValueMember = null; textMember = null; }
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); } }
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 }
public IBlockValue SetValue(IBlockValue param) { return(SetValue((IShaderLabTreeNode)param) as IBlockValue); }