InverNessian / SafeguardsOfLeyto

For development of my game by the same name.
1 stars 0 forks source link

Equipping Functionality #18

Closed InverNessian closed 4 years ago

InverNessian commented 5 years ago

Because of the need to implement between-mission scenes to make further progress, I need to first implement a way to change, equip, and otherwise modify lists of Items and Talents.

InverNessian commented 5 years ago

I implemented Equip actions and triggers. The only thing is that I want the preview for it to be a GUI window. That will be my next item on the to-do list.

InverNessian commented 5 years ago

Began working on the GUI portion. The drag part was surprisingly easy! Just have a script implement IDraggable or whatnot. Might also need to implement IDrop or whatever.

The tricky part here is going to be having each menu item instantiated. Currently I have MenuController with a method that accepts a StatsManager object and then iterates on each of their item lists (weapons, accessories, inventory) to create an instance of the prefab.

This has shown me I may need to improve my handling of UI creation. I may not need a controller object at all; look into UltEvents to help manage this from the Editor.