Skip to content

Commit 51ff8f2

Browse files
committed
Clear Keybinds Button
1 parent 090413b commit 51ff8f2

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -390,14 +390,16 @@ Examples:
390390
![ListUI](https://i.imgur.com/elZoUaz.png)
391391

392392
### ClickGUI Improvements
393+
- Added Favorites category, middle click a hack for it to be added to Favorites. Middle click when within Favorites to remove it.
393394
- Accidentally typing in ClickGUI just continues what you typed in the Navigator.
394-
- Favorites category, middle click a hack for it to be added to Favorites. Middle click when within Favorites to remove it.
395395
- Hacklist has font scaler, transparency, X & Y position adjustments, adjustable shadow box.
396396
- Hacklist has the ability to highlight entries pursuant to the selected ESP color.
397397
- Hacklist has the ability show the count of detected ESP items/blocks/entities (BedESP, SignESP, WorkstationESP, RedstoneESP, ChestESP, MobsearchESP, MobESP, ItemESP). They're toggled in each hack.
398398
- UI now has more color options which are also applied to the Navigator UI
399399
- New Isolate Windows toggle which allows the active window (or sub category/setting) to not display any other windows behind it
400400
- Hacks can now support multiple pop up windows, or sub pop up windows. In Navigator these pop ups are drop downs instead.
401+
- Right-click Area setting resets it to default.
402+
- Can now scroll all drop down/pop ups with your mouse.
401403

402404
![HackList](https://i.imgur.com/fzcQdjy.png)
403405

@@ -505,6 +507,9 @@ Examples:
505507

506508
![UHHHUHOHUHUHHUHOHOHOHHOHH](https://i.imgur.com/TA65cm8.png)
507509

510+
### Keybind Manager Improved
511+
- Can now clear the entire keybinds instead of just resetting.
512+
508513
### Alt Manager Improved
509514
- Can now multi-select and delete alt accounts
510515

@@ -517,10 +522,6 @@ Examples:
517522
### Replace Taco with Neco
518523
- Replaced Taco icon with dancing Neco-Arc.
519524

520-
### Usability
521-
- Right-click Area setting resets it to default.
522-
- Can now scroll all drop down/pop ups with your mouse.
523-
524525
### Stability
525526
- Fixed crashes on empty/zero-size shapes.
526527
- Search tracers now use block centers as fallback.

src/main/java/net/wurstclient/options/KeybindManagerScreen.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@ public void init()
7777
Component.literal("This cannot be undone!"))))
7878
.bounds(8, 8, 100, 20).build());
7979

80+
addRenderableWidget(Button.builder(Component.literal("Clear"),
81+
b -> minecraft.setScreen(new ConfirmScreen(confirmed -> {
82+
if(confirmed)
83+
WurstClient.INSTANCE.getKeybinds().removeAll();
84+
minecraft.setScreen(this);
85+
}, Component
86+
.literal("Are you sure you want to clear all keybinds?"),
87+
Component.literal("This cannot be undone!"))))
88+
.bounds(112, 8, 100, 20).build());
89+
8090
addRenderableWidget(Button
8191
.builder(Component.literal("Profiles..."),
8292
b -> minecraft.setScreen(new KeybindProfilesScreen(this)))

0 commit comments

Comments
 (0)