Skip to content

Commit

Permalink
Update text.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tabularelf authored Nov 2, 2023
1 parent cc396b4 commit cb94149
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions 2.1.3/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ To:
Example:<br>
```gml
// Returns the specific string/pointer
lexicon_text("text.introduction1");
lexicon_text("dialogue.introduction1");

// Returns the specific string/pointer. Replacing a single `%s`.
lexicon_text("text.introduction1", current_time/1000);
lexicon_text("dialogue.introduction1", current_time/1000);

// Returns the specific string/pointer. Replacing two+ `%s`.
lexicon_text("text.introduction1", current_time/1000, "This was added in");
lexicon_text("dialogue.introduction1", current_time/1000, "This was added in");
```
### `lexicon_text_array(textEntry, array)`
Expand All @@ -46,7 +46,7 @@ Example:<br>
```gml
// Returns the specific string/pointer with array entries replacing the replace character.
var _array = [current_time/1000, fps, fps_real];
lexicon_text_array("text.introduction1", array);
lexicon_text_array("dialogue.introduction1", array);
```

### `lexicon_text_struct(textEntry, struct)`
Expand All @@ -65,5 +65,5 @@ Example:<br>
```gml
// Returns the specific string/pointer, with struct modifiers
var _struct = {playerName: "TabulerElf"};
lexicon_text_struct("text.introduction1", _struct);
```
lexicon_text_struct("dialogue.introduction1", _struct);
```

0 comments on commit cb94149

Please sign in to comment.