mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-22 04:05:42 +00:00
parent
a074a94c12
commit
d18b429788
@ -66,6 +66,10 @@ class TabState {
|
||||
Modal.hide();
|
||||
EventHub.dispatch(GameEvent.TAB_CHANGED);
|
||||
}
|
||||
|
||||
resetCurrentSubtab() {
|
||||
this._currentSubtab = this.subtabs[0];
|
||||
}
|
||||
}
|
||||
|
||||
const Tab = GameDatabase.tabs.mapToObject(
|
||||
@ -81,3 +85,9 @@ const Tabs = (function() {
|
||||
}
|
||||
};
|
||||
}());
|
||||
|
||||
EventHub.logic.on(GameEvent.GAME_LOAD, () => {
|
||||
for (const tab of Tabs.all) {
|
||||
tab.resetCurrentSubtab();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user