Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

F1-F6 don't work anymore? #4715

Closed
wzdev-ci opened this issue Jan 18, 2018 · 32 comments
Closed

F1-F6 don't work anymore? #4715

wzdev-ci opened this issue Jan 18, 2018 · 32 comments

Comments

@wzdev-ci
Copy link
Contributor

resolution_fixed type_bug | by Quenton


It still shows the tooltips for the main menu but they don't work!

F1 should open the manufacture menu and so on.


Issue migrated from trac:4715 at 2022-04-16 13:00:37 -0700

@wzdev-ci
Copy link
Contributor Author

alfred007 commented


I can confirm this with master be3858f

@wzdev-ci
Copy link
Contributor Author

Forgon changed blocking which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

Forgon changed blockedby which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

Forgon commented


The problem was introduced in

commit 2810c730e1733262b3ff27decfbb93c1db821a6a
Author: Per Inge Mathisen <per.mathisen@gmail.com>
Date:   Wed Nov 29 21:50:35 2017 +0100

    Move reticule button enable/disable control into scripts.
    
    New qtscript features:
    - setReticuleFlash(id, value) - make reticule button flash
    - levelType - read type of level (set in .lev file)

@wzdev-ci
Copy link
Contributor Author

Forgon changed status from new to closed

@wzdev-ci
Copy link
Contributor Author

Forgon changed resolution from `` to fixed

@wzdev-ci
Copy link
Contributor Author

Forgon commented


Fixed in 42db8f72193b348ea16f942c8bda4a40cb11cb23.

@wzdev-ci
Copy link
Contributor Author

alfred007 commented


I updated to this master, started a new alpha campaign and it didn't work.

@wzdev-ci
Copy link
Contributor Author

alfred007 changed status from closed to reopened

@wzdev-ci
Copy link
Contributor Author

alfred007 changed resolution from fixed to ``

@wzdev-ci
Copy link
Contributor Author

Forgon changed priority from normal to blocker

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jan 26, 2018

Forgon commented


Replying to Warzone2100/old-trac-import#4715 (comment:4):

I updated to this master, started a new alpha campaign and it didn't work.

Thanks for testing. This bug is obviously a release blocker.

@wzdev-ci
Copy link
Contributor Author

Berserk Cyborg commented


Rule.js do not subscribe to eventKeyPressed. It should have been added into that commit, but whatever. I am testing it now.

@wzdev-ci
Copy link
Contributor Author

Berserk Cyborg commented


Anyone want to do a quick test with the below patch?

@wzdev-ci
Copy link
Contributor Author

Forgon changed _comment0 which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jan 26, 2018

Forgon commented


Replying to Warzone2100/old-trac-import#4715 (comment:8):

Anyone want to do a quick test with the below patch?

Honestly, I am still not happy with this approach. Why do we need to hardcode F1-F6 in several places rather than in one place with all other keyboard shortcuts?

Edit: I tested your patch. It (unsurprisingly) does not work for the tutorial.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 3, 2018

Berserk Cyborg commented


It appears that it only checks some obscure state flag for the button to see if a menu should be opened (which did not survive 2810c730e1733262b3ff27decfbb93c1db821a6a).

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 3, 2018

Berserk Cyborg uploaded file 0001-Use-the-reticule-key-enable-state-again.patch (1.3 KiB)

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 3, 2018

Berserk Cyborg changed status from reopened to closed

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 3, 2018

Berserk Cyborg changed owner from `` to Berserk Cyborg

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 3, 2018

Berserk Cyborg changed resolution from `` to fixed

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 3, 2018

Berserk Cyborg committed [9476]


In Warzone2100/warzone2100@9476a9a:

#CommitTicketReference repository="" revision="9476a9a735a63ae9739ff3a56c4823f11b40cfd0"
Use the reticule key enable state again.

Keys F1-F6 to open reticule menus were broken with commit 2810c730e1733262b3ff27decfbb93c1db821a6a.
Fixes #4715.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 6, 2018

Forgon changed status from closed to reopened

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 6, 2018

Forgon changed resolution from fixed to ``

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 6, 2018

Forgon commented


In the tutorial, reticule buttons still do not work correctly: For example, two reticule buttons are visible and can be clicked on at its beginning, yet their keyboard shortcuts fail.

@wzdev-ci
Copy link
Contributor Author

Berserk Cyborg commented


Marked #4774 as duplicate.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Aug 5, 2018

Berserk Cyborg uploaded file 0001-Move-reticule-hack-to-include-campaign-saveload.patch (1.9 KiB)

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Aug 5, 2018

Berserk Cyborg uploaded file 0002-Move-reticule-button-disabling.patch (5.6 KiB)

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Aug 7, 2018

Berserk Cyborg committed [2]


In Warzone2100/warzone2100@2cb78d4:

#CommitTicketReference repository="" revision="2cb78d4c267362014c9d2aa064081f2112b90848"
Move reticule hack to include campaign saveload.

Otherwise the campaign reticule shortcuts will fail.

Refs ticket 4715.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Aug 7, 2018

Berserk Cyborg changed status from reopened to closed

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Aug 7, 2018

Berserk Cyborg changed resolution from `` to fixed

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Aug 7, 2018

Berserk Cyborg commented


In Warzone2100/warzone2100@be001e3:

#CommitTicketReference repository="" revision="be001e37cc3695ca9d77fd174e57d22551ed9a28"
Move reticule button disabling.

Closes ticket 4715.

@wzdev-ci wzdev-ci closed this as completed Aug 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant