[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() {
lobby_.Draw();
const view = lobby_.view.Create();
description_text_.Draw(lobby_.Projection, view);
title_text_ .Draw(lobby_.Projection, view);
status_.Draw();
}
private:
@ -152,6 +149,9 @@ private abstract class AbstractSceneState {
abstract UpdateResult Update(KeyInput input);
void Draw() {
}
@property SelectScene owner() {
return owner_;
}
@ -269,6 +269,11 @@ private class MusicAppearState : AbstractSceneState {
}
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:
MusicWaitState music_wait_state_;
@ -321,6 +326,11 @@ private class MusicWaitState : AbstractSceneState {
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:
@property Music music() {