Skip to content

Commit

Permalink
Fix mouseover button highlighting for intel/diplo
Browse files Browse the repository at this point in the history
http://forum.birth-of-the-empires.de/viewtopic.php?p=30450#p30450

Reactivate mouseover highlighting for main buttons intel and diplomacy
  • Loading branch information
Vuto-BotE committed Oct 8, 2013
1 parent 986a539 commit 103518b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions BotE Game/trunk/Source/GUI/MenuChooseView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,17 +187,13 @@ void CMenuChooseView::OnDraw(CDC* pDC)
if (nActiveMainView >= VIEWS::GALAXY_VIEW && nActiveMainView <= VIEWS::EMPIRE_VIEW)
m_Buttons.GetAt(nActiveMainView - 1)->SetState(BUTTON_STATE::DEACTIVATED);

// Geheimdienstbutton deaktivieren, solange keine anderen Majors bekannt sind
// Diplomatiebutton deaktivieren, solange gar keine anderen Rassen bekannt sind
if (!m_bKnowOtherRaces)
m_Buttons.GetAt(VIEWS::DIPLOMACY_VIEW - 1)->SetState(BUTTON_STATE::DEACTIVATED);
else if (m_Buttons.GetAt(VIEWS::DIPLOMACY_VIEW - 1)->GetState() != BUTTON_STATE::DEACTIVATED)
m_Buttons.GetAt(VIEWS::DIPLOMACY_VIEW - 1)->SetState(BUTTON_STATE::NORMAL);

// Geheimdienstbutton deaktivieren, solange keine anderen Majors bekannt sind
if (!m_bKnowOtherMajors)
m_Buttons.GetAt(VIEWS::INTEL_VIEW - 1)->SetState(BUTTON_STATE::DEACTIVATED);
else if (m_Buttons.GetAt(VIEWS::INTEL_VIEW - 1)->GetState() != BUTTON_STATE::DEACTIVATED)
m_Buttons.GetAt(VIEWS::INTEL_VIEW - 1)->SetState(BUTTON_STATE::NORMAL);

// Buttons zeichnen
for (int i = 0; i < m_Buttons.GetSize(); i++)
Expand Down

0 comments on commit 103518b

Please sign in to comment.