(02-07-2021, 04:34 AM)iwubcode Wrote: Venomalia - here's an example of the configuration I'm proposing for the next release. It's a little more verbose but should allow for all sorts of zany possibilities.
What do you think?
Code:{
"generated_folder_name": "MyDynamicTexturePack",
"preserve_aspect_ratio": false,
"output_textures":
{
"tex1_128x128_02870c3b015d8b40_5.png":
{
"image": "icons.png",
"emulated_controls": {
"Wiimote1": [
{
"key": "Buttons/A",
"region": [0, 0, 30, 30],
"tag": "pressed",
"type": "overwrite" // if left off, this is the default
},
{
"key": "Buttons/A",
"region": [500, 550, 530, 580],
"type": "overlay",
},
{
"key": "Buttons/B",
"region": [100, 342, 132, 374]
},
{
"key": "Buttons/-",
"region": [320, 100, 400, 180]
"type": "overwrite_with_color",
"background_color": "#000000"
},
{
"tag": "LeftStick",
"region": [33, 33, 110, 110]
}
]
},
"host_controls": {
"DInput/0/Keyboard Mouse": [
{
"key": "A",
"path": "keyboard/a.png"
},
{
"key": "A",
"tag": "pressed",
"path": "keyboard/pressed_a.png"
},
{
"key": "B",
"path": "keyboard/b.png"
},
{
"tag": "LeftStick",
"path": "keyboard/wsad.png"
},
},
"XInput/0/Gamepad": {
{
"key": "A",
"path": "xbox360/a.png"
},
{
"key": "A",
"tag": "pressed",
"path": "xbox360/pressed_a.png"
},
{
"key": "B",
"path": "xbox360/b.png"
},
{
"tag": "LeftStick",
"path": "xbox360/left_stick.png"
},
}
}
}
}
}
Documentation will be painful :o
so that looks very promising, will that still be compatible wen not is also not so bad.
if I understand correctly is
"emulated_controls" "key" is the emulated devices only that he now has an identifier.
"emulated_controls" "tag" can be used alone or with "key". alone is for (problem 1) and together is for (problem 2). I think it's good even if I would name them maybe different to prevent errors and make it more understandable when you search for errors. maybe "key_tag" and "name_tag".
"emulated_controls" "type"
-"overwrite" is how it is now.
-"overlay" puts the host image over the emulated image
-"overwrite_with_color" I'm unsure but I think it replaces the transparency with a color?
here i would have the suggestion of "reverse_overlay" the opposite of "overlay" puts the emulated image over the host image. this would be good for effects that are on the buttons.
that what is possible for the "host_controls" is also possible for the "default_host_controls"?
I am really looking forward to it, thank you