File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,10 @@ void SongControlMenu::checkDaSongPositions(float) {
253253 if (this ->m_darkProgBar ) this ->m_darkProgBar ->setVisible (finished);
254254 if (this ->m_increDecreMenu ) this ->m_increDecreMenu ->setVisible (finished);
255255 if (this ->m_clipNode ) this ->m_clipNode ->setVisible (finished);
256- if (this ->m_smallLabel ) this ->m_smallLabel ->setPositionY (finished ? 18 .5f : 15 .f );
256+ if (this ->m_smallLabel ) {
257+ this ->m_smallLabel ->setPositionY (finished ? 18 .5f : 15 .f );
258+ if (this ->b ) this ->m_smallLabel ->limitLabelWidth ((this ->b ->getContentWidth () - 20 .f ) * (finished ? .85f : 1 .f ), (finished ? .85f : 1 .f ), .0001f );
259+ }
257260
258261 if (!finished) return ;
259262 if (!this ->m_currTimeLb || !this ->m_totlTimeLb || !this ->m_currProgBar || !this ->m_darkProgBar ) return ;
@@ -397,7 +400,6 @@ void SongControlMenu::updateCurrentLabel() {
397400 SongControlMenu::checkDaSongPositions (0 .f );
398401 this ->schedule (schedule_selector (SongControlMenu::checkDaSongPositions), 2 .f / 60 .f );
399402 } else this ->m_smallLabel ->setString (currentSong.c_str (), " chatFont.fnt" );
400- this ->m_smallLabel ->limitLabelWidth ((this ->b ->getContentWidth () - 20 .f ) * .85f , 1 .0f , .0001f );
401403 this ->m_smallLabel ->setBlendFunc ({GL_ONE_MINUS_DST_COLOR, GL_ONE_MINUS_SRC_ALPHA});
402404 this ->m_currTimeLb ->setBlendFunc ({GL_ONE_MINUS_DST_COLOR, GL_ONE_MINUS_SRC_ALPHA});
403405 this ->m_totlTimeLb ->setBlendFunc ({GL_ONE_MINUS_DST_COLOR, GL_ONE_MINUS_SRC_ALPHA});
You can’t perform that action at this time.
0 commit comments