[fix] Fixed timing of showing a description text of SelectScene.

This commit is contained in:
falsycat 2019-10-14 00:00:00 +00:00
parent 3c441d5a5d
commit 0480067cbb

View File

@ -90,10 +90,7 @@ class SelectScene : SceneInterface {
} }
override void Draw() { override void Draw() {
lobby_.Draw(); lobby_.Draw();
status_.Draw();
const view = lobby_.view.Create();
description_text_.Draw(lobby_.Projection, view);
title_text_ .Draw(lobby_.Projection, view);
} }
private: private:
@ -152,6 +149,9 @@ private abstract class AbstractSceneState {
abstract UpdateResult Update(KeyInput input); abstract UpdateResult Update(KeyInput input);
void Draw() {
}
@property SelectScene owner() { @property SelectScene owner() {
return owner_; return owner_;
} }
@ -269,6 +269,11 @@ private class MusicAppearState : AbstractSceneState {
} }
return CreateResult(this); return CreateResult(this);
} }
override void Draw() {
const view = owner.lobby_.view.Create();
owner.description_text_.Draw(owner.lobby_.Projection, view);
owner.title_text_ .Draw(owner.lobby_.Projection, view);
}
private: private:
MusicWaitState music_wait_state_; MusicWaitState music_wait_state_;
@ -321,6 +326,11 @@ private class MusicWaitState : AbstractSceneState {
return CreateResult(this); return CreateResult(this);
} }
override void Draw() {
const view = owner.lobby_.view.Create();
owner.description_text_.Draw(owner.lobby_.Projection, view);
owner.title_text_ .Draw(owner.lobby_.Projection, view);
}
private: private:
@property Music music() { @property Music music() {