forked from FabricMC/yarn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Abstract button widget renames (FabricMC#2407)
* Abstract button widget renames Fixes FabricMC#1752 and closes FabricMC#1770 Signed-off-by: liach <[email protected]> * About the message Signed-off-by: liach <[email protected]> * Update mappings/net/minecraft/client/gui/widget/ClickableWidget.mapping Co-authored-by: enbrain <[email protected]> * Reword javadoc for pressable widget Co-authored-by: liach <[email protected]> Co-authored-by: enbrain <[email protected]>
- Loading branch information
1 parent
0510c2b
commit 784cc5b
Showing
4 changed files
with
20 additions
and
5 deletions.
There are no files selected for viewing
2 changes: 0 additions & 2 deletions
2
mappings/net/minecraft/client/gui/widget/AbstractPressableButtonWidget.mapping
This file was deleted.
Oops, something went wrong.
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
4 changes: 4 additions & 0 deletions
4
mappings/net/minecraft/client/gui/widget/PressableWidget.mapping
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,4 @@ | ||
CLASS net/minecraft/class_4264 net/minecraft/client/gui/widget/PressableWidget | ||
COMMENT A pressable widget has a press action. It is pressed when it is clicked. It is | ||
COMMENT also pressed when enter or space keys are pressed when it is selected. | ||
METHOD method_25306 onPress ()V |
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,7 @@ | ||
v2 | ||
|
||
constant clickable_widget_narration_delay net/minecraft/client/gui/widget/ClickableWidget FOCUSED_NARRATION_DELAY | ||
constant clickable_widget_narration_delay net/minecraft/client/gui/widget/ClickableWidget UNFOCUSED_NARRATION_DELAY | ||
|
||
target_method net/minecraft/client/gui/widget/ClickableWidget queueNarration (I)V | ||
param 0 clickable_widget_narration_delay |