MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / beginSendChatMessage

Function beginSendChatMessage

src/OpenLoco/src/Ui/Windows/TimePanel.cpp:235–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233 }
234
235 void beginSendChatMessage(Window& self)
236 {
237 const auto* opponent = CompanyManager::getOpponent();
238 auto args = FormatArguments::common();
239 args.push(opponent->name);
240
241 // TODO: convert this to a builder pattern, with chainable functions to set the different string ids and arguments
242 TextInput::openTextInput(&self, StringIds::chat_title, StringIds::chat_instructions, StringIds::empty, Widx::map_chat_menu, args);
243 }
244
245 // 0x0043A72F
246 static void mapDropdown(Window* self, [[maybe_unused]] WidgetIndex_t widgetIndex, int16_t itemIndex)

Callers 1

mapDropdownFunction · 0.70

Calls 4

getOpponentFunction · 0.85
commonFunction · 0.85
openTextInputFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected