| 136 | } |
| 137 | |
| 138 | void Spriteset_Map::ParallaxUpdated() { |
| 139 | std::string name = Game_Map::Parallax::GetName(); |
| 140 | if (name != panorama_name) { |
| 141 | panorama_name = name; |
| 142 | if (!name.empty()) { |
| 143 | FileRequestAsync* request = AsyncHandler::RequestFile("Panorama", panorama_name); |
| 144 | request->SetGraphicFile(true); |
| 145 | request->SetImportantFile(true); |
| 146 | panorama_request_id = request->Bind(&Spriteset_Map::OnPanoramaSpriteReady, this); |
| 147 | request->Start(); |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | if (name.empty()) { |
| 152 | panorama->SetBitmap(BitmapRef()); |
| 153 | Game_Map::Parallax::Initialize(0, 0); |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | void Spriteset_Map::SystemGraphicUpdated() { |
| 158 | for (auto& shadow : airship_shadows) { |
no test coverage detected