MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / GUI_FactoryWindow_FailScrollList

Function GUI_FactoryWindow_FailScrollList

src/gui/widget_click.c:1160–1184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1158}
1159
1160static void GUI_FactoryWindow_FailScrollList(int16 step)
1161{
1162 uint16 i;
1163 uint16 y = 32;
1164
1165 GUI_FactoryWindow_B495_0F30();
1166
1167 GUI_Mouse_Hide_Safe();
1168
1169 GUI_FactoryWindow_B495_0F30();
1170
1171 for (i = 0; i < 6; i++) {
1172 y += step;
1173 GFX_Screen_Copy2(72, y, 72, 16, 32, 136, SCREEN_1, SCREEN_0, false);
1174 }
1175
1176 for (i = 0; i < 6; i++) {
1177 y -= step;
1178 GFX_Screen_Copy2(72, y, 72, 16, 32, 136, SCREEN_1, SCREEN_0, false);
1179 }
1180
1181 GUI_Mouse_Show_Safe();
1182
1183 GUI_FactoryWindow_UpdateSelection(true);
1184}
1185
1186/**
1187 * Handles Click event for the "Down" button in production window.

Callers 2

GUI_Production_Up_ClickFunction · 0.85

Calls 5

GUI_Mouse_Hide_SafeFunction · 0.85
GFX_Screen_Copy2Function · 0.85
GUI_Mouse_Show_SafeFunction · 0.85

Tested by

no test coverage detected