Mouse-Events direkt auf UiComponent #10
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sebastian/Dicewars-Siedler#10
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem: Interaktivität erfordert aktuell Vererbung von ClickableUiComponent. Jede zusammengesetzte Komponente die clickable sein soll (z.B. UiBuildingMenuButton) muss davon erben, auch wenn eigentlich nur ein Kind-Element die Interaktion tragen soll. Das erzwingt tiefe Klassenhierarchien.
Lösung: addMouseListener(), fireEvent() und VisualStyle-Map direkt in UiComponent:
ClickableUiComponent als Klasse entfernen.
Acceptance Criteria: