Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make lilka::Menu component avaliable for reuse #51

Merged
merged 3 commits into from
Mar 24, 2024
Merged

Make lilka::Menu component avaliable for reuse #51

merged 3 commits into from
Mar 24, 2024

Conversation

frostmorn
Copy link
Collaborator

menu->clearItems and menu->setItem implementation

Copy link
Owner

@and3rson and3rson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Супер, є лише декілька дрібних зауважень

@@ -81,8 +81,19 @@ class Menu {
///
/// Якщо пункт обрано (користувач натиснув кнопку "A"), повертається ``true``, інакше ``false``. Після виклику цієї функції пункт перестає бути обраним.
bool isFinished();
/// Дозволяє змінити пункту меню
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Опечатка, + краще в наказовому стилі: "Змінити пункт меню"

І ще, можна додати вже й getItem, раз вже є всі інші методи :)

/// @param color Колір пункту. За замовчуванням ``0`` (стандартний колір).
/// @param postfix Текст, який додається після заголовка пункту і вирівнюється до правого краю меню.
///
/// Повертає значення true якщо пункт було змінено
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Бракує коми перед "якщо"

@frostmorn frostmorn requested a review from and3rson March 24, 2024 17:04
Copy link
Owner

@and3rson and3rson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Супер, є тільки одне зауваження (див. комент)

@and3rson and3rson merged commit 1f0deaf into main Mar 24, 2024
3 checks passed
@frostmorn frostmorn deleted the ui_reuse branch March 27, 2024 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants