Files

40 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.
# potion_rain.js — q() (satır 160)
[← potion_rain.js](index.md) · [← Master](../../wiki.md)
Parça 11/11 · [önceki](q-10.md)
```javascript
var bg = ui.graphics().rxy(0.5, 0.5).wh(UI_W, UI_H).anchor(0.5, 0.5);
bg.rect(0, 0, UI_W, UI_H, 0xE00C0A12);
bg.rect(0, 0, UI_W, 28, 0xEE1A1424);
bg.rect(0, 28, UI_W, 1, 0xFFB45CFF);
bg.rect(0, 258, UI_W, 1, 0x40FFFFFF);
at(ui.label("§d§lTrol Yagmuru §8- §7iksir, Pepsi, ors, tavuk..."), 12, 8, 280, 12).labelAnchor(0, 0.5);
at(ui.icon("close").id("close"), UI_W - 24, 5, 18, 18);
for (var ti = 0; ti < TABS.length; ti++) {
at(ui.button(pick(ti === page, TABS[ti])).id("tab" + ti), 12 + ti * 80, 34, 76, 20);
}
var i;
if (page === 0) {
var kSel = getIndex(st, K_KIND, KINDS.length);
for (i = 0; i < KINDS.length; i++) {
at(ui.button(kindText(i, kSel)).id("kind" + i), 12 + (i % 3) * 107, 62 + Math.floor(i / 3) * 23, 101, 20);
}
at(ui.button(pick(cfg.spin, "Donme / egim")).id("spin"), 12, 204, 155, 20)
.tooltip("Resimler doner, bloklar egik duser", 1);
at(ui.button(pick(cfg.ipot, "Carpinca iksir")).id("ipot"), 173, 204, 155, 20)
.tooltip("Gorsel turler yere degince secili iksir de patlar", 1);
at(ui.label("§8Skin ve Ozel Morph: Skin sekmesinden. Yere degince hep iksir patlar."), 12, 232, 316, 12);
} else if (page === 1) {
var pSel = getIndex(st, K_POT, POTIONS.length);
for (i = 0; i < POTIONS.length; i++) {
at(ui.button(potionText(i, pSel)).id("pot" + i), 12 + (i % 3) * 107, 62 + Math.floor(i / 3) * 23, 101, 20);
}
at(ui.label("§8Iksir turunde dogrudan; gorsel turlerde \"Carpinca iksir\" aciksa kullanilir."), 12, 160, 316, 12);
}
```