PhaserEditor2D / PhaserEditor2D-v3

A web-based IDE for HTML5 game development. Powered by Phaser.
https://phasereditor2d.com
MIT License
436 stars 62 forks source link

Custom property editor for UserComponent, like input fields for vector2 etc, and more #120

Open gon777 opened 3 years ago

gon777 commented 3 years ago

Dear PhaserEditor2D devs, hi!

In user component, it might be good if we could add properties like vector2, like image

or, it feels more convenient if we are allowed to add more generic properties like objects with {min: value, max:value} or {start:value, end:value, ease:value}

or even better, a fully customized editor window for custom data

PhaserEditor2D commented 3 years ago

Hi @gon777

I think I can develop a custom Vector2 editor. But a general custom editor requires you to create an extension. I will implement the Vector2 editor, and I will think about the extension for a custom editor.

gon777 commented 3 years ago

could you also create editors for some common config objects used in tween and particles, like {min, max} / {start, end} = {float, float} {start, end, ease} = {float, float, ease string} {start, end, steps}/{min, max, steps}/{start, from, to} = {float ,float , float}

That would be really helpful

PhaserEditor2D commented 3 years ago

Well.. but those are not general enough. You can create separate properties for it. Even, for the easee property, you can use the Option type.