Files

23 lines
690 B
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 — styleButton() (satır 344)
[← Hector_Tudors.js](index.md) · [← Master](../../wiki.md)
```javascript
function styleButton(btn, i, selected, p) {
var m = SKILLS[i - 1];
// Sonsuzluk açık mı? (11) -> yeşil "AÇIK"
if (i === 11 && p && p.getStates().getNumber("bk_inf") > 0) {
btn.label("§a§l11 Sonsuzluk✔");
btn.background(selected ? 0x1f8a4a : 0x0f5a2a);
return;
}
if (selected) {
btn.label("§a§l" + i + " " + m.s + " ✔");
btn.background(0x1f6e3a);
} else {
btn.label(m.col + "§l" + i + " §r" + m.col + m.s);
btn.background(m.bg);
}
}
```