Files

36 lines
888 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.
# Power.js — updateUI() (satır 79)
[← Power.js](index.md) · [← Master](../../wiki.md)
```javascript
function updateUI(c)
{
var ui = c.getSubject().getUIContext();
if (!ui || ui.isClosed()) return;
var s = c.getSubject().getStates();
var clicks = parseInt(s.getString("cps_clicks"));
var time = parseInt(s.getString("cps_time"));
var vurusGucu = clicks / (10 - time + 0.0001);
var panel = ui.get("panel");
panel.removeAll();
panel.rect(0, 0, 320, 220, 0xff101018);
panel.text("GÜÇ TESTİ", 160, 15, 0xffffffff, 0.7, 0.0);
panel.text("Vuruş Gücü: " + vurusGucu.toFixed(1), 160, 45, 0xffff4444, 0.6, 0.0);
panel.text("Süre: " + time, 160, 70, 0xffffffff, 0.5, 0.0);
panel.rect(100, 100, 120, 60, 0xffcc2222);
panel.text("VURUŞ", 160, 130, 0xffffffff, 0.6, 0.0);
}
```