mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
lua: textbox.text, placeholder properties
This commit is contained in:
parent
34815cfd9c
commit
a5925135a4
3 changed files with 44 additions and 4 deletions
|
|
@ -361,10 +361,18 @@ std::wstring TextBox::getText() const {
|
|||
return input;
|
||||
}
|
||||
|
||||
void TextBox::setText(std::wstring value) {
|
||||
void TextBox::setText(const std::wstring value) {
|
||||
this->input = value;
|
||||
}
|
||||
|
||||
std::wstring TextBox::getPlaceholder() const {
|
||||
return placeholder;
|
||||
}
|
||||
|
||||
void TextBox::setPlaceholder(const std::wstring& placeholder) {
|
||||
this->placeholder = placeholder;
|
||||
}
|
||||
|
||||
// ============================== InputBindBox ================================
|
||||
InputBindBox::InputBindBox(Binding& binding, glm::vec4 padding)
|
||||
: Panel(glm::vec2(100,32), padding, 0),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue