コード例 #1
0
 public TextBoxPromptType()
 {
     this.Scope = ScopeType.Local;
     this.SaveLastInputAsDefault = SaveLastInputAsDefaultType.None;
     this.Width         = double.NaN;
     this.Height        = double.NaN;
     this.LabelPosition = LabelPositionType.Auto;
     this.AcceptEnter   = false;
     this.AcceptTab     = false;
 }
コード例 #2
0
 public TablePromptType()
 {
     this.Scope         = ScopeType.Local;
     this.Width         = double.NaN;
     this.Height        = double.NaN;
     this.LabelPosition = LabelPositionType.Auto;
     this.Source        = SourceType.ItemsList;
     this.AllowAdd      = true;
     this.AllowRemove   = true;
     this.AllowModify   = true;
 }
コード例 #3
0
 public ListBoxPromptType()
 {
     this.Scope = ScopeType.Local;
     this.SaveLastInputAsDefault = SaveLastInputAsDefaultType.None;
     this.Width             = double.NaN;
     this.Height            = double.NaN;
     this.LabelPosition     = LabelPositionType.Auto;
     this.ItemValueMember   = "Value";
     this.ItemDisplayMember = "Value";
     this.Source            = SourceType.ItemsList;
     this.MultiValue        = false;
 }
コード例 #4
0
        public virtual void AddLabel(double atValue, string text, Colorf color, LabelPositionType position, Vector2f offset)
        {
            PositionLabel label = new PositionLabel();

            label.text     = text;
            label.color    = color;
            label.position = position;
            label.offset   = offset;

            if (Labels.ContainsKey(atValue))
            {
                RemoveGO((fGameObject)Labels[atValue].go);
                Labels[atValue].go.Destroy();
            }

            Labels[atValue] = label;
        }
コード例 #5
0
 public LineLabelStyle Position(LabelPositionType position)
 {
     this.position = position;
     return(this);
 }