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

Function GUI_FactoryWindow_ScrollList

src/gui/widget_click.c:1139–1158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1137}
1138
1139static void GUI_FactoryWindow_ScrollList(int16 step)
1140{
1141 uint16 i;
1142 uint16 y = 32;
1143
1144 GUI_FactoryWindow_B495_0F30();
1145
1146 GUI_Mouse_Hide_Safe();
1147
1148 for (i = 0; i < 32; i++) {
1149 y += step;
1150 GFX_Screen_Copy2(72, y, 72, 16, 32, 136, SCREEN_1, SCREEN_0, false);
1151 }
1152
1153 GUI_Mouse_Show_Safe();
1154
1155 GUI_FactoryWindow_PrepareScrollList();
1156
1157 GUI_FactoryWindow_UpdateSelection(true);
1158}
1159
1160static void GUI_FactoryWindow_FailScrollList(int16 step)
1161{

Callers 2

GUI_Production_Up_ClickFunction · 0.85

Calls 6

GUI_Mouse_Hide_SafeFunction · 0.85
GFX_Screen_Copy2Function · 0.85
GUI_Mouse_Show_SafeFunction · 0.85

Tested by

no test coverage detected