示例#1
0
        public Widget(RenderCamera arg_camera, float arg_uiscale)
        {
            camera = arg_camera;

            uiscale = arg_uiscale;
            size = camera.output_res;
        }
示例#2
0
        public Widget(GraphicsDevice device, SpriteBatch batch, Vector2 default_size, float arg_uiscale, int upscale = GameConst.upsample)
        {
            int width = (int)Math.Ceiling(default_size.X * arg_uiscale);
            int height = (int)Math.Ceiling(default_size.Y * arg_uiscale);

            uiscale = arg_uiscale;
            size = new Vector2(width, height);

            camera = new RenderCamera(device, batch, width, height, upscale);
            //camera.Traditional(uiscale);
        }
示例#3
0
 public WidgetCamera( UI arg_ui, RenderCamera arg_camera) : base(arg_camera, 1.0f)
 {
     ui = arg_ui;
 }