Dropdown selection for Platform type action
In the "Platform type" action, the 3 possible types should be selectable in a dropdown instead of having to write the full words.
- [ ] Add a dropdown menu for the Platform type action
@jack-ii Thanks for the feedback! I agree; it should be a drop-down selection.
I'll try to see if I can do this by copying an action of a similar behavior.
I did a quick search but could not find any Extension.cpp that uses a drop-down input selection.
It's possible there is no existing interface built for C++ extensions, or did I miss one?
I did a quick search but could not find any Extension.cpp that uses a drop-down input selection. It's possible there is no existing interface built for C++ extensions, or did I miss one?
Take a look a these lines: https://github.com/4ian/GDevelop/blob/555ee61e635eec53ff1df869b7dd9f5fb2d5e764/Core/GDCore/Extensions/Builtin/NetworkExtension.cpp#L79
If you don't find in C++ take a look at the Javascript implementation which is very close of the C++:
Here what it looks in JS https://github.com/4ian/GDevelop/blob/master/Extensions/TweenBehavior/JsExtension.js#L83C7-L83C77