Esempio n. 1
0
        public ConsoleScreenLayer(ScreenLayerCollection parent, GeometryManager geometries, Logger logger) : base(parent, geometries, 0, 1, true)
        {
            this.logger = logger;

            bounds = new Bounds(new ScalingDimension(Screen.X), new FixedSizeDimension(Screen.Y, consoleHeight));
            AddComponent(new ConsoleTextComponent(Bounds.Within(bounds, padding, padding, padding + inputBoxHeight, padding), logger));
            AddComponent(consoleInput = new TextInput(Bounds.Within(bounds, consoleHeight - inputBoxHeight, padding, 0, padding)));
        }
Esempio n. 2
0
 protected UIScreenLayer(ScreenLayerCollection parent, GeometryManager geometries, float originX, float originY, bool flipY) : base(parent)
 {
     Geometries   = geometries;
     Screen       = Screen.GetCanvas();
     this.originX = originX;
     this.originY = originY;
     this.flipY   = flipY;
 }
Esempio n. 3
0
 public LobbyScreen(ScreenLayerCollection parent, GeometryManager geometries, Logger logger, InputManager inputManager)
     : base(parent, geometries, .5f, .5f, true)
 {
     this.logger       = logger;
     this.inputManager = inputManager;
 }
Esempio n. 4
0
 protected ScreenLayer(ScreenLayerCollection parent)
 {
     Parent = parent;
 }
Esempio n. 5
0
 protected UIScreenLayer(ScreenLayerCollection parent, GeometryManager geometries) : this(parent, geometries, .5f, 1, true)
 {
 }
Esempio n. 6
0
 protected ScreenLayerGroup(ScreenLayerCollection parent)
 {
     this.parent = parent;
 }