Line 80: |
Line 80: |
| |- | | |- |
| | <samp>Context.CanPlayerMove</samp> | | | <samp>Context.CanPlayerMove</samp> |
− | | Whether <samp>Context.IsPlayerFree</samp> and the player is free to move (''e.g.'', not using a tool). | + | | Whether <samp>Context.IsPlayerFree</samp> and the player is free to move (''e.g.,'' not using a tool). |
| |- | | |- |
| | <samp>Context.IsInDrawLoop</samp> | | | <samp>Context.IsInDrawLoop</samp> |
Line 197: |
Line 197: |
| |- | | |- |
| | <code>IsSlug</code> | | | <code>IsSlug</code> |
− | | Get whether a string can be used as a 'slug', containing only basic characters that are safe in all contexts (''e.g.'', filenames, URLs, SMAPI IDs, etc). | + | | Get whether a string can be used as a 'slug', containing only basic characters that are safe in all contexts (''e.g.,'' filenames, URLs, SMAPI IDs, etc). |
| |- | | |- |
| | <code>NormalizePath</code> | | | <code>NormalizePath</code> |
Line 226: |
Line 226: |
| </syntaxhighlight> | | </syntaxhighlight> |
| | | |
− | Note that game versions before 1.2.0 and some mod versions are non-standard (''e.g.'', Stardew Valley 1.11 comes ''before'' 1.2). All SMAPI versions are standard. | + | Note that game versions before 1.2.0 and some mod versions are non-standard (''e.g.,'' Stardew Valley 1.11 comes ''before'' 1.2). All SMAPI versions are standard. |
| | | |
| ==Input== | | ==Input== |
| SMAPI's <samp>SButton</samp> constants uniquely represent controller, keyboard, and mouse button presses or clicks. See the [[../Input|Input]] page for more info. | | SMAPI's <samp>SButton</samp> constants uniquely represent controller, keyboard, and mouse button presses or clicks. See the [[../Input|Input]] page for more info. |