[*] Applied Andrettin's patch
This commit is contained in:
parent
47ca183ee7
commit
c6a31c7a80
3 changed files with 18 additions and 14 deletions
|
@ -430,21 +430,22 @@ public:
|
|||
ShowAttackRange(false), ShowMessages(true), BigScreen(false),
|
||||
PauseOnLeave(true), AiExplores(true), GrayscaleIcons(false),
|
||||
IconsShift(false), StereoSound(true), MineNotifications(false),
|
||||
DeselectInMine(false),
|
||||
DeselectInMine(false), NoStatusLineTooltips(false),
|
||||
ShowOrders(0), ShowNameDelay(0), ShowNameTime(0) {};
|
||||
|
||||
bool ShowSightRange; /// Show sight range.
|
||||
bool ShowReactionRange; /// Show reaction range.
|
||||
bool ShowAttackRange; /// Show attack range.
|
||||
bool ShowMessages; /// Show messages.
|
||||
bool BigScreen; /// If true, shows the big screen(without panels)
|
||||
bool PauseOnLeave; /// If true, game pauses when cursor is gone
|
||||
bool AiExplores; /// If true, AI sends explorers to search for resources (almost useless thing)
|
||||
bool GrayscaleIcons; /// Use grayscaled icons for unavailable units, upgrades, etc
|
||||
bool IconsShift; /// Shift icons slightly when you press on them
|
||||
bool StereoSound; /// Enables/disables stereo sound effects
|
||||
bool MineNotifications; /// Show mine is running low/depleted messages
|
||||
bool DeselectInMine; /// Deselect peasants in mines
|
||||
bool ShowSightRange; /// Show sight range.
|
||||
bool ShowReactionRange; /// Show reaction range.
|
||||
bool ShowAttackRange; /// Show attack range.
|
||||
bool ShowMessages; /// Show messages.
|
||||
bool BigScreen; /// If true, shows the big screen(without panels)
|
||||
bool PauseOnLeave; /// If true, game pauses when cursor is gone
|
||||
bool AiExplores; /// If true, AI sends explorers to search for resources (almost useless thing)
|
||||
bool GrayscaleIcons; /// Use grayscaled icons for unavailable units, upgrades, etc
|
||||
bool IconsShift; /// Shift icons slightly when you press on them
|
||||
bool StereoSound; /// Enables/disables stereo sound effects
|
||||
bool MineNotifications; /// Show mine is running low/depleted messages
|
||||
bool DeselectInMine; /// Deselect peasants in mines
|
||||
bool NoStatusLineTooltips; /// Don't show messages on status line
|
||||
|
||||
int ShowOrders; /// How many second show orders of unit on map.
|
||||
int ShowNameDelay; /// How many cycles need to wait until unit's name popup will appear.
|
||||
|
|
|
@ -30,6 +30,7 @@ class CPreference
|
|||
bool StereoSound;
|
||||
bool MineNotifications;
|
||||
bool DeselectInMine;
|
||||
bool NoStatusLineTooltips;
|
||||
|
||||
unsigned int ShowOrders;
|
||||
unsigned int ShowNameDelay;
|
||||
|
|
|
@ -2191,7 +2191,9 @@ void DrawPieMenu()
|
|||
|
||||
int i = GetPieUnderCursor();
|
||||
if (i != -1 && KeyState != KeyStateInput && buttons[i].Pos != -1) {
|
||||
UpdateStatusLineForButton(buttons[i]);
|
||||
if (!Preference.NoStatusLineTooltips) {
|
||||
UpdateStatusLineForButton(buttons[i]);
|
||||
}
|
||||
DrawPopup(buttons[i], UI.ButtonPanel.Buttons[i],
|
||||
CursorStartScreenPos.x + UI.PieMenu.X[i], CursorStartScreenPos.y + UI.PieMenu.Y[i]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue