Add extra attachable presets

This commit is contained in:
JannisX11 2023-05-03 16:51:08 +02:00
parent 22d2f23e69
commit a88d2b4c74

View File

@ -654,11 +654,39 @@ BARS.defineActions(function() {
showPresetMenu(event) {
new Menu([
{
name: 'Item',
name: 'Main Hand',
icon: 'build',
click: () => {
this.binding = 'q.item_slot_to_bone_name(c.item_slot)';
}
},
{
name: 'Right Hand',
icon: 'build',
click: () => {
this.binding = '\'rightitem\'';
}
},
{
name: 'Left Hand',
icon: 'build',
click: () => {
this.binding = '\'leftitem\'';
}
},
{
name: 'Body',
icon: 'build',
click: () => {
this.binding = '\'body\'';
}
},
{
name: 'Head',
icon: 'build',
click: () => {
this.binding = '\'head\'';
}
}
]).show(event.target);
},