MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / createMessageRow

Method createMessageRow

game/ui/general/messagelogscreen.cpp:46–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44MessageLogScreen::~MessageLogScreen() = default;
45
46sp<Control> MessageLogScreen::createMessageRow(EventMessage message, sp<GameState> state,
47 CityView &cityView)
48{
49 return createMessageRow(message, state,
50 [message, state, &cityView](Event *)
51 {
52 cityView.setScreenCenterTile(message.location);
53 fw().stageQueueCommand({StageCmd::Command::POP});
54 });
55}
56
57sp<Control> MessageLogScreen::createMessageRow(EventMessage message, sp<GameState> state,
58 BattleView &battleView)

Callers

nothing calls this directly

Calls 7

stageQueueCommandMethod · 0.80
getShortDateStringMethod · 0.80
getLongTimeStringMethod · 0.80
addCallbackMethod · 0.80
setScreenCenterTileMethod · 0.45
getFontMethod · 0.45
loadImageMethod · 0.45

Tested by

no test coverage detected