Files

58 lines
1.8 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.
# klon_siluet.js — openMenu() (satır 172)
[← klon_siluet.js](index.md) · [← Master](../../wiki.md)
Parça 2/3 · [önceki](openMenu.md) · [sonraki](openMenu-3.md)
```javascript
.background(0x2a1414).tooltip(opt.tip);
ui.label(optLabel(st, opt)).id("v_" + opt.id)
.rx(0.5, left + 28).y(rowY).wh(W - 56, 22).anchorX(0)
.labelAnchor(0, 0.5).color(0xffffff);
ui.button("§a§l+").id("inc_" + opt.id)
.rx(0.5, left + W - 24).y(rowY).wh(24, 22).anchorX(0)
.background(0x142a14).tooltip(opt.tip);
rowY += 24;
}
// --- Tetik modu ---
rowY += 4;
ui.button(modeLabel(st)).id("mode")
.rx(0.5, left).y(rowY).wh(W, 22).anchorX(0).background(0x1a2a1a)
.tooltip(modeTip(st));
// --- Ac/kapa secenekleri ---
rowY += 26;
var fw = (W - 6) / 2;
for (var f = 0; f < FLAGS.length; f++)
{
var fl = FLAGS[f];
var fon = st.getNumber(fl.st) === 1;
ui.button(flagLabel(fl, fon)).id("flag_" + fl.id)
.rx(0.5, left + f * (fw + 6)).y(rowY).wh(fw, 22).anchorX(0)
.background(fon ? 0x1f6e3a : 0x24242a)
.tooltip(fl.tip);
}
// --- Partikul ---
rowY += 26;
ui.button(partLabel(st)).id("part")
.rx(0.5, left).y(rowY).wh(W, 22).anchorX(0).background(0x1a1a2a)
.tooltip("§f§lPartikul\n§7Siluetlerin uzerine ek partikul serper.\n§8Tikladikca sirayla degisir.");
// --- Alt ipucu ---
ui.label("§8Sag tik: ac/kapa • Egil+Sag tik: bu menu")
.rx(0.5).y(rowY + 32).w(W).anchorX(0.5).labelAnchor(0.5, 0.5).color(0x556677);
// --- Kilik secici (sagda) — tiklayinca Blockbuster morph picker acilir ---
try
{
var m = ghostMorphOf(p, st);
if (m)
{
```