UPBGE / upbge

UPBGE, the best integrated game engine in Blender
https://upbge.org
Other
1.43k stars 180 forks source link

Python Component UI Improvements #747

Open UnidayStudio opened 6 years ago

UnidayStudio commented 6 years ago

Main proposal:

I'd like to propose two improvements to the Python Components UI that will help a lot from the user's perspective. The components, in the way it is now, serves its purposes (logically thinking), but I think that it can be better in the user point of view.

Other proposals to discuss:

And I'd like to put another suggestions on the table to discuss about them (if it's viable, better, worst, etc):

Thanks! :smile:

panzergame commented 6 years ago

Allow ranged values:

'name' : (0.0, (0.0, 1.0))
panzergame commented 6 years ago

Concerning automatic reload, I was comparing with how blender script are managing it, but anyway components are based on python modules and not script so the actual file providing the module is not reachable.

In consideration, the way showing up is the reload of the components at any file open as it's impossible to check if the component have to be reloaded or not and that keeping a component with an invalid module is going to fail at game start.

@UnidayStudio : What do you think ?