Scrollbar click behavior changes for ScrollableWindowComponents. Items that are createable now display the proper contents in the Blacksmithing window.
This commit is contained in:
@@ -62,6 +62,7 @@ const vf2d Menu::CENTERED = {-456,-456};
|
||||
MenuType Menu::lastMenuTypeCreated;
|
||||
std::string Menu::lastRegisteredComponent;
|
||||
bool Menu::alreadyClicked=false;
|
||||
bool Menu::scrolling=false;
|
||||
|
||||
INCLUDE_game
|
||||
INCLUDE_GFX
|
||||
@@ -128,7 +129,7 @@ void Menu::CheckClickAndPerformMenuSelect(AiL*game){
|
||||
}
|
||||
|
||||
void Menu::HoverMenuSelect(AiL*game){
|
||||
if(!game->IsFocused()||selection.expired()||selection.lock()->disabled||selection.lock()->grayedOut||Menu::alreadyClicked)return;
|
||||
if(!game->IsFocused()||selection.expired()||selection.lock()->disabled||selection.lock()->grayedOut||Menu::alreadyClicked||Menu::scrolling)return;
|
||||
|
||||
if(selection.lock()->draggable){
|
||||
if(buttonHoldTime<"ThemeGlobal.MenuHoldTime"_F){
|
||||
|
||||
Reference in New Issue
Block a user