#include "victory_run_prompt.h" #include "generic_prompt.h" constexpr const char* VICTORY_RUN_PNG = "gfx/ui/Prompt_VictoryRun.png"; constexpr int VICTORY_RUN_LAYER = 2; // 00838380 Turns a prompt into the victory lap one (GenericPrompt::SetImageToVictoryRun): no body text, and the victory // lap picture on the sheet's third layer, shown. void victory_run_prompt_load(GenericPrompt& prompt) { ANM2& sprite = prompt.sprite; prompt.bodyLines.fill({}); sprite.ReplaceSpritesheet(VICTORY_RUN_LAYER, VICTORY_RUN_PNG); sprite.LoadGraphics(); if ((int)sprite.layerStates.size() > VICTORY_RUN_LAYER) sprite.GetLayer(VICTORY_RUN_LAYER)->isVisible = true; }