UI module more refactoring.

--HG--
branch : dev
This commit is contained in:
Martí­n Lucas Golini
2017-02-18 05:19:11 -03:00
parent c7a5220c21
commit c5213cd551
47 changed files with 281 additions and 281 deletions

View File

@@ -45,7 +45,7 @@ void UITextInput::update() {
if ( mTextBuffer.changedSinceLastUpdate() ) {
Vector2f offSet = mAlignOffset;
UITextBox::text( mTextBuffer.getBuffer() );
UITextBox::setText( mTextBuffer.getBuffer() );
updateText();
@@ -202,16 +202,16 @@ const bool& UITextInput::allowEditing() const {
return mAllowEditing;
}
void UITextInput::text( const String& text ) {
UITextBox::text( text );
void UITextInput::setText( const String& text ) {
UITextBox::setText( text );
mTextBuffer.setBuffer( text );
mTextBuffer.cursorToEnd();
}
const String& UITextInput::text() {
return UITextBox::text();
const String& UITextInput::getText() {
return UITextBox::getText();
}
void UITextInput::shrinkText( const Uint32& MaxWidth ) {