Child widget buttons not working within switcher
I have been learning how to use UE4 and after following Titanic Games RPG tutorial series have begun adding to/rebuilding some of the systems he sets up. In this case I want to create a single window that opens with tabs at the top to switch between various elements the player can use (inventory/skill tree/journal etc.) It seems that the widget switcher is just what I need.
I have 2 widgets, UI_Inventory that populates a uniform grid with another widget (UI_Inventoryslot) which is basically a button with a variable that on creation holds the item info passed to it from the UI_Inventory and on clicked enables a use/drop button in the UI_Inventory and sends the item info back. The other is UI_Equipment and works in a similar way, it creates child widgets from UI_Equipmentslot which hold the item info and on clicked simply clear themselves and pass the item info that was there on.
The Problem, These two widgets were built so that they could be added/removed from the screen separately with their own buttons and work perfectly well as such. I have created a new widget with a panel at the top for the buttons and another below it with a switcher but when I add my UI_Inventory to the switcher it shows up fine and the item buttons within update as they should but when I click them they do nothing, they show that they are being clicked (the tint is different on hovered and on clicked) but the functions aren't firing (the use button doesn't get enabled) so I cannot use them. same for the equipment the buttons show I'm clicking but don't actually do anything.
I'm probably missing something simple here but not sure what.
asked Aug 19 '17 at 09:40 AM in Blueprint Scripting
Follow this question
Once you sign in you will be able to subscribe for any updates here