Ghost Order
Chieftain
- Joined
- Oct 11, 2017
- Messages
- 46
Hi, I'm looking for the way to add a hotkey for the report screen(and if it possible a specific section inside report screen). So far with google search I found the code to add a new hotkey is this:
And I have to add it in 'ingame.lua'.
I supossed that I have to change 'UnitFlagManager' to the object(?) I want to reference. Doing some search in the files the only object(?) relate to the Report Screen was 'pReportsScreen', so I put it in the code. But it doesn't work.
Is this really the code to create a new hotkey?
I'm using CQUI mod and my final goal is, if is possible, create a hotkey to open inmedatelly the report screen on the 'units'
Greetings.
Code:
elseif ( uiKey == Keys.D ) then
Controls.UnitFlagManager:SetHide( not Controls.pReportsScreen:IsHidden() );
return true;
And I have to add it in 'ingame.lua'.
I supossed that I have to change 'UnitFlagManager' to the object(?) I want to reference. Doing some search in the files the only object(?) relate to the Report Screen was 'pReportsScreen', so I put it in the code. But it doesn't work.
Is this really the code to create a new hotkey?
I'm using CQUI mod and my final goal is, if is possible, create a hotkey to open inmedatelly the report screen on the 'units'
Greetings.