Ejemplo n.º 1
0
 public void Init(IStyleSystem s)
 {
     MinHeight         = s.CreateKey <int>("min-height", false);
     MaxHeight         = s.CreateKey <int>("max-height", false);
     MaxLinesVisible   = s.CreateKey <int>("max-lines-visible", false);
     UniformItemHeight = s.CreateKey <bool>("uniform-item-height", false);
 }
 public void Init(IStyleSystem s)
 {
     NotebookTabOverlapX = s.CreateKey <int>("notebook-tab-overlap-x", false);
     NotebookTabOverlapY = s.CreateKey <int>("notebook-tab-overlap-y", false);
 }
Ejemplo n.º 3
0
        public void Init(IStyleSystem s)
        {
            TooltipDelay       = s.CreateKey <float>("tooltip-delay", true);
            TooltipDisplayTime = s.CreateKey <float>("tooltip-display-time", true);
            TooltipPosition    = s.CreateKey <TooltipPositionMode>("tooltip-position", true);
            Visibility         = s.CreateKey <Visibility>("visibility", false);

            FrameTexture = s.CreateKey <IBoxTexture>("frame-texture", false);

            FrameOverlayTexture = s.CreateKey <IBoxTexture>("frame-overlay-texture", false);
            FrameOverlayColor   = s.CreateKey <Color>("frame-overlay-color", false);

            HoverOverlayTexture = s.CreateKey <IBoxTexture>("hover-overlay-texture", false);
            HoverOverlayColor   = s.CreateKey <Color>("hover-overlay-color", false);

            FocusedOverlayTexture = s.CreateKey <IBoxTexture>("focused-overlay-texture", false);
            FocusedOverlayColor   = s.CreateKey <Color>("focused-overlay-color", false);

            WidgetStateOverlay      = s.CreateKey <IBoxTexture>("widget-state-overlay", false);
            WidgetStateOverlayScale = s.CreateKey <bool>("widget-state-overlay-scale", false);
            WidgetStateOverlayColor = s.CreateKey <Color>("widget-state-overlay-color", false);

            Padding = s.CreateKey <Insets>("padding", false);
            Margin  = s.CreateKey <Insets>("margin", false);
            Color   = s.CreateKey <Color>("color", false);
        }
Ejemplo n.º 4
0
 public void Init(IStyleSystem s)
 {
     Font           = s.CreateKey <IUIFont>("font", true);
     TextColor      = s.CreateKey <Color>("text-color", true);
     Alignment      = s.CreateKey <Alignment>("text-alignment", true);
     OutlineColor   = s.CreateKey <Color>("outline-color", true);
     OutlineSize    = s.CreateKey <int>("outline-size", true);
     WrapText       = s.CreateKey <WrapText>("wrap-text", true);
     Underline      = s.CreateKey <bool>("underline", true);
     StrikeThrough  = s.CreateKey <bool>("strike-through", true);
     CaretWidth     = s.CreateKey <int>("caret-width", true);
     CaretBlinkRate = s.CreateKey <float>("caret-blink-rate", true);
     CaretBlinking  = s.CreateKey <bool>("caret-blinking", true);
     SelectionColor = s.CreateKey <Color>("selection-color", true);
 }
Ejemplo n.º 5
0
 public void Init(IStyleSystem s)
 {
     DownOverlay      = s.CreateKey <IBoxTexture>("down-overlay", false);
     DownOverlayColor = s.CreateKey <Color>("down-overlay-color", false);
 }
Ejemplo n.º 6
0
 public void Init(IStyleSystem s)
 {
     IconTextGap = s.CreateKey <int>("icon-text-gap", false);
 }
Ejemplo n.º 7
0
 public void Init(IStyleSystem s)
 {
     Texture      = s.CreateKey <IUITexture>("texture", false);
     TextureScale = s.CreateKey <ScaleMode>("texture-scale", false);
     TextureColor = s.CreateKey <Color>("texture-color", false);
 }
Ejemplo n.º 8
0
 public void Init(IStyleSystem s)
 {
     Normal    = s.CreateKey <string>("TestKey", false);
     Inherited = s.CreateKey <string>("TestKey-Inherited", true);
 }
Ejemplo n.º 9
0
 public void Init(IStyleSystem s)
 {
     ScrollbarMode = s.CreateKey <ScrollbarMode>("scrollbar-mode", false);
 }