From cef551b66008125fcd9f26030b3c768d156888e8 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Sat, 18 Jul 2020 02:32:52 +0700 Subject: [PATCH] Add global `string` to `Text` conversion --- sources/Core/AcediaActor.uc | 5 +++++ sources/Core/AcediaObject.uc | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/sources/Core/AcediaActor.uc b/sources/Core/AcediaActor.uc index 1950db2..ce51fee 100644 --- a/sources/Core/AcediaActor.uc +++ b/sources/Core/AcediaActor.uc @@ -25,6 +25,11 @@ class AcediaActor extends Actor var protected Global _; +public final function Text T(string string) +{ + return _.text.FromString(string); +} + event PreBeginPlay() { super.PreBeginPlay(); diff --git a/sources/Core/AcediaObject.uc b/sources/Core/AcediaObject.uc index ec6cb4d..2d451cf 100644 --- a/sources/Core/AcediaObject.uc +++ b/sources/Core/AcediaObject.uc @@ -25,6 +25,11 @@ class AcediaObject extends Object abstract; +public final function Text T(string string) +{ + return _().text.FromString(string); +} + public static final function Global _() { return Global(class'Global'.static.GetInstance());