Skip to content

Commit

Permalink
Merge pull request #40 from dstmodders/victorpopkov/feature-38
Browse files Browse the repository at this point in the history
Normalize configurations
  • Loading branch information
victorpopkov authored Sep 2, 2024
2 parents 535c6e7 + d9684b3 commit 404a11b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 39 deletions.
20 changes: 10 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Add "Reverse buttons" configuration
- Add "Reverse Buttons" configuration
- Add "Target Entities" configuration
- Add "Target indicator usage" configuration
- Add "Target Indicator Usage" configuration
- Add equipped "Bush Hat" and "Snurtle Shell Armor" hide support
- Add following through wormholes support

Expand All @@ -23,7 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

- Remove "Hide changelog" configuration
- Remove "Hide Changelog" configuration
- Remove changelog from modinfo

## [0.21.0] - 2020-08-26
Expand All @@ -49,7 +49,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Add "Hide changelog" configuration
- Add "Hide Changelog" configuration
- Add tests and documentation

### Changed
Expand All @@ -59,7 +59,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

- Remove "Mobs" configuration in favour of the "all" behaviour
- Remove "Mobs" configuration in favour of the "All" behaviour

## [0.19.0] - 2019-10-04

Expand Down Expand Up @@ -122,8 +122,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Add "Following method" configuration
- Add "Push mass checking" configuration
- Add "Following Method" configuration
- Add "Push Mass Checking" configuration

### Changed

Expand Down Expand Up @@ -247,19 +247,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Add "Keep target distance" configuration
- Add "Keep Target Distance" configuration
- Add support for "Bunnymen"

### Changed

- Improve compatibility with some other mods
- Revert "Action key" and "Push key" configurations
- Revert "Action Key" and "Push Key" configurations

## [0.5.0] - 2019-08-19

### Added

- Add "Action key" and "Push key" configurations
- Add "Action Key" and "Push Key" configurations

### Changed

Expand Down
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ another player to keep following or pushing him.
Don't like the default behaviour? Choose your own configuration to match your
needs:

| Configuration | Default | Description |
| --------------------------- | ------------- | ---------------------------------------------------------------------------- |
| **Action Key** | _Shift_ | Key used for both following and pushing |
| **Push Key** | _Ctrl_ | Key used in combination with an action key for pushing |
| **Reverse Buttons** | _Disabled_ | When enabled, LMB and RMB will be swapped |
| **Compatibility** | _Recommended_ | Which compatibility mode should be used? |
| **Target Entities** | _Default_ | Which target entities should be used for following and pushing? |
| **Target Indicator Usage** | _Binded_ | How should the target indicator interact with the action key? |
| **Follow Method** | _Default_ | Which follow method should be used? |
| **Follow Distance** | _2.5m_ | How close can a follower approach a leader? |
| **Follow Distance Keeping** | _Disabled_ | When enabled, a follower moves away from a leader within the follow distance |
| **Push With RMB** | _Disabled_ | When enabled, RMB + action key is used for pushing |
| **Push Mass Checking** | _Enabled_ | When enabled, disables pushing entities with very high mass. |
| **Push Lag Compensation** | _Enabled_ | When enabled, automatically disables the lag compensation during pushing |
| **Debug** | _Disabled_ | When enabled, displays debug data in the console. |
| Configuration | Default | Description |
| --------------------------- | ------------- | ------------------------------------------------------------------------ |
| **Action Key** | _Shift_ | Key used for both following and pushing |
| **Push Key** | _Ctrl_ | Key used in combination with an action key for pushing |
| **Reverse Buttons** | _Disabled_ | When enabled, LMB and RMB will be swapped |
| **Compatibility** | _Recommended_ | Which compatibility mode should be used? |
| **Target Entities** | _Default_ | Which target entities should be used for following and pushing? |
| **Target Indicator Usage** | _Binded_ | How should the target indicator interact with the action key? |
| **Follow Method** | _Default_ | Which follow method should be used? |
| **Follow Distance** | _2.5m_ | How close can you approach the target? |
| **Follow Distance Keeping** | _Disabled_ | When enabled, you move away from the target within the follow distance |
| **Push With RMB** | _Disabled_ | When enabled, RMB + action key is used for pushing |
| **Push Mass Checking** | _Enabled_ | When enabled, disables pushing entities with very high mass |
| **Push Lag Compensation** | _Enabled_ | When enabled, automatically disables the lag compensation during pushing |
| **Debug** | _Disabled_ | When enabled, displays debug data in the console |

## Documentation

Expand Down
22 changes: 8 additions & 14 deletions modinfo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -236,32 +236,26 @@ configuration_options = {
AddConfig("follow_method", "Follow Method", "Which follow method should be used?", {
{
description = "Default",
hover = "Default: player follows a leader step-by-step",
hover = "Default: you follow the target step-by-step",
data = "default",
},
{
description = "Closest",
hover = "Closest: player goes to the closest target point from a leader",
hover = "Closest: you go to the closest point to the target",
data = "closest",
},
}, "default"),

AddConfig(
"follow_distance",
"Follow Distance",
"How close can a follower approach a leader?",
{
{ description = "1.5m", data = 1.5 },
{ description = "2.5m", data = 2.5 },
{ description = "3.5m", data = 3.5 },
},
2.5
),
AddConfig("follow_distance", "Follow Distance", "How close can you approach the target?", {
{ description = "1.5m", data = 1.5 },
{ description = "2.5m", data = 2.5 },
{ description = "3.5m", data = 3.5 },
}, 2.5),

AddBooleanConfig(
"follow_distance_keeping",
"Follow Distance Keeping",
"When enabled, a follower moves away from a leader within the follow distance",
"When enabled, you move away from the target within the follow distance",
false
),

Expand Down

0 comments on commit 404a11b

Please sign in to comment.