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

  • Подполковник
  • Сообщений: 143
 
3
 
Данный скрипт это уже готовая панель макросов которая выглядит так:



С помощью уже готового скрипта вы сможете без труда создать такую панель макросов, и подредактировать если необходимо. Нужно просто скопировать код скрипта в программу.


Код
println "Creat Macro panel"
def Shortcut = xdat.windows["MacroListWnd"]
Shortcut.unk101 = "L2UI_CT1.Windows_DF_Small_Vertical_Bg"
Shortcut.unk105 = -1
Shortcut.unk107 = 0
Shortcut.unk111 = -9999
Shortcut.unk113 = 1
Shortcut.unk114 = 1
Shortcut.unk115 = 0
Shortcut.unk134 = "undefined"
Shortcut.unk135 = -9999
Shortcut.size_absolute_width = 506
Shortcut.size_absolute_height = 46
[
        "txtHead",
        "txtCount",
        "btnHelp",
        "SlotBg",
        "btnBg",
        "macroItemBg",
].each { rem ->;
    Shortcut.children.removeIf({ el ->;
        el.name == rem
    };)
}
def Item = Shortcut.children["MacroItem"]
Item.size_absolute_height = 38
Item.size_absolute_width = 468
Item.cols = 12
Item.rows = 1
Item.spacing_horizontal = 6
Item.anchor_y = 7.0
Item.anchor_x = 36.0
[
        "btnAdd",
        "btnEdit",
        "btnTrash"
].each { name ->;
    def Button = Shortcut.children
        [name]Button.size_absolute_width = 16
   Button.size_absolute_height = 16
}
Shortcut.children[2].anchor_parent = Alignment.CENTER_LEFT
Shortcut.children[2].anchor_this = Alignment.CENTER_LEFT
Shortcut.children[3].anchor_parent = Alignment.BOTTOM_LEFT
Shortcut.children[3].anchor_this = Alignment.BOTTOM_LEFT
[
        btnAdd      : [anchor_x: 16.0, anchor_y: 2.0,  ,textStringId: -9999, texture: "AddTextures.New", textureDown: "AddTextures.New_down", textureOver: "undefined", unk103: "undefined"],
        btnEdit      : [anchor_x: 16.0, anchor_y: 0.0, texture: "L2UI_CH3.PartyWnd.party_optionbutton", textureDown: "L2UI_CH3.PartyWnd.party_optionbutton_down", textureOver: "undefined", unk103: "undefined"],
        btnTrash    : [anchor_x: 16.0, anchor_y: -2.0, texture: "L2UI_ct1.Frames.frames_df_btn_close", textureDown: "L2UI_ct1.Frames.frames_df_btn_close_down", textureOver: "undefined", unk103: "undefined"],
].each { name, ps ->;
    def Button2 = Shortcut.children
    [name]ps.each { p, v ->;
        Button2."$p" = v
    }
}
Shortcut.children.add(new Texture(name: "bakdrop1"))
Shortcut.children.add(new Texture(name: "bakdrop2"))
Shortcut.children.add(new Texture(name: "bakdrop3"))
Shortcut.children.add(new Texture(name: "bakdrop4"))
Shortcut.children.add(new Texture(name: "bakdrop5"))
Shortcut.children.add(new Texture(name: "bakdrop6"))
Shortcut.children.add(new Texture(name: "bakdrop7"))
Shortcut.children.add(new Texture(name: "bakdrop8"))
Shortcut.children.add(new Texture(name: "bakdrop9"))
Shortcut.children.add(new Texture(name: "bakdrop10"))
Shortcut.children.add(new Texture(name: "bakdrop11"))
Shortcut.children.add(new Texture(name: "bakdrop12"))
[
        bakdrop1      : [anchor_x: 6.0, anchor_y: 35.0, size_absolute_width: 36, size_absolute_height: 36, size: true, anchor: true, unk110: "None",unk109: -1,unk112: -1,unk108: -9999, unk100: "l2ui_ct1.ItemWindow_DF_SlotBox_2x2", anchor_parent: Alignment.TOP_LEFT, anchor_this: Alignment.TOP_LEFT],
        bakdrop2   : [anchor_x: 6.0, anchor_y: 72.0, size_absolute_width: 36, size_absolute_height: 36, size: true, anchor: true, unk110: "None",unk109: -1,unk112: -1,unk108: -9999, unk100: "l2ui_ct1.ItemWindow_DF_SlotBox_2x2", anchor_parent: Alignment.TOP_LEFT, anchor_this: Alignment.TOP_LEFT],
        bakdrop3    : [anchor_x: 6.0, anchor_y: 111.0, size_absolute_width: 36, size_absolute_height: 36, size: true, anchor: true, unk110: "None",unk109: -1,unk112: -1,unk108: -9999, unk100: "l2ui_ct1.ItemWindow_DF_SlotBox_2x2", anchor_parent: Alignment.TOP_LEFT, anchor_this: Alignment.TOP_LEFT],
        bakdrop4    : [anchor_x: 6.0, anchor_y: 149.0, size_absolute_width: 36, size_absolute_height: 36, size: true, anchor: true, unk110: "None",unk109: -1,unk112: -1,unk108: -9999, unk100: "l2ui_ct1.ItemWindow_DF_SlotBox_2x2", anchor_parent: Alignment.TOP_LEFT, anchor_this: Alignment.TOP_LEFT],
        bakdrop5    : [anchor_x: 6.0, anchor_y: 187.0, size_absolute_width: 36, size_absolute_height: 36, size: true, anchor: true, unk110: "None",unk109: -1,unk112: -1,unk108: -9999, unk100: "l2ui_ct1.ItemWindow_DF_SlotBox_2x2", anchor_parent: Alignment.TOP_LEFT, anchor_this: Alignment.TOP_LEFT],
        bakdrop6    : [anchor_x: 6.0, anchor_y: 225.0, size_absolute_width: 36, size_absolute_height: 36, size: true, anchor: true, unk110: "None",unk109: -1,unk112: -1,unk108: -9999, unk100: "l2ui_ct1.ItemWindow_DF_SlotBox_2x2", anchor_parent: Alignment.TOP_LEFT, anchor_this: Alignment.TOP_LEFT],
        bakdrop7      : [anchor_x: 6.0, anchor_y: 262.0, size_absolute_width: 36, size_absolute_height: 36, size: true, anchor: true, unk110: "None",unk109: -1,unk112: -1,unk108: -9999, unk100: "l2ui_ct1.ItemWindow_DF_SlotBox_2x2", anchor_parent: Alignment.TOP_LEFT, anchor_this: Alignment.TOP_LEFT],
        bakdrop8     : [anchor_x: 6.0, anchor_y: 301.0, size_absolute_width: 36, size_absolute_height: 36, size: true, anchor: true, unk110: "None",unk109: -1,unk112: -1,unk108: -9999, unk100: "l2ui_ct1.ItemWindow_DF_SlotBox_2x2", anchor_parent: Alignment.TOP_LEFT, anchor_this: Alignment.TOP_LEFT],
        bakdrop9      : [anchor_x: 6.0, anchor_y: 338.0, size_absolute_width: 36, size_absolute_height: 36, size: true, anchor: true, unk110: "None",unk109: -1,unk112: -1,unk108: -9999, unk100: "l2ui_ct1.ItemWindow_DF_SlotBox_2x2", anchor_parent: Alignment.TOP_LEFT, anchor_this: Alignment.TOP_LEFT],
        bakdrop10   : [anchor_x: 6.0, anchor_y: 378.0, size_absolute_width: 36, size_absolute_height: 36, size: true, anchor: true, unk110: "None",unk109: -1,unk112: -1,unk108: -9999, unk100: "l2ui_ct1.ItemWindow_DF_SlotBox_2x2", anchor_parent: Alignment.TOP_LEFT, anchor_this: Alignment.TOP_LEFT],
        bakdrop11   : [anchor_x: 6.0, anchor_y: 415.0, size_absolute_width: 36, size_absolute_height: 36, size: true, anchor: true, unk110: "None",unk109: -1,unk112: -1,unk108: -9999, unk100: "l2ui_ct1.ItemWindow_DF_SlotBox_2x2", anchor_parent: Alignment.TOP_LEFT, anchor_this: Alignment.TOP_LEFT],
        bakdrop12   : [anchor_x: 6.0, anchor_y: 452.0, size_absolute_width: 36, size_absolute_height: 36, size: true, anchor: true, unk110: "None",unk109: -1,unk112: -1,unk108: -9999, unk100: "l2ui_ct1.ItemWindow_DF_SlotBox_2x2", anchor_parent: Alignment.TOP_LEFT, anchor_this: Alignment.TOP_LEFT],
].each { name, ps ->;
    def element = Shortcut.children
    [name]ps.each { p, v ->;
        element."$p" = v
    }
}
println "done!"
Прикрепления: 4374143.jpg (76.5 Kb)

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

  • Рядовой
  • Сообщений: 4
 
0
 
smile 
сорри за такие сообщения но защита от создания тем в 3 сообщения реально бредовая идея.

Sonik · Offline · Дата: Пятница, 17.03.2017, 19:29 | Сообщение # 3

  • Подполковник
  • Сообщений: 143
 
3
 
Цитата Admin5874 ()
сорри за такие сообщения но защита от создания тем в 3 сообщения реально бредовая идея.

Стандартный антиспам!

Форум » Клиент игры » Модификация клиента » [Script] Панель макросов для xdat editor
  • Страница 1 из 1
  • 1
Поиск: