the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)

Implement smooth scrolling in Creative Mode menu (#240)

authored by

void_17 and committed by
GitHub
3093ca37 af5d62a8

+3 -2
+3 -2
Minecraft.Client/Common/UI/IUIScene_CreativeMenu.cpp
··· 845 845 } 846 846 } 847 847 848 - m_staticPerPage = MAX_SIZE - dynamicItems; 849 - m_pages = (int)ceil((float)m_staticItems / m_staticPerPage); 848 + m_staticPerPage = columns; 849 + const int totalRows = (m_staticItems + columns - 1) / columns; 850 + m_pages = std::max<int>(1, totalRows - 5 + 1); 850 851 } 851 852 852 853 IUIScene_CreativeMenu::TabSpec::~TabSpec()