diff --git a/Minecraft.Client/Assets/UI/LoadCreateJoinMenu.rcss b/Minecraft.Client/Assets/UI/LoadCreateJoinMenu.rcss index d71ba679..1188aab8 100644 --- a/Minecraft.Client/Assets/UI/LoadCreateJoinMenu.rcss +++ b/Minecraft.Client/Assets/UI/LoadCreateJoinMenu.rcss @@ -113,11 +113,38 @@ div.tab_panel div.list_container { width: 100%; - flex-grow: 1; + max-height: 540dp; overflow-y: auto; - display: flex; + display: block; flex-direction: column; - padding-top: 38dp; + margin-top: 38dp; +} + +scrollbarvertical +{ + width: 0dp; +} + +scrollbarvertical sliderarrowdec +{ + position: fixed; + width: 48dp; + height: 33dp; + right: 100dp; + bottom: -40dp; + cursor: pointer; + decorator: image(images/lce/scrollUp.png); +} + +scrollbarvertical sliderarrowinc +{ + position: fixed; + width: 48dp; + height: 33dp; + right: 58dp; + bottom: -40dp; + cursor: pointer; + decorator: image(images/lce/scrollDown.png); } div.list_item @@ -127,7 +154,6 @@ div.list_item display: flex; flex-direction: row; align-items: center; - cursor: pointer; } div.list_item:hover diff --git a/Minecraft.Client/Common/UI/UIScene_LoadCreateJoinMenu.cpp b/Minecraft.Client/Common/UI/UIScene_LoadCreateJoinMenu.cpp index 4355fcac..a326c68d 100644 --- a/Minecraft.Client/Common/UI/UIScene_LoadCreateJoinMenu.cpp +++ b/Minecraft.Client/Common/UI/UIScene_LoadCreateJoinMenu.cpp @@ -301,6 +301,10 @@ UIScene_LoadCreateJoinMenu::UIScene_LoadCreateJoinMenu(int iPad, void* initData, { m_document->Show(); + //TO-DO: Modify scrolling factor to match list item buttons size and add + //mouse wheel support. + ctx->SetDefaultScrollBehavior(Rml::ScrollBehavior::Instant, 1.0f); + // Register tab button click listeners auto registerTab = [&](const char* id) { auto* el = m_document->GetElementById(id);