This is what the properties box currenly looks like:
It's ugly, and there's a bug that when you click "Add" when there are already a few properties set, the new property appears in the bottom of the box, far a way from the last property, so you have to scroll down just in order to find it. And there are no up & down buttons for changing the order of the properties, which is important because sometimes you want a property initializer to reference the value of a previous one, like:
{ name: "maxSpeed", type: "number", value: "10" }
{ name: "currentSpeed", type: "number", value: "maxSpeed" }
So yeah, it really needs a re-design.
I'm not sure which WinForms control will be the best here, but I thought of what Visual Studio has, or at least had (I'm not sure if it still exists) in the WinForms settings designer:
(it's a screenshot i found in google, in the screenshot there's only 1 setting but it can have multiple).
A chart like this, with a text field for property name, a selection box (combo-box) for selecting property type, another text field for init value, and finally 3 checkboxes for const, private and nullable - might be the perfect UI. I'm not sure if this is a builtin control or something custom, but even if it's custom, I guess that for one who is familiar with the WinForms UI, it won't be a big problem to make something like this.
Anyway, this is just an idea, but if you have another UI idea in your mind, please discuss it here, maybe it's better than this.
The code of the current properties modifier control is in ArcadeMaker.IDE/Forms/Editors/Object/ObjectProperties, and the code of the object editor is in ArcadeMaker.IDE/Forms/Editors/Object/ObjectEditor.cs.
I'm here for any question!
This is what the properties box currenly looks like:
It's ugly, and there's a bug that when you click "Add" when there are already a few properties set, the new property appears in the bottom of the box, far a way from the last property, so you have to scroll down just in order to find it. And there are no up & down buttons for changing the order of the properties, which is important because sometimes you want a property initializer to reference the value of a previous one, like:
So yeah, it really needs a re-design.
I'm not sure which WinForms control will be the best here, but I thought of what Visual Studio has, or at least had (I'm not sure if it still exists) in the WinForms settings designer:
(it's a screenshot i found in google, in the screenshot there's only 1 setting but it can have multiple).
A chart like this, with a text field for property name, a selection box (combo-box) for selecting property type, another text field for init value, and finally 3 checkboxes for const, private and nullable - might be the perfect UI. I'm not sure if this is a builtin control or something custom, but even if it's custom, I guess that for one who is familiar with the WinForms UI, it won't be a big problem to make something like this.
Anyway, this is just an idea, but if you have another UI idea in your mind, please discuss it here, maybe it's better than this.
The code of the current properties modifier control is in ArcadeMaker.IDE/Forms/Editors/Object/ObjectProperties, and the code of the object editor is in ArcadeMaker.IDE/Forms/Editors/Object/ObjectEditor.cs.
I'm here for any question!