MCPcopy Create free account
hub / github.com/crossuo/crossuo / SetPos

Method SetPos

src/TextEngine/EntryText.cpp:279–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279void CEntryText::SetPos(int val, CGump *gump)
280{
281 m_Position = val;
282 if (m_Position < 0)
283 {
284 m_Position = 0;
285 }
286
287 if (m_Position > (int)WText.length())
288 {
289 m_Position = (int)WText.length();
290 }
291
292 Changed = true;
293 if (gump != nullptr)
294 {
295 gump->FrameCreated = false;
296 }
297}
298
299void CEntryText::SetTextA(const astr_t &text)
300{

Callers 4

LoadMethod · 0.80
GumpScreenMain.cppFile · 0.80
InsertInContentMethod · 0.80
SetPagePosMethod · 0.80

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected