Majic-Jungle / sapiens-mod-creation

Official tools and examples for mod creation in the game Sapiens
MIT License
54 stars 12 forks source link

Exposing `actionUI.lua` #4

Closed SirLich closed 1 year ago

SirLich commented 2 years ago

It's a little tricky for me to know what I need exposed, but at a minimum I need selectedObjects and selectedVertInfos. It's possible I can make this work with actionUI:showObjects... but I'm not sure.

Having show and hide and init exposed give me good lifecycle hooks. Just capturing the state is tricky.

The goal is to create a 'UI Slot' to the side of the Radial UI, which will be hidden/shown alongside the Radial UI, and receive context information so that buttons can be rendered based on the currently selected object. Mods will be able to register UI views which will be displayed in this slot.

Example uses for this slot:

image

mjdave commented 1 year ago

fixed b21