mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
Editing now starts by default for the text edit popups.
This commit is contained in:
parent
928553da3e
commit
8131b81761
|
@ -34,6 +34,9 @@ public:
|
||||||
void setValue(const std::string& val) override;
|
void setValue(const std::string& val) override;
|
||||||
std::string getValue() const override;
|
std::string getValue() const override;
|
||||||
|
|
||||||
|
void startEditing();
|
||||||
|
void stopEditing();
|
||||||
|
|
||||||
inline bool isEditing() const { return mEditing; };
|
inline bool isEditing() const { return mEditing; };
|
||||||
inline const std::shared_ptr<Font>& getFont() const { return mFont; }
|
inline const std::shared_ptr<Font>& getFont() const { return mFont; }
|
||||||
|
|
||||||
|
@ -42,9 +45,6 @@ public:
|
||||||
virtual std::vector<HelpPrompt> getHelpPrompts() override;
|
virtual std::vector<HelpPrompt> getHelpPrompts() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void startEditing();
|
|
||||||
void stopEditing();
|
|
||||||
|
|
||||||
void onTextChanged();
|
void onTextChanged();
|
||||||
void onCursorChanged();
|
void onCursorChanged();
|
||||||
|
|
||||||
|
|
|
@ -88,6 +88,7 @@ GuiComplexTextEditPopup::GuiComplexTextEditPopup(
|
||||||
textHeight + mButtonGrid->getSize().y() + 220);
|
textHeight + mButtonGrid->getSize().y() + 220);
|
||||||
setPosition((Renderer::getScreenWidth() - mSize.x()) / 2,
|
setPosition((Renderer::getScreenWidth() - mSize.x()) / 2,
|
||||||
(Renderer::getScreenHeight() - mSize.y()) / 2);
|
(Renderer::getScreenHeight() - mSize.y()) / 2);
|
||||||
|
mText->startEditing();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GuiComplexTextEditPopup::onSizeChanged()
|
void GuiComplexTextEditPopup::onSizeChanged()
|
||||||
|
|
|
@ -66,6 +66,7 @@ GuiTextEditPopup::GuiTextEditPopup(
|
||||||
textHeight + mButtonGrid->getSize().y() + 40);
|
textHeight + mButtonGrid->getSize().y() + 40);
|
||||||
setPosition((Renderer::getScreenWidth() - mSize.x()) / 2, (Renderer::getScreenHeight() -
|
setPosition((Renderer::getScreenWidth() - mSize.x()) / 2, (Renderer::getScreenHeight() -
|
||||||
mSize.y()) / 2);
|
mSize.y()) / 2);
|
||||||
|
mText->startEditing();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GuiTextEditPopup::onSizeChanged()
|
void GuiTextEditPopup::onSizeChanged()
|
||||||
|
|
Loading…
Reference in a new issue