Beispiel #1
0
 public QuadComponent(UILayer layer, vec2 size, RenderComponent.RenderComponent component)
 {
     Layer           = layer;
     Quad            = new QuadMesh(size.ScaleToScreen());
     RenderComponent = component;
 }
Beispiel #2
0
 public QuadComponent(UILayer layer, vec2 size) : this(layer)
 {
     Quad = new QuadMesh(size.ScaleToScreen());
 }
Beispiel #3
0
 public ButtonComponent(UILayer layer, vec2 size, RenderComponent.RenderComponent component) : base(layer, size, component)
 {
     Program.Window.OnCursorMove  += OnMouseMove;
     Program.Window.OnMouseButton += OnMouseButton;
 }
Beispiel #4
0
 public QuadComponent(UILayer layer)
 {
     Layer = layer; RenderComponent = new BasicRenderComponent();
 }
Beispiel #5
0
 protected ButtonComponent(UILayer layer) : base(layer)
 {
     Program.Window.OnCursorMove  += OnMouseMove;
     Program.Window.OnMouseButton += OnMouseButton;
 }