Files

36 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Hector_Tudors.js — openMenu() (satır 238)
[← Hector_Tudors.js](index.md) · [← Master](../../wiki.md)
Parça 2/2 · [önceki](openMenu.md)
```javascript
var gb = top + 5 * (bh + gy); // 5 satırlık sabit alt hiza
// --- Sayfa gezinme ---
ui.button("§e◀ Önceki").id("prev")
.rx(0.5, left).y(gb + 6).wh(110, 22).anchorX(0).background(0x222a3a)
.tooltip("§7Önceki sayfa");
ui.button("§eSonraki ▶").id("next")
.rx(0.5, left + cols * (bw + gx) - 110).y(gb + 6).wh(110, 22).anchorX(0).background(0x222a3a)
.tooltip("§7Sonraki sayfa");
// --- Seçili göstergesi ---
ui.label(selLabel(cur)).id("sel")
.rx(0.5).y(gb + 34).w(700).anchorX(0.5).labelAnchor(0.5, 0.5).color(0xffffff);
// --- Avatar önizleme (ızgaranın sağında) ---
try {
var mc = ui.morph(mappet.createMorph(AVATAR_NBT))
.rx(0.5, left + cols * (bw + gx) + 12).y(top - 2).wh(80, 150);
try { mc.rotation(-4, 0); } catch (e2) {}
try { mc.distance(40); } catch (e3) {}
} catch (e) {}
// --- Kapat ---
ui.icon("close").id("close").rx(1, -30).y(8).wh(20, 20);
p.openUI(ui);
}
```