Test-Button aus UILayer entfernen #8

Closed
opened 2026-04-16 19:45:30 +00:00 by sebastian · 0 comments
Owner

Problem: In UILayer::onAttach() existiert ein Button ohne Funktion:

auto uiButton = std::make_unique<UiButton>(..., "Test", ...);
uiButton->addMouseListener([](const MouseEventData& e) {
    if (e.isClick(MouseButton::LEFT))
        std::cout << "Button clicked!" << std::endl;
});

Acceptance Criteria:

  • Button und zugehöriger font-Member entfernt (wird nur dafür genutzt)
Problem: In UILayer::onAttach() existiert ein Button ohne Funktion: ``` auto uiButton = std::make_unique<UiButton>(..., "Test", ...); uiButton->addMouseListener([](const MouseEventData& e) { if (e.isClick(MouseButton::LEFT)) std::cout << "Button clicked!" << std::endl; }); ``` Acceptance Criteria: - Button und zugehöriger font-Member entfernt (wird nur dafür genutzt)
sebastian added the
bug
ui
labels 2026-04-16 19:45:30 +00:00
sebastian added this to the Quick Wins milestone 2026-04-16 19:50:43 +00:00
sebastian added this to the Dicewars project 2026-04-16 21:00:22 +00:00
sebastian started working 2026-04-17 06:35:35 +00:00
sebastian stopped working 2026-04-17 06:36:17 +00:00
42 seconds
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 42 seconds
sebastian
42 seconds
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sebastian/Dicewars-Siedler#8
No description provided.