Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

Commit

Permalink
ResultでSkillIconの背景が描画されていなかった問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
su8ru committed Jun 15, 2019
1 parent 4eb9508 commit c143b8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SpaceWars2/scenes/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,10 @@ void Game::draw() const {
int whatSkill[3] = { PLAYER->whatMainSkill, PLAYER->whatSubSkill, PLAYER->whatSpecialSkill };
int skillsCnt[3] = { PLAYER->mainSkillCnt, PLAYER->subSkillCnt, PLAYER->specialSkillCnt };
String skillColor[3] = { L"#0c0", L"#00c", L"#ffd000" };
String backColor[3] = { L"#8ecc8e", L"#8e8ecc", L"#ffefb2" };
for (auto type : step(3)) { // mainSkill, subSkill, specialSkill
Rect(670 + (60 * type) - (220 * isLeft), sy + 2, 50, 50).draw(ColorF(backColor[type]).setAlpha(0.5));

TextureAsset(skillType[type] + Format((int)whatSkill[type])).resize(50, 50)
.draw(670 + (60 * type) - (220 * isLeft), sy + 2);

Expand Down

0 comments on commit c143b8b

Please sign in to comment.