-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Hotkeys for the unit and building commands #216
base: develop
Are you sure you want to change the base?
Conversation
@Jammyjamjamman The controls are listed here in the README: https://raw.githubusercontent.com/MegaGlest/megaglest-source/master/docs/README.txt Is that generated from a script? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far 👍 . @andy5995 and I gave it a test. I've listed changes that I think are required, based on our testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit adds the hotkey text on hover. It's going to need translations for the text "Hotkey".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I don't have the final say on merging this but the changes look good to me.
Yo @Rampoina , Good work!!! but wait up, tech engineer can't build Balista with hotkey. We need add at least 11 command. |
@pavanvo thanks for testing! |
@Rampoina you forget to commit gui.h |
@pavanvo It's not only an increment, now it uses |
Seems like this hasn't been done yet. @Jammyjamjamman imo this should be done before this gets merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently there are conflicts (as shown at the bottom).
Otherwise the gui takes a bit to update
Move back the camera hotkeys to a and d, this means that the equivalent command hotkeys won't be usable in free camera mode
It wasn't updated correctly for units with morphing abilities
Otherwise some units in the game don't have enough hotkeys like the ballista. Moves the hotkey for attacking units to , Moves the hotkey for font cOlor to O
since we removed this hotkeys, we don't need this code any more
code blocking switching from attack to anothe command
This reverts commit afc2619.
Fixes for non-target commands
…koutv3 (MegaGlest#250) * workflows/cmake.yml:test on Ubuntu Jammy (22.04);migrate to checkoutv3 This should also fix MegaGlest#247 * maybe fix ssh link error on Ubuntu Jammy gcc and clang build is failing on Jammy with the message: 'cannot find -lssh: No such file or directory' Basically I added libcurl-openssl-dev to the deps * remove libcurl4-gnutls-dev Trying to correct: The following packages have unmet dependencies: libcurl4-gnutls-dev : Conflicts: libcurl4-openssl-dev but 7.81.0-1ubuntu1.3 is to be installed libcurl4-openssl-dev : Conflicts: libcurl4-gnutls-dev but 7.81.0-1ubuntu1.3 is to be installed E: Unable to correct problems, you have held broken packages. An error occurred while installing build dependencies. * use cmake FindCURL module * for OpenSSL, use include instead of find_package * remove jammy, add gcc-10 and 11 test * revert now-unrelated changes * clean-up * add VERBOSE flag to make * Update .github/workflows/cmake.yml * Update .github/workflows/cmake.yml * use '-f' option from build script to force clang * force dynamic libs with '-d' fixes MegaGlest#251 * mk/linux/setupBuildDeps.sh:fix script so 22.04 is detected *remove vlc deps (not required for the CI) *remove ubuntu-18.04 from the build matrix, see https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/ * revert removal of commented macos jobs * run apt-get update and upgrade * cleanup Prep snapshot section
There's some mods that crash the game with this patch:
There might be more that don't work. I'm not sure what causes the crash. In e.g. prax the crash happens when loading "hexer". |
i am tested on linux and windows - everything works fine, I think problem in build |
fixes for mods with many commands + refactoring
shows attack as empty position
fix: non-uniform selection showing attack as an empty position
This is a proposal to add hotkeys for every command.
This adds 10 configurable keys that map to the commands as displayed in the GUI.
It's meant to be used in a grid layout such as QWER ASDF ZXCV to make the locations more intuitive. (although it doesn't have to, users can set each hotkey wherever they want to)
Fixes #212