many
This commit is contained in:
parent
0b9ff1363b
commit
0a6148c73f
67 changed files with 2653 additions and 1519 deletions
|
|
@ -60,12 +60,7 @@ function applyToolTips() {
|
|||
const showTip = (btn) => {
|
||||
const baseTip = btn?.dataset?.tip || "";
|
||||
if (!baseTip) return;
|
||||
let tip = baseTip;
|
||||
if (btn?.dataset?.tool === "nest_box") {
|
||||
const count = world?.nestBoxToolTipCount?.();
|
||||
if (count) tip = `${baseTip}
|
||||
(${count.current}/${count.max})\u5339`;
|
||||
}
|
||||
const tip = baseTip;
|
||||
pop.textContent = tip;
|
||||
pop.classList.remove("hidden");
|
||||
const rect = btn.getBoundingClientRect();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue