Files

47 lines
1.7 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.
# MercanMappetSkyChanger.js — main() (satır 201)
[← MercanMappetSkyChanger.js](index.md) · [← Master](../../wiki.md)
```javascript
function main(c)
{
var player = requirePlayer(c);
if (player == null)
{
return;
}
if (getServerChannel() == null)
{
player.send("SkyChanger kanali bulunamadi. athv1-hotfix.jar client ve server tarafinda yuklu olmali.");
return;
}
var ui = mappet.createUI(c, "handler").background();
place(ui.label("Sky Changer"), -112, -116).wh(224, 16).background(0xAA111111).labelAnchor(0.5, 0.5);
place(ui.label("Fog RGB"), -112, -88).wh(80, 12);
place(ui.trackpad(100).id("fog_r"), -112, -68).wh(66, 18).limit(0, 255, true).increment(1);
place(ui.trackpad(140).id("fog_g"), -38, -68).wh(66, 18).limit(0, 255, true).increment(1);
place(ui.trackpad(220).id("fog_b"), 36, -68).wh(66, 18).limit(0, 255, true).increment(1);
place(ui.label("Fog range (-1/herkes)"), -112, -42).wh(112, 12);
place(ui.textbox("-1", 16).id("fog_range"), 12, -46).wh(90, 18);
place(ui.button("Fog uygula").id("apply_fog"), -112, -18).wh(102, 20);
place(ui.button("Fog sifirla").id("reset_fog"), 0, -18).wh(102, 20);
place(ui.label("Sky texture URL"), -112, 16).wh(120, 12);
place(ui.textbox("", 512).id("sky_url"), -112, 32).wh(214, 18);
place(ui.label("Sky range (-1/herkes)"), -112, 58).wh(112, 12);
place(ui.textbox("-1", 16).id("sky_range"), 12, 54).wh(90, 18);
place(ui.button("Sky uygula").id("apply_sky"), -112, 82).wh(66, 20);
place(ui.button("Sky sifirla").id("reset_sky"), -38, 82).wh(66, 20);
place(ui.button("Kapat").id("close"), 36, 82).wh(66, 20);
player.openUI(ui, true);
}
```