MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / openDetails

Method openDetails

src/openrct2-ui/WindowManager.cpp:210–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208 }
209
210 WindowBase* openDetails(WindowDetail type, int32_t id) override
211 {
212 switch (type)
213 {
214 case WindowDetail::banner:
215 return BannerOpen(id);
216 case WindowDetail::newCampaign:
217 return NewCampaignOpen(id);
218 case WindowDetail::demolishRide:
219 return RideDemolishPromptOpen(*GetRide(RideId::FromUnderlying(id)));
220 case WindowDetail::refurbishRide:
221 return RideRefurbishPromptOpen(*GetRide(RideId::FromUnderlying(id)));
222 case WindowDetail::sign:
223 return SignOpen(id);
224 case WindowDetail::signSmall:
225 return SignSmallOpen(id);
226 case WindowDetail::player:
227 return PlayerOpen(id);
228
229 default:
230 return nullptr;
231 }
232 }
233
234 WindowBase* ShowError(StringId title, StringId message, const Formatter& args, bool autoClose /* = false */) override
235 {

Callers 1

ContextOpenDetailWindowFunction · 0.45

Calls 8

BannerOpenFunction · 0.85
NewCampaignOpenFunction · 0.85
RideDemolishPromptOpenFunction · 0.85
GetRideFunction · 0.85
RideRefurbishPromptOpenFunction · 0.85
SignOpenFunction · 0.85
SignSmallOpenFunction · 0.85
PlayerOpenFunction · 0.85

Tested by

no test coverage detected