File tree Expand file tree Collapse file tree 3 files changed +7
-12
lines changed
Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 27852785 < div id ="traits " style ="display: none; ">
27862786 < div id ="corruptionStatsLoadouts " class ="flex column ">
27872787 < span id ="corrButtonRow " class ="flex row center ">
2788- < button id ="corrStatsBtn " style ="borderColor: dodgerblue ; " i18n ="corruptions.corrStatsBtn "> </ button >
2788+ < button id ="corrStatsBtn " style ="background-color: mediumblue ; " i18n ="corruptions.corrStatsBtn "> </ button >
27892789 < button id ="corrLoadoutsBtn " i18n ="corruptions.corrLoadoutsBtn "> </ button >
27902790 </ span >
27912791 < div id ="corruptionStats " class ="corruptionContainer ">
Original file line number Diff line number Diff line change @@ -604,14 +604,9 @@ export const changeTab = (tabs: Tabs, step?: number) => {
604604 for ( let i = 0 ; i < subTabList . length ; i ++ ) {
605605 const id = subTabList [ i ] . buttonID
606606 if ( id ) {
607- const button = DOMCacheGetOrSet ( id )
607+ const color = DOMCacheGetOrSet ( id ) . style . backgroundColor
608608
609- if ( button . style . backgroundColor === 'crimson' ) { // handles every tab except settings and corruptions
610- player . subtabNumber = i
611- break
612- }
613- // what in the shit is this?!
614- if ( G . currentTab === Tabs . Corruption && button . style . borderColor === 'dodgerblue' ) { // handle corruption tab
609+ if ( color === 'crimson' || color === 'mediumblue' ) { // handles every tab except settings
615610 player . subtabNumber = i
616611 break
617612 }
Original file line number Diff line number Diff line change @@ -1085,13 +1085,13 @@ export const showCorruptionStatsLoadouts = () => {
10851085 if ( player . corruptionShowStats ) {
10861086 DOMCacheGetOrSet ( 'corruptionStats' ) . style . display = 'flex'
10871087 DOMCacheGetOrSet ( 'corruptionLoadouts' ) . style . display = 'none'
1088- DOMCacheGetOrSet ( 'corrStatsBtn' ) . style . borderColor = 'dodgerblue '
1089- DOMCacheGetOrSet ( 'corrLoadoutsBtn' ) . style . borderColor = 'white '
1088+ DOMCacheGetOrSet ( 'corrStatsBtn' ) . style . backgroundColor = 'mediumblue '
1089+ DOMCacheGetOrSet ( 'corrLoadoutsBtn' ) . style . backgroundColor = ''
10901090 } else {
10911091 DOMCacheGetOrSet ( 'corruptionStats' ) . style . display = 'none'
10921092 DOMCacheGetOrSet ( 'corruptionLoadouts' ) . style . display = 'flex'
1093- DOMCacheGetOrSet ( 'corrStatsBtn' ) . style . borderColor = 'white '
1094- DOMCacheGetOrSet ( 'corrLoadoutsBtn' ) . style . borderColor = 'dodgerblue '
1093+ DOMCacheGetOrSet ( 'corrStatsBtn' ) . style . backgroundColor = ''
1094+ DOMCacheGetOrSet ( 'corrLoadoutsBtn' ) . style . backgroundColor = 'mediumblue '
10951095 }
10961096}
10971097
You can’t perform that action at this time.
0 commit comments