mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 06:13:45 -07:00
Changes to MODDING.md (#5558): fix typo and remove uneeded explanation that minimum and maximum are floats
This commit is contained in:
parent
4f975cb568
commit
043cda7cd3
1 changed files with 1 additions and 2 deletions
|
@ -91,8 +91,7 @@ Rebuild the game and launch it, then load a save file. You should see that the t
|
|||
.CVar(CVAR_CHEAT("HookshotReachMultiplier"))
|
||||
.Options(FloatSliderOptions().Format("%.2f").Min(1.0f).Max(5.0f));
|
||||
```
|
||||
This adds an `Widget` which sets a CVar, which then sets the options of the slider.
|
||||
The float values being passed in here are `minimum` and `maximum` respectively. We'll make our minimum 0.2 to allow it to move slower, and our maximum 5.0 to allow it to move up to 5x faster. We'll also set the default to 1.0 so that it doesn't change the behavior by default. Copy this line and paste it below, then make the relevant changes:
|
||||
This adds a `Widget` which sets a CVar, which then sets the options of the slider. We'll make our minimum 0.2 to allow it to move slower, and our maximum 5.0 to allow it to move up to 5x faster. We'll also set the default to 1.0 so that it doesn't change the behavior by default. Copy this line and paste it below, then make the relevant changes:
|
||||
|
||||
```cpp
|
||||
AddWidget(path, "Time Multiplier: %.2fx", WIDGET_CVAR_SLIDER_FLOAT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue