MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / OnMouseOver

Method OnMouseOver

src/network/network_gui.cpp:1965–1979  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1963 }
1964
1965 void OnMouseOver([[maybe_unused]] Point pt, WidgetID widget) override
1966 {
1967 if (widget != WID_CL_MATRIX) {
1968 if (this->hover_index != -1) {
1969 this->hover_index = -1;
1970 this->SetWidgetDirty(WID_CL_MATRIX);
1971 }
1972 } else {
1973 int index = this->GetRowFromWidget(pt.y, widget, 0, -1);
1974 if (index != this->hover_index) {
1975 this->hover_index = index;
1976 this->SetWidgetDirty(WID_CL_MATRIX);
1977 }
1978 }
1979 }
1980};
1981
1982void ShowClientList()

Callers

nothing calls this directly

Calls 2

SetWidgetDirtyMethod · 0.80
GetRowFromWidgetMethod · 0.80

Tested by

no test coverage detected