Fix problems in the GroupList. (fixes bug# 781647)
This commit is contained in:
@@ -469,7 +469,7 @@ ContentsOnCommand=diffusealpha,0;linear,0.5;diffusealpha,1
|
||||
ContentsOffCommand=linear,0.5;diffusealpha,0
|
||||
GroupListX=504
|
||||
GroupListY=200
|
||||
GroupListOnCommand=
|
||||
GroupListOnCommand=addx,400;sleep,0.2;addx,-400
|
||||
GroupListOffCommand=
|
||||
MusicListX=20
|
||||
MusicListY=276
|
||||
@@ -485,9 +485,9 @@ StartX=0
|
||||
StartY=-136
|
||||
SpacingX=0
|
||||
SpacingY=28
|
||||
GainFocusCommand=stoptweening;glowshift;effectperiod,0.5;linear,0.2;x,-40
|
||||
GainFocusCommand=glowshift;effectperiod,0.5;linear,0.2;x,-40
|
||||
LoseFocusCommand=stoptweening;stopeffect;linear,0.2;x,0
|
||||
HideItemCommand=stoptweening;linear,0.2;diffusealpha,0
|
||||
HideItemCommand=linear,0.2;diffusealpha,0
|
||||
ShowItemCommand=stoptweening;linear,0.2;diffusealpha,1;zoom,1.0;
|
||||
# This just selects the type of tweening used for scrolling the list; it shouldn't actually
|
||||
# queue any commands.
|
||||
|
||||
@@ -109,9 +109,6 @@ void GroupList::AfterChange()
|
||||
m_Frame.Command( SCROLL_TWEEN_COMMAND );
|
||||
m_Frame.SetY( -m_iTop*SPACING_Y );
|
||||
|
||||
m_sprButtons[m_iSelection]->Command( GAIN_FOCUS_COMMAND );
|
||||
m_textLabels[m_iSelection]->Command( GAIN_FOCUS_COMMAND );
|
||||
|
||||
for( int i=0; i < (int) m_asLabels.size(); i++ )
|
||||
{
|
||||
const bool IsHidden = !ItemIsOnScreen(i);
|
||||
@@ -132,6 +129,8 @@ void GroupList::AfterChange()
|
||||
m_bHidden[i] = IsHidden;
|
||||
}
|
||||
|
||||
m_sprButtons[m_iSelection]->Command( GAIN_FOCUS_COMMAND );
|
||||
m_textLabels[m_iSelection]->Command( GAIN_FOCUS_COMMAND );
|
||||
}
|
||||
|
||||
void GroupList::Up()
|
||||
|
||||
Reference in New Issue
Block a user