mirror of
https://github.com/celisej567/mcpe.git
synced 2025-12-31 17:49:17 +03:00
* Fix some issues with the OptionList.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user