| 277 | } |
| 278 | |
| 279 | void 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 | |
| 299 | void CEntryText::SetTextA(const astr_t &text) |
| 300 | { |
no test coverage detected