* Fix some issues with the OptionList.

This commit is contained in:
iProgramInCpp
2023-11-05 18:57:08 +02:00
parent 58e03d6758
commit 253c89a6d5
2 changed files with 2 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ BooleanOptionItem::BooleanOptionItem(bool* pValue, const std::string& text)
{
m_text = text;
m_pValue = pValue;
m_bDisabled = false;
}
void BooleanOptionItem::onClick(OptionList* pList, int mouseX, int mouseY)

View File

@@ -85,7 +85,7 @@ public:
HeaderOptionItem(const std::string& text);
void render(OptionList*, int x, int y) override;
bool maySelect() override { return false; }
void onClick(OptionList*, int mouseX, int mouseY) {}
void onClick(OptionList*, int mouseX, int mouseY) override {}
private:
std::string m_text;