Files

30 lines
977 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.
# poker.js — openLobbyUI() (satır 199)
[← poker.js](index.md) · [← Master](../../wiki.md)
Parça 3/3 · [önceki](openLobbyUI-2.md)
```javascript
var btnCancelAll = ui.button("§c§lTümünü Sil").id("lobby_cancel_all");
btnCancelAll.rx(0.5, 85).ry(0.5, 92).wh(80, 20).anchor(0.5);
} else {
var btnCreate = ui.button("§6§lYeni Masa Oluştur").id("lobby_create");
btnCreate.rx(0.5, -45).ry(0.5, 92).wh(110, 20).anchor(0.5);
var btnRefresh = ui.button("§7§lYenile").id("lobby_refresh");
btnRefresh.rx(0.5, 55).ry(0.5, 92).wh(60, 20).anchor(0.5);
}
var pStates = player.getStates();
pStates.setNumber("programmatic_open", 1);
player.openUI(ui, true);
// Otomatik yenileme tetikle
var now = Date.now();
if (!pStates.has("refresh_active") || pStates.getNumber("refresh_active") < now - 3000) {
pStates.setNumber("refresh_active", now);
scheduleLobbyRefresh(c, playerName);
}
}
```