MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / TriSendText

Function TriSendText

engine/Poseidon/Game/Commands/GameStateExtTest.cpp:1124–1137  ·  view source on GitHub ↗

triSendText "utf8" — send UTF-8 text to the focused control. Returns true.

Source from the content-addressed store, hash-verified

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
1131static 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,

Callers

nothing calls this directly

Calls 5

GetActiveDisplayForSQFFunction · 0.85
TriSendTextImplFunction · 0.85
GameValueClass · 0.50
GetTypeMethod · 0.45
GetFocusedMethod · 0.45

Tested by

no test coverage detected