banktags: remove setBankScroll event
This hasn't worked in awhile since it was assining the scroll value to the wrong variable. Now we are computing the scroll in onScriptPreFixed for [proc,bankmain_finishbuilding], so it is no longer necessary here.
This commit is contained in:
@@ -573,7 +573,7 @@ public class TabInterface
|
||||
|
||||
switch (eventName)
|
||||
{
|
||||
case "setBankScroll":
|
||||
case "skipBankLayout":
|
||||
if (!isTabMenuActive())
|
||||
{
|
||||
setTabMenuVisible(false);
|
||||
@@ -582,11 +582,8 @@ public class TabInterface
|
||||
|
||||
setTabMenuVisible(true);
|
||||
|
||||
// scroll height
|
||||
intStack[intStackSize - 3] = (((tabManager.getTabs().size() - 1) / BANK_ITEMS_PER_ROW) + 1) * (BANK_ITEM_HEIGHT + BANK_ITEM_Y_PADDING);
|
||||
|
||||
// skip normal bank layout
|
||||
intStack[intStackSize - 2] = 1;
|
||||
intStack[intStackSize - 1] = 1;
|
||||
break;
|
||||
case "beforeBankLayout":
|
||||
setTabMenuVisible(false);
|
||||
|
||||
Reference in New Issue
Block a user