-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(native/graphics): Add ENABLE_MOON_CYCLE_OVERRIDE and DISABLE_MOO…
…N_CYCLE_OVERRIDE natives (#980) * feat(native/graphics): Add ENABLE_MOON_CYCLE_OVERRIDE and DISABLE_MOON_CYCLE_OVERRIDE natives. This commit renames existing natives '_RESET_EXTRA_TIMECYCLE_MODIFIER_STRENGTH' and '_SET_EXTRA_TIMECYCLE_MODIFIER_STRENGTH' to their more accurate name. * Update DisableMoonCycleOverride.md Remove parameters section since this has no parameters, only natives that have parameters need such. * Update EnableMoonCycleOverride.md '## Parameters' shouldn't be above the native description. --------- Co-authored-by: ammonia-cfx <[email protected]>
- Loading branch information
1 parent
a06f864
commit 12f2724
Showing
4 changed files
with
53 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
ns: GRAPHICS | ||
aliases: ["0x2BF72AD5B41AA739", "_RESET_EXTRA_TIMECYCLE_MODIFIER_STRENGTH"] | ||
--- | ||
|
||
## DISABLE_MOON_CYCLE_OVERRIDE | ||
|
||
```c | ||
// 0x2BF72AD5B41AA739 | ||
void DISABLE_MOON_CYCLE_OVERRIDE(); | ||
``` | ||
|
||
Removes any custom moon cycle overrides that have been configured with [ENABLE_MOON_CYCLE_OVERRIDE](#_0x2C328AF17210F009) | ||
|
||
## Examples | ||
```lua | ||
DisableMoonCycleOverride() | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
ns: GRAPHICS | ||
aliases: ["0x2C328AF17210F009", "_SET_EXTRA_TIMECYCLE_MODIFIER_STRENGTH"] | ||
--- | ||
|
||
## ENABLE_MOON_CYCLE_OVERRIDE | ||
|
||
```c | ||
// 0x2C328AF17210F009 | ||
void ENABLE_MOON_CYCLE_OVERRIDE(float phase); | ||
``` | ||
Enable a custom moon cycle, allowing control of which lunar phase the moon is in. | ||
Valid values are from `0.0` to `1.0`, with `0.5` representing a full moon. | ||
| Value | Lunar Phase | | ||
| :---: | :-------------: | | ||
| `0.1` | Waxing Crescent | | ||
| `0.2` | First Quarter | | ||
| `0.3` | Waxing Gibbous | | ||
| `0.5` | Full Moon | | ||
| `0.7` | Waning Gibbous | | ||
| `0.8` | Third Quarter | | ||
| `0.9` | Waning Crescent | | ||
The moon phase can be disabled with [DISABLE_MOON_CYCLE_OVERRIDE](#_0x2BF72AD5B41AA739) | ||
## Parameters | ||
- **phase**: A value indicating the moon cycle. | ||
## Examples | ||
```lua | ||
EnableMoonCycleOverride(0.5) | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.