minecraft-access icon indicating copy to clipboard operation
minecraft-access copied to clipboard

Access menu shortcuts bar and some refactor

Open boholder opened this issue 1 year ago • 1 comments

with https://github.com/khanshoaib3/minecraft-access-i18n/pull/47

Changelog

New Features

Feature Updates

  • Access Menu: Access Menu functions can be triggered with Alt + upper number keys
  • Health And Hunger: Also speak air value when players are under water
  • BREAKING CHANGES: Remove config "Enable Health n Hunger"

Translation Changes

  • Change air related I18N text for Health And Hunger changes

boholder avatar Oct 05 '24 14:10 boholder

Test failed, gonna fix it

boholder avatar Oct 06 '24 00:10 boholder

@TheSuperGamer20578 perfect review! It exposures many naming issues. Thank you for pointing out them!

boholder avatar Oct 08 '24 13:10 boholder

I’ve also discovered that the new shortcuts trigger on every tick while held and alt+4 and alt+5 cause the game to freeze for a good few seconds, which is exacerbated by them triggering many times when you hold them down.

TheSuperGamer20578 avatar Oct 09 '24 22:10 TheSuperGamer20578

I’ve also discovered that the new shortcuts trigger on every tick while held and alt+4 and alt+5 cause the game to freeze for a good few seconds, which is exacerbated by them triggering many times when you hold them down.

Roger, ~~I'll fix it and other refactors in Sunday.~~

20241013 edit: My head isn't clear... I want to delay the fixing for another week.

boholder avatar Oct 10 '24 00:10 boholder

@TheSuperGamer20578 I suggest you review the new part commit by commit, I followed the "small commit" principal.

boholder avatar Oct 19 '24 11:10 boholder

IntervalKeystroke needs some work.

Will look at it this weekend. And... if I understand clearly, this is an old bug, not produced by this PR, how about start another issue for it and won't fix it in release 1.9.0?

boholder avatar Oct 28 '24 07:10 boholder

IntervalKeystroke needs some work.

The real reason for this issue is the class scope "global" Interval instances in CameraControls, InventoryControls, LockingHandler that manually triggered by player's keystrokes while having an interval limitation, the interval isn't properly working with keystrokes. Meanwhile the totally auto features like POIBlock won't be affected. Shoaib's previous fix linked interval and keystrokes, ~~I'll simple replace all the keystrokes to IntervalKeystroke~~ it seems that his solution is simplest one.

boholder avatar Nov 10 '24 08:11 boholder

I noticed that the IntervalKeystroke behaviour still isn't optimal

I made the change and reverted it, since there is no existing example for me to test the behavior... not hard, just add relative logic in updateForNextTick method.

boholder avatar Nov 17 '24 02:11 boholder

Make sure to update the changelog to reflect the new additions this PR does.

BrailleBennett avatar Dec 22 '24 03:12 BrailleBennett

Holy...

boholder avatar Dec 22 '24 03:12 boholder