Menu selection draft

Hi

I made a menu sample with button animations for the item selection. It works like a cross connection table.

I will use this for the game input device management, but this can use for something else too.

Just replace the current Dev 1-4 with six different swords, shields, armors and helmets to assign to your character(functions) etc.

.

Attachments

GIDM_demo.blend (246 KB)


Hi

Good work!, I wish there was some colour frame around the lastly selected device.

Btw, where is the code that fires after clicking one of device planes?, cause I can not figure it out.

Good idea.

The ‘mouse_load_dev.py’ script fires every time you click mouse left button. The script checks if the underneath object has a property name ‘da’ or ‘ga’.

In case of the ‘da’, the given device-object ‘da’ property value is copied to the gidmenu-object’s ‘data’ property.

In case of the ‘ga’, the given function-object ‘ga’ property is getting the gidmenu-object’s ‘data’ property value.

The code is independent and new device and function objects can add dynamically.