Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
0
Members

Does "customizable properties" do enums yet?

A topic by JTE created Feb 11, 2017 Views: 462 Replies: 1
Viewing posts 1 to 2

In Superpowers Game, Scene editor, is there currently any way to make a customizable property which is a dropdown of named options, for example a list of acceptable strings or the possible values explicitly declared in an enum?

(3 edits)

Took me a bit to dig through the source code to find my answer. According to https://github.com/superpowers/superpowers-game/blob/v4.0.3/plugins/default/typescript/componentEditors/BehaviorEditor.ts#L206 the answer is...

No. Only boolean, number. string, and Vector2/3 are valid customizable property types the UI can display. The rest get silently dropped with a debug console error you can't see unless you open your browser console. (Can that even be done in Superpowers App?)

Disappointment.