24 lines
962 B
Markdown
24 lines
962 B
Markdown
# Test (2).js — openTargetMenu() (satır 117)
|
||
|
||
[← Test (2).js](index.md) · [← Master](../../wiki.md)
|
||
|
||
```javascript
|
||
function openTargetMenu(c, p, targetName) {
|
||
p.getStates().setString("lal_ui_target", targetName);
|
||
|
||
var ui = mappet.createUI(c, "handler").background();
|
||
var root = ui.getCurrent();
|
||
root.rxy(0.5, 0.5).wh(260, 160).anchor(0.5, 0.5);
|
||
|
||
ui.graphics().rect(0, 0, 260, 160, 0xDD09090D).rxy(0, 0).wh(260, 160).anchor(0, 0);
|
||
ui.label("\u00a7f\u00a7l" + targetName).rx(0.5).y(16).w(220).anchorX(0.5).labelAnchor(0.5, 0.5);
|
||
|
||
ui.button("\u00a7fYanima Cek").id("pull").rx(0.5).y(44).wh(210, 22).anchorX(0.5);
|
||
ui.button("\u00a7fYer Degistir").id("swap").rx(0.5).y(72).wh(210, 22).anchorX(0.5);
|
||
ui.button("\u00a7fSerbest Birak").id("free").rx(0.5).y(100).wh(210, 22).anchorX(0.5);
|
||
ui.button("\u00a78Geri").id("back").rx(0.5).y(128).wh(100, 18).anchorX(0.5);
|
||
|
||
p.openUI(ui, true);
|
||
}
|
||
```
|