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

Function prepareDraw

src/OpenLoco/src/Ui/Windows/TextInputWindow.cpp:185–196  ·  view source on GitHub ↗

* 0x004CE726 * * @param window @ */

Source from the content-addressed store, hash-verified

183 * @param window @<esi>
184 */
185 static void prepareDraw(Ui::Window& self)
186 {
187 self.widgets[Widx::title].text = _title;
188 memcpy(self.widgets[Widx::title].textArgs.data(), _formatArgs.data(), 16);
189
190 const uint16_t numCharacters = static_cast<uint16_t>(inputSession.buffer.length());
191 const uint16_t maxNumCharacters = inputSession.inputLenLimit;
192
193 FormatArguments args{ self.widgets[Widx::charLimit].textArgs };
194 args.push<uint16_t>(numCharacters);
195 args.push<uint16_t>(maxNumCharacters);
196 }
197
198 /**
199 * 0x004CE75B

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected