diff options
author | Wuzzy <almikes@aol.com> | 2016-08-30 23:25:24 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-08-30 23:25:24 +0200 |
commit | 7b4883ddec740f282671217633e200b4da77db76 (patch) | |
tree | f2e6fcc8d60b365d999af417f0d88447bd1076af /API.md | |
parent | 4aa4b7d8e7b6df3499ffbe6c1f54a2256d53aa97 (diff) |
Enforce hidden entries for show_entry
Diffstat (limited to 'API.md')
-rw-r--r-- | API.md | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -136,14 +136,18 @@ Opens the documentation formspec for the player at the specified category #### Return value Always `nil`. -### `doc.show_entry(playername, category_id, entry_id)` +### `doc.show_entry(playername, category_id, entry_id, ignore_hidden)` Opens the documentation formspec for the player showing the specified entry -of a category (Entry tab). +of a category (Entry tab). If the entry is hidden, an error message +is displayed unless `ignore_hidden==true`. #### Parameters * `playername`: Name of the player to show the formspec to * `category_id`: Category identifier of the selected category * `entry_id`: Entry identifier of the entry to show +* `ignore_hidden`: (optional) If `true`, shows entry even if it is still hidden + to the player; this will automatically reveal the entry to this player for the + rest of the game #### Return value Always `nil`. |