Opened 6 years ago

Closed 3 years ago

Last modified 3 years ago

#5269 closed defect (fixed)

Rightclick on production queue selection panel buttons should be possible even if left-click is disabled

Reported by: OptimusShepard Owned by: Stan
Priority: Should Have Milestone: Alpha 24
Component: UI – In-game Keywords:
Cc: cpc, Krinkle Patch: Phab:D2651

Description (last modified by Freagarach)

If you haven't enough resources for a upgrade, building, unit etc. you can't get information by right click on it. It should be a problem with the c++ code

Change History (14)

comment:1 by Stan, 6 years ago

Don't you just have to hover on the icon ?

comment:2 by OptimusShepard, 6 years ago

I don't know. elexis had tell me that the button where disabled in c++, so the change to get this work has also to be in c++

comment:3 by elexis, 6 years ago

Summary: Don't display information on right click if you haven't enough ressourcesRightclick on production queue selection panel buttons should be possible even if left-click is disabled

Ah, that's what you were refering to on the forums.

Production queue selection panel buttons are disabled if there aren't enough resources available, but that disables also the rightclick.

What is expected by the player is that left-click is disabled while right-click remains enabled.

comment:4 by owl, 6 years ago

I was about to file this bug report, but I can see that OptimusShepard already has.

To restate the issue:

When you have a building selected that is capable of producing units (e.g. a Barracks), you can right click on the unit creation/training button to open the new "Unit Information Dialog". However, if the button is greyed-out, and you right click it, the Unit Information Dialog does not open.

This was unexpected behaviour for me when I first encountered this problem. In my case, I wanted to examine a unit type in more detail to help me decide whether or not I wanted to spend resources performing the upgrades required to obtain that unit.

comment:5 by Andy Alt, 6 years ago

After a little testing, I noticed that the right-click works as intended for mobile units.

Example 1: Click on a women. If the storehouse is disabled then right-click doesn't work.

Example 2: Click on a cc to build a spearman. If the option is disabled then right-click works as intended.

comment:6 by elexis, 6 years ago

Example 2: Click on a cc to build a spearman. If the option is disabled then right-click works as intended.

That is a bug too, the button is not disabled but only tinted red. This behavior was introduced with the patch that allowed mousewheel scrolling to increase unit count.

comment:7 by elexis, 5 years ago

Proposed implementation and duplicate report at #5359 / attachment:always-allow-right-click.diff:ticket:5359

comment:8 by elexis, 5 years ago

Cc: cpc added

comment:9 by Imarok, 5 years ago

Component: UI & SimulationIn-game UI

Move tickets to In-game UI as UI & Simulation got some sub components.

comment:10 by Krinkle, 5 years ago

Cc: Krinkle added

comment:11 by Freagarach, 4 years ago

Description: modified (diff)
Milestone: BacklogWork In Progress
Owner: set to Freagarach
Patch: Phab:D2651
Priority: Nice to HaveShould Have

comment:12 by Freagarach, 4 years ago

Owner: Freagarach removed

comment:13 by Stan, 3 years ago

Owner: set to Stan
Resolution: fixed
Status: newclosed

In 24184:

Allow right-click on disabled buttons.

Reviewed by: @Angen
Fixes #5269
Fixes #5095

Differential Revision: https://code.wildfiregames.com/D2651

comment:14 by Stan, 3 years ago

Milestone: Work In ProgressAlpha 24
Note: See TracTickets for help on using tickets.