MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / UpdateWindowTab

Function UpdateWindowTab

src/openrct2-ui/scripting/CustomWindow.cpp:1173–1183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1171 }
1172
1173 void UpdateWindowTab(WindowBase* w, int32_t tabIndex)
1174 {
1175 if (w->classification == WindowClass::custom)
1176 {
1177 auto& customInfo = GetInfo(static_cast<CustomWindow*>(w));
1178 if (tabIndex >= 0 && tabIndex < static_cast<int32_t>(customInfo.Desc.Tabs.size()))
1179 {
1180 static_cast<CustomWindow*>(w)->ChangeTab(tabIndex);
1181 }
1182 }
1183 }
1184
1185 void UpdateWidgetText(WindowBase* w, WidgetIndex widgetIndex, std::string_view value)
1186 {

Callers 1

tabIndex_setMethod · 0.85

Calls 2

ChangeTabMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected