mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-25 19:59:38 +00:00
Fix menu z-index and reduce feather frequency
This commit is contained in:
7
birb.js
7
birb.js
@@ -80,6 +80,7 @@ const styles = `
|
|||||||
|
|
||||||
.birb-window {
|
.birb-window {
|
||||||
font-family: "Monocraft", monospace;
|
font-family: "Monocraft", monospace;
|
||||||
|
color: #000000
|
||||||
z-index: 999999999;
|
z-index: 999999999;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
background-color: #ffecda;
|
background-color: #ffecda;
|
||||||
@@ -109,6 +110,7 @@ const styles = `
|
|||||||
transition-duration: 0.2s;
|
transition-duration: 0.2s;
|
||||||
transition-timing-function: ease-out;
|
transition-timing-function: ease-out;
|
||||||
min-width: 140px;
|
min-width: 140px;
|
||||||
|
z-index: 999999999;
|
||||||
}
|
}
|
||||||
|
|
||||||
#${MENU_EXIT_ID} {
|
#${MENU_EXIT_ID} {
|
||||||
@@ -233,11 +235,11 @@ const styles = `
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.birb-window-list-item:hover {
|
.birb-window-list-item:hover {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.birb-window-list-item-arrow {
|
.birb-window-list-item-arrow {
|
||||||
@@ -1035,7 +1037,8 @@ Promise.all([loadSpritesheetPixels(SPRITE_SHEET_URI), loadSpritesheetPixels(DECO
|
|||||||
setState(States.IDLE);
|
setState(States.IDLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (visible && Math.random() < 1 / (60 * 3)) {
|
const FEATHER_CHANCE = 1 / (60 * 60 * 60); // 1 every hour
|
||||||
|
if (visible && Math.random() < FEATHER_CHANCE) {
|
||||||
activateFeather();
|
activateFeather();
|
||||||
}
|
}
|
||||||
updateFeather();
|
updateFeather();
|
||||||
|
|||||||
Reference in New Issue
Block a user