|
From: Charles L. <cn...@us...> - 2009-02-24 05:57:30
|
Update of /cvsroot/hgengine/Mercury/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv5755/src Modified Files: ScreenCopper.cpp Log Message: clean up copper's hiding and visibility as well as enabling notification for copper's state Index: ScreenCopper.cpp =================================================================== RCS file: /cvsroot/hgengine/Mercury/src/ScreenCopper.cpp,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** ScreenCopper.cpp 23 Jul 2007 02:41:13 -0000 1.32 --- ScreenCopper.cpp 24 Feb 2009 05:57:21 -0000 1.33 *************** *** 97,110 **** //First check to see if we should be hiding/showing ourselves. if ( c.code == button_showmenu && c.type == IET_RELEASE ) ! if ( GetHide() ) ! { ! this->Tweening.StopTweening(); this->Tweening.AddCommand(THEME.GetMetricS(m_name, "HideOff" )); - } else - { - this->Tweening.StopTweening(); this->Tweening.AddCommand(THEME.GetMetricS(m_name, "HideOn" )); ! } if ( GetHide() ) --- 97,111 ---- //First check to see if we should be hiding/showing ourselves. if ( c.code == button_showmenu && c.type == IET_RELEASE ) ! { ! bool bHidden = GetHide(); ! ! this->Tweening.StopTweening(); ! MESSAGEMAN.PostSystemMessage( "CopperMenuOnOffStatus", PStack( PSElement( bHidden ) ), 0.0f ); ! ! if ( bHidden ) this->Tweening.AddCommand(THEME.GetMetricS(m_name, "HideOff" )); else this->Tweening.AddCommand(THEME.GetMetricS(m_name, "HideOn" )); ! } if ( GetHide() ) |