triSendText "utf8" — send UTF-8 text to the focused control. Returns true.
| 1122 | return GameValue(false); |
| 1123 | } |
| 1124 | lb3d->SetCurSel(index); |
| 1125 | return GameValue(true); |
| 1126 | } |
| 1127 | LOG_ERROR(Core, "[tri] triSelectList: IDC {} not a listbox", idc); |
| 1128 | return GameValue(false); |
| 1129 | } |
| 1130 | |
| 1131 | static int ListBoxCurSel(IControl* ctrl) |
| 1132 | { |
| 1133 | if (auto* lb = dynamic_cast<CListBox*>(ctrl)) |
| 1134 | return lb->GetCurSel(); |
| 1135 | if (auto* lb3d = dynamic_cast<C3DListBox*>(ctrl)) |
| 1136 | return lb3d->GetCurSel(); |
| 1137 | return -2; // not a listbox |
| 1138 | } |
| 1139 | |
| 1140 | /// triListSel <idc> — current selected row index of a listbox (-1 = none, |
nothing calls this directly
no test coverage detected