|
|
|
@ -291,7 +291,7 @@ This is a test message that lets us trigger straight from a cutscene! Cool!)"), |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void GetAnyKeyPress() override { |
|
|
|
|
void GetAnyKeyPress(olc::Key keypress) override { |
|
|
|
|
if (messageBoxVisible) { |
|
|
|
|
if (messageBoxMarker==messageBoxFinalText.length()) { |
|
|
|
|
if (messageBoxStartMarker+messageBoxStopMarker<targetText.length()) { |
|
|
|
@ -1050,8 +1050,9 @@ This is a test message that lets us trigger straight from a cutscene! Cool!)"), |
|
|
|
|
} |
|
|
|
|
}break; |
|
|
|
|
case 1:{//Power is selected.
|
|
|
|
|
PopulateBattleMoveList(0,true); |
|
|
|
|
GAME_STATE=GameState::OVERWORLD_POWER_MENU; |
|
|
|
|
OVERWORLD_POWER_SELECTION_MEMBER=0; |
|
|
|
|
PopulateBattleMoveList(OVERWORLD_POWER_SELECTION_MEMBER,true); |
|
|
|
|
GAME_STATE=GameState::OVERWORLD_POWER_PLAYER_MENU; |
|
|
|
|
}break; |
|
|
|
|
case 2:{//Items is selected.
|
|
|
|
|
|
|
|
|
@ -1186,9 +1187,12 @@ This is a test message that lets us trigger straight from a cutscene! Cool!)"), |
|
|
|
|
case GameState::GAME_WORLD: |
|
|
|
|
case GameState::OVERWORLD_MENU: |
|
|
|
|
case GameState::OVERWORLD_POWER_MENU: |
|
|
|
|
case GameState::OVERWORLD_POWER_PLAYER_MENU: |
|
|
|
|
case GameState::OVERWORLD_GRADE_MENU: |
|
|
|
|
case GameState::OVERWORLD_ITEMS_MENU: |
|
|
|
|
case GameState::OVERWORLD_EQUIP_ITEM_MENU: |
|
|
|
|
case GameState::OVERWORLD_EQUIP_MENU: |
|
|
|
|
case GameState::OVERWORLD_EQUIP_PLAYER_MENU: |
|
|
|
|
case GameState::OVERWORLD_STATUS_MENU:{ |
|
|
|
|
DrawGameWorld(); |
|
|
|
|
if (GAME_STATE!=GameState::GAME_WORLD) { |
|
|
|
@ -1202,7 +1206,7 @@ This is a test message that lets us trigger straight from a cutscene! Cool!)"), |
|
|
|
|
} |
|
|
|
|
DrawDecal({static_cast<float>(2+4),static_cast<float>(2+6+OVERWORLD_MENU_SELECTION*16)},SPRITES["cursor.png"]); |
|
|
|
|
} |
|
|
|
|
if (GAME_STATE==GameState::OVERWORLD_POWER_MENU||GAME_STATE==GameState::OVERWORLD_GRADE_MENU) { |
|
|
|
|
if (GAME_STATE==GameState::OVERWORLD_POWER_MENU||GAME_STATE==GameState::OVERWORLD_POWER_PLAYER_MENU||GAME_STATE==GameState::OVERWORLD_GRADE_MENU) { |
|
|
|
|
DrawBattleMoveList(OVERWORLD_POWER_SELECTION_OFFSET[OVERWORLD_POWER_SELECTION_MEMBER]); |
|
|
|
|
} |
|
|
|
|
}break; |
|
|
|
@ -3698,9 +3702,16 @@ This is a test message that lets us trigger straight from a cutscene! Cool!)"), |
|
|
|
|
} |
|
|
|
|
++counter; |
|
|
|
|
} |
|
|
|
|
if (BATTLE_ENCOUNTER==nullptr) { |
|
|
|
|
vi2d textSize = GetTextSizeProp(PARTY_MEMBER_STATS[partyMemberSlot]->obj->name)/2; |
|
|
|
|
DrawStringPropDecal({(float)WIDTH/2.F-textSize.x-6,1},PARTY_MEMBER_STATS[partyMemberSlot]->obj->name,WHITE,{0.5,1}); |
|
|
|
|
DrawRotatedDecal({(float)WIDTH/2-textSize.x-8,5},SPRITES["cursor.png"],M_PI,{(float)SPRITES["cursor.png"]->sprite->width/2,(float)SPRITES["cursor.png"]->sprite->height/2},{(sinf(frameCount/20.F*M_PI)>0)?0.5F:0.25F,(sinf(frameCount/20.F*M_PI)>0)?0.5F:0.25F}); |
|
|
|
|
DrawRotatedDecal({(float)WIDTH/2-4,5},SPRITES["cursor.png"],0,{(float)SPRITES["cursor.png"]->sprite->width/2,(float)SPRITES["cursor.png"]->sprite->height/2},{(sinf(frameCount/20.F*M_PI)>0)?0.5F:0.25F,(sinf(frameCount/20.F*M_PI)>0)?0.5F:0.25F}); |
|
|
|
|
} |
|
|
|
|
if (BATTLE_STATE==BattleState::POWER_SELECT||GAME_STATE==GameState::OVERWORLD_POWER_MENU) { |
|
|
|
|
DrawDecal({4,static_cast<float>(12*(POWER_SELECTION_CURSOR[partyMemberSlot]-POWER_SELECTION_OFFSET[partyMemberSlot])+8)},SPRITES["cursor.png"]); |
|
|
|
|
} else { |
|
|
|
|
} else
|
|
|
|
|
if (BATTLE_STATE==BattleState::GRADE_SELECT||GAME_STATE==GameState::OVERWORLD_GRADE_MENU){ |
|
|
|
|
DrawDecal({(float)(WIDTH/4+4+POWER_GRADE_CURSOR[partyMemberSlot]*8+8),static_cast<float>(12*(POWER_SELECTION_CURSOR[partyMemberSlot]-POWER_SELECTION_OFFSET[partyMemberSlot])+8)},SPRITES["cursor.png"]); |
|
|
|
|
} |
|
|
|
|
if (BATTLE_MOVELIST_DISPLAY.size()>4) { |
|
|
|
|