Strings (functions): Difference between revisions

From PMDOWiki
Imbion (talk | contribs)
Created page with "{{cleanup}} == STRINGS:LocaleCode == Gets the current language setting of the game. === Returns === The current language, represented by a locale code. == STRINGS:Format(System.String,System.Object[]) == Formats a string. Will unescape escaped characters and process grammar tags. === Arguments === * <code>fmt</code>: String to format. * <code>para</code>: Arguments === Returns === The formatted string. == STRINGS:FormatKey(System.String,System.Object[]) =..."
 
Imbion (talk | contribs)
No edit summary
Line 1: Line 1:
{{Hat Note|More functions: [[Script Reference]]''}}
{{cleanup}}
{{cleanup}}



Revision as of 20:13, 17 January 2026

More functions: Script Reference
This article is in need of cleanup to increase its quality. You can help PMDO Wiki by improving it.


STRINGS:LocaleCode

Gets the current language setting of the game.


Returns

The current language, represented by a locale code.

STRINGS:Format(System.String,System.Object[])

Formats a string. Will unescape escaped characters and process grammar tags.


Arguments

  • fmt: String to format.
  • para: Arguments

Returns

The formatted string.

STRINGS:FormatKey(System.String,System.Object[])

Formats a string given a string key. Will unescape escaped characters.


Arguments

  • fmt: The string key to format
  • para: string arguments

STRINGS:LocalKeyString(System.Int32)

Gets the string representing a button or key.


Arguments

  • index: The input type of the input.

Returns

The string representing the button o key the input maps to.

STRINGS:CreateList(NLua.LuaTable)

Builds a single string of comma separated elements.


Arguments

  • listStrings: LuaTable of strings containing the elements to build the list from.

Returns

The combined string containing all elements.