예제 #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)));
        }
예제 #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;
 }
예제 #3
0
파일: LobbyScreen.cs 프로젝트: Mattias1/td
 public LobbyScreen(ScreenLayerCollection parent, GeometryManager geometries, Logger logger, InputManager inputManager)
     : base(parent, geometries, .5f, .5f, true)
 {
     this.logger       = logger;
     this.inputManager = inputManager;
 }
예제 #4
0
파일: ScreenLayer.cs 프로젝트: Mattias1/td
 protected ScreenLayer(ScreenLayerCollection parent)
 {
     Parent = parent;
 }
예제 #5
0
 protected UIScreenLayer(ScreenLayerCollection parent, GeometryManager geometries) : this(parent, geometries, .5f, 1, true)
 {
 }
예제 #6
0
 protected ScreenLayerGroup(ScreenLayerCollection parent)
 {
     this.parent = parent;
 }