Skip to content

Commit

Permalink
fix medal row icons able to become visible in other tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
lvandeve committed May 24, 2023
1 parent 4a088e9 commit 68cb182
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data.js
Original file line number Diff line number Diff line change
Expand Up @@ -7811,7 +7811,7 @@ var berry3_6 = registerBerry3('rhodium blackberry', 6, Res({infseeds:400e27}), R
crop3_register_id = 600;
var mush3_4 = registerMushroom3('gold champignon', 4, Res({infseeds:500e18}), Res({infspores:1}), Num(0.5), default_crop3_growtime, metalifyPlantImages(champignon, metalheader4, [2]));
var mush3_5 = registerMushroom3('platinum champignon', 5, Res({infseeds:20e24}), Res({infspores:25}), Num(1), default_crop3_growtime, metalifyPlantImages(champignon, metalheader5, [7]));
var mush3_6 = registerMushroom3('rhodium champignon', 5, Res({infseeds:5e30}), Res({infspores:500}), Num(2), default_crop3_growtime, metalifyPlantImages(champignon, metalheader6, [6]));
var mush3_6 = registerMushroom3('rhodium champignon', 6, Res({infseeds:5e30}), Res({infspores:500}), Num(2), default_crop3_growtime, metalifyPlantImages(champignon, metalheader6, [6]));


crop3_register_id = 900;
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
var version_major = 0; // 0..61
var version_minor = 9; // 0..4095
var version_patch = 4; // 0..63
var version_sub = 0; // 0=no suffix, 1=b, 2=c, ...
var version_sub = 1; // 0=no suffix, 1=b, 2=c, ...

var version = 262144 * (version_major + 2) + 64 * version_minor + version_patch;

Expand Down
2 changes: 1 addition & 1 deletion ui_medals.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function updateMedalUI() {
if(row_has_exclamation_mark && state.medals_earned > 40) {
if(medal_side_cache[ypos]) {
if(!medal_side_cache[ypos].visibility_visible) {
medal_side_cache[ypos].div.style.visibility = 'visible';
medal_side_cache[ypos].div.style.visibility = ''; // use '' here, not 'visible': if should inherit from parent, otherwise it can pop through to other tabs
medal_side_cache[ypos].visibility_visible = true;
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion ui_sidepanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function updateRightPane() {
var miniconfigbutton = document.createElement('span');
chip2.div.textEl.appendChild(miniconfigbutton);
miniconfigbutton.innerHTML = '&#8201;⚙&#8201;'; // TODO: find a more clean way to make this exactly square
miniconfigbutton.className = 'efButton';
miniconfigbutton.className = 'efFlatButton';
miniconfigbutton.title = 'quick edit auto-actions';
addButtonAction(miniconfigbutton, function(e) {
showConfigureAutoActionDialog();
Expand Down

0 comments on commit 68cb182

Please sign in to comment.