Update to 203018db6f281dca5ea2f806bf89ff1427c4560a
This commit is contained in:
parent
d38a33de8f
commit
24ae3a10bf
1 changed files with 11 additions and 0 deletions
11
src/Misc.gd
11
src/Misc.gd
|
@ -60,3 +60,14 @@ func format_stringarray(array: Array[String], item_before: String = "", item_aft
|
|||
output = output.replace("If you somehow see this text report this at https://git.staropensource.de/StarOpenSource/CORE/issues, thank you!", separator_final)
|
||||
|
||||
return output
|
||||
|
||||
func array_to_stringarray(array: Array) -> Array[String]:
|
||||
var output: Array[String] = []
|
||||
|
||||
for item in array:
|
||||
if typeof(item) != TYPE_STRING:
|
||||
logger.error("Cannot convert Array to Array[String]: Item '" + str(item) + "' is not of type String")
|
||||
return []
|
||||
output.append(item)
|
||||
|
||||
return output
|
||||
|
|
Loading…
Reference in a new issue