10:26 | 19.03.2024
[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Форум » Клиент игры » Модификация клиента » [Script] Вторая дополнительная панель для xdat editor
[Script] Вторая дополнительная панель для xdat editor
Sonik · Offline · Дата: Четверг, 17.12.2015, 21:46 | Сообщение # 1

  • Подполковник
  • Сообщений: 143
 
3
 
[Script]Вторая дополнительная панель - этот скрипт делает еще одну доп панельку и в игре. Панель будет выглядеть так на скрине сделал 2 панельки используя скрипт первой,а потом второй панели.




Код
println "Creat 2 panel"
def Shortcut = xdat.windows["FlightShipCtrlWnd"]
def Windd = Shortcut.children["FlightShortCut"]
def Win2 = Shortcut.children["FlightSteerWnd"]
Shortcut.unk107 = 0
Shortcut.unk109 = 1
Shortcut.size_absolute_height = 506
Shortcut.size_absolute_width = 46
Shortcut.children[0].unk114 = 3
Shortcut.children[0].unk101 = "L2UI_CT1.Windows_DF_Small_Bg"
Shortcut.children[0].size_absolute_width = 46
Shortcut.children[0].size_absolute_height = 506
Shortcut.children[1].unk107 = 1
[
        "F1Tex",
        "F2Tex",
        "F3Tex",
        "F4Tex",
        "F5Tex",
        "F6Tex",
   "F7Tex",
        "F8Tex",
        "F9Tex",
        "F10Tex",
        "F11Tex",
        "F12Tex"
].each { rem ->
    Shortcut.children[0].children.removeIf({ el ->
        el.name == rem
    };)
}
[
        "Shortcut1",
        "Shortcut2",
        "Shortcut3",
        "Shortcut4",
        "Shortcut5",
        "Shortcut6",
   "Shortcut7",
        "Shortcut8",
        "Shortcut9",
        "Shortcut10",
        "Shortcut11",
        "Shortcut12"
].each { name ->
    def element2 = Windd.children
        [name]element2.unk101 = false
}
[
        "JoypadBtn",
        "UnlockBtn",
   "LockBtn",
   "SelectTex"
].each { name ->
    def element = Windd.children
        [name]element.size_absolute_width = 0
   element.size_absolute_height = 0
}

[
        bakdrop1      : [anchor_x: 6.0, anchor_y: 35.0],
        bakdrop2   : [anchor_x: 6.0, anchor_y: 72.0],
        bakdrop3    : [anchor_x: 6.0, anchor_y: 109.0],
        bakdrop4    : [anchor_x: 6.0, anchor_y: 146.0],
        bakdrop5    : [anchor_x: 6.0, anchor_y: 188.0],
        bakdrop6    : [anchor_x: 6.0, anchor_y: 225.0],
        bakdrop7      : [anchor_x: 6.0, anchor_y: 262.0],
        bakdrop8     : [anchor_x: 6.0, anchor_y: 299.0],
        bakdrop9      : [anchor_x: 6.0, anchor_y: 341.0],
        bakdrop10   : [anchor_x: 6.0, anchor_y: 378.0],
        bakdrop11   : [anchor_x: 6.0, anchor_y: 415.0],
        bakdrop12   : [anchor_x: 6.0, anchor_y: 452.0],
        Shortcut1   : [anchor_x: 7.0, anchor_y: 35.0],
        Shortcut2   : [anchor_x: 7.0, anchor_y: 72.0],
        Shortcut3   : [anchor_x: 7.0, anchor_y: 109.0],
        Shortcut4   : [anchor_x: 7.0, anchor_y: 146.0],
        Shortcut5   : [anchor_x: 7.0, anchor_y: 188.0],
        Shortcut6     : [anchor_x: 7.0, anchor_y: 225.0],
        Shortcut7   : [anchor_x: 7.0, anchor_y: 262.0],
        Shortcut8     : [anchor_x: 7.0, anchor_y: 299.0],
        Shortcut9   : [anchor_x: 7.0, anchor_y: 341.0],
        Shortcut10   : [anchor_x: 7.0, anchor_y: 378.0],
        Shortcut11   : [anchor_x: 7.0, anchor_y: 415.0],
        Shortcut12   : [anchor_x: 7.0, anchor_y: 452.0]
].each { name, ps ->
    def element = Shortcut.children[0].children
    [name]ps.each { p, v ->
        element."$p" = v
    }
}
println "done"
Прикрепления: 4095432.jpg (69.6 Kb)

Admin5874 · Offline · Дата: Среда, 15.03.2017, 16:05 | Сообщение # 2

  • Рядовой
  • Сообщений: 4
 
0
 
smile
Форум » Клиент игры » Модификация клиента » [Script] Вторая дополнительная панель для xdat editor
  • Страница 1 из 1
  • 1
Поиск: