MCPcopy Create free account
hub / github.com/EasyRPG/Player / ParallaxUpdated

Method ParallaxUpdated

src/spriteset_map.cpp:138–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void 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
157void Spriteset_Map::SystemGraphicUpdated() {
158 for (auto& shadow : airship_shadows) {

Callers 1

ChangeBGMethod · 0.80

Calls 6

SetGraphicFileMethod · 0.80
SetImportantFileMethod · 0.80
emptyMethod · 0.45
BindMethod · 0.45
StartMethod · 0.45
SetBitmapMethod · 0.45

Tested by

no test coverage detected