public List<ObjectList> FlatUpdate(float elapsedSeconds, Input Input, Renderable node) { var mouse = Input.QueryAxis("primary"); node.MouseHover = true; node.LocalMouseX = (int)(mouse.X - node.uiRoot.rect.X); node.LocalMouseY = (int)(mouse.Y - node.uiRoot.rect.Y); return Update(elapsedSeconds, Input, node); }
public List<ObjectList> Update(float elapsedSeconds, Input Input, Renderable guiNode) { var mousePressed = Input.Check("click"); var events = new List<ObjectList>(); guiNode.uiRoot.HandleMouseEx(guiNode.MouseHover, guiNode.LocalMouseX, guiNode.LocalMouseY, mousePressed, (olist) => { events.Add(olist); }); guiNode.MouseHover = false; return events; }
public SceneNode(Renderable Renderable, Euler Euler = null) { this.Orientation = Euler; if (this.Orientation == null) this.Orientation = new Euler(); this.Renderable = Renderable; }
public void DrawRenderable(Renderable renderable) { uiRenderer.Camera = renderable.uiCamera; uiRenderer.BeginScene(renderable.renderTarget); renderable.uiRoot.Render(uiRenderer); }