public GuiElementMouseInteraction( GuiElementMousePositionChecker mousePositionChecker, SelectionInteraction selectionInteraction ) { this.mousePositionChecker = mousePositionChecker; this.selectionInteraction = selectionInteraction; }
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); }