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

Method ActiveBookmark

engine/Poseidon/UI/Controls/UIControlsExt.cpp:183–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181 int s = FindSection(name);
182 if (s >= 0)
183 {
184 _currentSection = s;
185 float mouseX = 0.5 + InputSubsystem::Instance().GetCursorX() * 0.5;
186 float mouseY = 0.5 + InputSubsystem::Instance().GetCursorY() * 0.5;
187 _activeField = FindField(mouseX, mouseY);
188 }
189}
190
191int CHTMLContainer::ActiveBookmark()
192{
193 if (_sections.Size() <= 0)
194 {
195 return -1;
196 }
197 HTMLSection& section = _sections[_currentSection];
198 int n = section.names.Size();
199 int m = _bookmarks.Size();
200 for (int i = 0; i < n; i++)
201 {
202 RString name = section.names[i];
203 for (int j = 0; j < m; j++)
204 {
205 if (stricmp(name, _bookmarks[j]) == 0)
206 {
207 return j;

Callers 2

AnimateMethod · 0.80
OnDrawMethod · 0.80

Calls 2

stricmpFunction · 0.50
SizeMethod · 0.45

Tested by

no test coverage detected