Skip to content

Commit

Permalink
main menu btn
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonTDM committed Jul 12, 2024
1 parent 84e21ee commit 3b09bc7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
24 changes: 19 additions & 5 deletions game/Custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,24 @@
#dTitle * {
font-family: "pico12" !important;
}

#bMainMenu {
text-transform: uppercase;
visibility: hidden;
position: absolute;
left: 770px;
top: 20px;
text-align: center;
cursor: pointer;
width: 109px;
height: 29px;
z-index: 201;
line-height: 26px;
background: url(images/interface/Almanac_BlankButton.png) no-repeat;
background-size: cover;
color: #000080;
font-size: 14px;
padding-top: 3px;
}
.span2 {
font-family: "pico12" !important;
margin-right: 7px !important;
Expand All @@ -55,11 +72,9 @@
left: 0 !important;
top: 21px !important;
}

#dHandBookZCard .span1 .span2 {
display: none !important;
}

.menu,
.OptionsMenuButtonSpan,
#dHandBookPlantName,
Expand Down Expand Up @@ -92,15 +107,14 @@
border-right: 0 !important;
border-top: 0 !important;
border-bottom: 0 !important;
background: url('images/SeedChooser_Button.png') no-repeat !important;
background: url("images/SeedChooser_Button.png") no-repeat !important;
background-size: contain !important;
font-family: dwarvesc !important;
color: #d0932b !important;
font-size: 18px !important;
width: 150px !important;
margin-left: -25px !important;
}

#DivTeach {
width: 50% !important;
left: 36% !important;
Expand Down
3 changes: 3 additions & 0 deletions game/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,9 @@
<br /><br /><br />
<div id="dNewPlantTooltip"></div>
<br /><br /><br /><br /><br /><br />
<div id="bMainMenu" onmouseover="this.style.backgroundPosition='bottom'" onmouseout="this.style.backgroundPosition='top'" onclick="oldLv = oS.Lvl;SelectModal(0);SetBlock($('dSurface'),$('iSurfaceBackground'));oS.Lvl = oldLv;" style="visibility: none; background-position: center top;">
Main Menu&nbsp;
</div>
<input
type="button"
value="next level!"
Expand Down
3 changes: 3 additions & 0 deletions game/js/Cfunction.js
Original file line number Diff line number Diff line change
Expand Up @@ -1767,6 +1767,7 @@ var $User = (function () {
},
DisplayZombie = function () {
SetVisible($("bShowHandBook"));
/* SetVisible($("bMainMenu")); */
var d = oP.AZ.slice(0),
b = d.length,
c,
Expand Down Expand Up @@ -2803,12 +2804,14 @@ var $User = (function () {
$("dNewPlantTooltip").innerHTML = f.Tooltip;
$("btnNextLevel").onclick = function () {
StopAudio("plantsgarden");
SetHidden($("bMainMenu"));
SelectModal(c);
};
SetStyle($("dNewPlant"), {
visibility: "visible",
zIndex: 255,
});
SetVisible($("bMainMenu"));
})();
},
[0, $("DivA")]
Expand Down

0 comments on commit 3b09bc7

Please sign in to comment.