Ejemplo n.º 1
0
 public GuiElementMouseInteraction(
     GuiElementMousePositionChecker mousePositionChecker,
     SelectionInteraction selectionInteraction
     )
 {
     this.mousePositionChecker = mousePositionChecker;
     this.selectionInteraction = selectionInteraction;
 }
Ejemplo n.º 2
0
        public GuiContext(IGuiRenderer guiRenderer)
        {
            {
                GuiElementMousePositionChecker guiElementMousePositionChecker = new GuiElementMousePositionChecker(guiElements);

                SelectionInteraction selectionInteraction = new SelectionInteraction(selectionTracker, guiElements);
                mouseInteraction = new GuiElementMouseInteraction(guiElementMousePositionChecker, selectionInteraction);
            }

            elementRenderer = new GuiElementRenderer(guiElements, guiRenderer);
        }