Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Commit

Permalink
Resolves #82 Add hotkey for 'Create Pin'(#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacks0nX authored and chaorace committed Nov 19, 2016
1 parent 121e550 commit a54c431
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions UI/WorldInput.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1054,8 +1054,13 @@ function DefaultKeyUpHandler( uiKey:number )
CQUI_BuildImprovement(UI.GetHeadSelectedUnit(), 168372657); --Farm
end
if( uiKey == Keys.P ) then
CQUI_BuildImprovement(UI.GetHeadSelectedUnit(), 154488225); --Pasture
CQUI_BuildImprovement(UI.GetHeadSelectedUnit(), 1523996587); --Plantation
local selectedUnit = UI.GetHeadSelectedUnit();
if (selectedUnit) then
CQUI_BuildImprovement(UI.GetHeadSelectedUnit(), 154488225); --Pasture
CQUI_BuildImprovement(UI.GetHeadSelectedUnit(), 1523996587); --Plantation
else
PlaceMapPin();
end
end
if( uiKey == Keys.N ) then
CQUI_BuildImprovement(UI.GetHeadSelectedUnit(), 1001859687); --Mine
Expand Down

0 comments on commit a54c431

Please sign in to comment.