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

Commit

Permalink
Disabled the cowboy interface options
Browse files Browse the repository at this point in the history
For those interested in still using the cowboy options, the internals are
all there, the buttons in MinimapPanel.xml and the handlers in
MinimapPanel.lua simply need to be restored to how they were before this
commit and it all works the same
  • Loading branch information
chaorace committed Oct 29, 2016
1 parent 7ad0f70 commit be53ca8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions UI/MinimapPanel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -735,8 +735,8 @@ function Initialize()

Controls.QUI_ToggleLuxury:RegisterCallback( Mouse.eLClick, function() LuaEvents.QUI_Option_ToggleShowLuxury(); end);
Controls.QUI_ToggleSmartBanner:RegisterCallback( Mouse.eLClick, function() LuaEvents.QUI_Option_ToggleSmartBanner(); end);
Controls.QUI_ToggleCowboy:RegisterCallback( Mouse.eLClick, function() LuaEvents.QUI_Option_ToggleCowboy(); end);
Controls.QUI_ToggleBadCowboy:RegisterCallback( Mouse.eLClick, function() LuaEvents.QUI_Option_ToggleBadCowboy(); end);
-- Controls.QUI_ToggleCowboy:RegisterCallback( Mouse.eLClick, function() LuaEvents.QUI_Option_ToggleCowboy(); end);
-- Controls.QUI_ToggleBadCowboy:RegisterCallback( Mouse.eLClick, function() LuaEvents.QUI_Option_ToggleBadCowboy(); end);

-- Make sure the StrategicSwitcherButton has the correct image when the game starts in StrategicView
if UI.GetWorldRenderView() == WorldRenderView.VIEW_2D then
Expand Down
4 changes: 2 additions & 2 deletions UI/MinimapPanel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
<CheckBox ID="ToggleYieldsButton" IsChecked="0" Offset="10,4" TextOffset="-5,0" String="LOC_HUD_MAP_SHOW_YIELDS" ToolTip="LOC_HUD_TOGGLE_YIELD_ICONS" Style="WhiteSemiBold14" ButtonTexture="Controls_Checkbox.dds" ButtonSize="17,17" CheckTexture="Controls_Checkbox.dds" CheckSize="17,17" CheckTextureOffset="0,17" Anchor="R,T"/>
<CheckBox ID="QUI_ToggleLuxury" IsChecked="1" Offset="10,4" TextOffset="-5,0" String="QUI: Show Luxury" ToolTip="Shows Luxury Resource in Top Panel" Style="WhiteSemiBold14" ButtonTexture="Controls_Checkbox.dds" ButtonSize="17,17" CheckTexture="Controls_Checkbox.dds" CheckSize="17,17" CheckTextureOffset="0,17" Anchor="R,T"/>
<CheckBox ID="QUI_ToggleSmartBanner" IsChecked="1" Offset="10,4" TextOffset="-5,0" String="QUI: Smart Banner" ToolTip="Shows more information on city banners" Style="WhiteSemiBold14" ButtonTexture="Controls_Checkbox.dds" ButtonSize="17,17" CheckTexture="Controls_Checkbox.dds" CheckSize="17,17" CheckTextureOffset="0,17" Anchor="R,T"/>
<CheckBox ID="QUI_ToggleCowboy" IsChecked="0" Offset="10,4" TextOffset="-5,0" String="QUI: Cowboy" ToolTip="Automatically trains horsemen" Style="WhiteSemiBold14" ButtonTexture="Controls_Checkbox.dds" ButtonSize="17,17" CheckTexture="Controls_Checkbox.dds" CheckSize="17,17" CheckTextureOffset="0,17" Anchor="R,T"/>
<CheckBox ID="QUI_ToggleBadCowboy" IsChecked="0" Offset="10,4" TextOffset="-5,0" String="QUI: Bad Cowboy" ToolTip="Automatically deletes horsemen" Style="WhiteSemiBold14" ButtonTexture="Controls_Checkbox.dds" ButtonSize="17,17" CheckTexture="Controls_Checkbox.dds" CheckSize="17,17" CheckTextureOffset="0,17" Anchor="R,T"/>
<CheckBox ID="QUI_ToggleCowboy" IsChecked="0" Offset="10,4" TextOffset="-5,0" String="QUI: Cowboy" ToolTip="Automatically trains horsemen" Style="WhiteSemiBold14" ButtonTexture="Controls_Checkbox.dds" ButtonSize="0,0" CheckTexture="Controls_Checkbox.dds" CheckSize="17,17" CheckTextureOffset="0,17" Anchor="R,T" Hidden="1"/>
<CheckBox ID="QUI_ToggleBadCowboy" IsChecked="0" Offset="10,4" TextOffset="-5,0" String="QUI: Bad Cowboy" ToolTip="Automatically deletes horsemen" Style="WhiteSemiBold14" ButtonTexture="Controls_Checkbox.dds" ButtonSize="0,0" CheckTexture="Controls_Checkbox.dds" CheckSize="17,17" CheckTextureOffset="0,17" Anchor="R,T" Hidden="1"/>
</Stack>
</ScrollPanel>
<Image Texture="Controls_ButtonExtendSmall" TextureOffset="0,60" Size="20,20" Anchor="L,B" Offset="20,10"/>
Expand Down

0 comments on commit be53ca8

Please sign in to comment.