Fix formatting for Core.get_formatted_string()
This commit is contained in:
parent
3db90ed612
commit
0ba6f85c41
1 changed files with 7 additions and 7 deletions
14
src/core.gd
14
src/core.gd
|
@ -197,13 +197,13 @@ func is_devmode() -> bool:
|
|||
|
||||
# Replaces variables with human-friendly strings
|
||||
## Replaces placeholders with human-friendly strings You can use the following placeholders:[br]
|
||||
## - `%release%`: Returns the release number.[br]
|
||||
## - `%release_type%`: Returns the typerelease number[br]
|
||||
## - `%release_semantic%`: Returns the result of [method Core.get_version_semantic], example [i]5.2.3[/i][br]
|
||||
## - `%type%`: Returns the release type as a word, for example [i]Release Candidate[/i][br]
|
||||
## - `%type_technical%`: Returns the release type as one or two lowercase letters, for example [i]rc[/i][br]
|
||||
## - `%devmode%`: Returns the development mode status[br]
|
||||
## - `%headless%`: Returns the headless mode status
|
||||
## - [code]%release%[/code]: Returns the release number.[br]
|
||||
## - [code]%release_type%[/code]: Returns the typerelease number[br]
|
||||
## - [code]%release_semantic%[/code]: Returns the result of [method Core.get_version_semantic], example [i]5.2.3[/i][br]
|
||||
## - [code]%type%[/code]: Returns the release type as a word, for example [i]Release Candidate[/i][br]
|
||||
## - [code]%type_technical%[/code]: Returns the release type as one or two lowercase letters, for example [i]rc[/i][br]
|
||||
## - [code]%devmode%[/code]: Returns the development mode status[br]
|
||||
## - [code]%headless%[/code]: Returns the headless mode status
|
||||
func get_formatted_string(string: String) -> String:
|
||||
# Version strings
|
||||
string = string.replace("%release%", str(version_release))
|
||||
|
|
Loading…
Reference in a new issue