public Widget(RenderCamera arg_camera, float arg_uiscale) { camera = arg_camera; uiscale = arg_uiscale; size = camera.output_res; }
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); }
public WidgetCamera( UI arg_ui, RenderCamera arg_camera) : base(arg_camera, 1.0f) { ui = arg_ui; }