Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated text block code to new API
  • Loading branch information
boristsr committed May 7, 2020
commit 1a18e224eb11d31c268e4ff23bf74e61c2cbd57d
6 changes: 6 additions & 0 deletions Source/UnrealEnginePython/Private/Slate/UEPySTextBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ static PyObject *py_ue_stext_block_set_text(ue_PySTextBlock *self, PyObject * ar
return nullptr;
}

#if ENGINE_MINOR_VERSION < 25
py_STextBlock->SetText(FString(UTF8_TO_TCHAR(text)));
#else
FText tempText;
tempText.FromString(FString(UTF8_TO_TCHAR(text)));
py_STextBlock->SetText(tempText);
#endif

Py_RETURN_SLATE_SELF;
}
Expand Down