GDevelop icon indicating copy to clipboard operation
GDevelop copied to clipboard

Dropdown selection for Platform type action

Open jack-ii opened this issue 1 year ago • 3 comments

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

5

jack-ii avatar Jun 20 '24 10:06 jack-ii

@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.

tristanbob avatar Jun 26 '24 19:06 tristanbob

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?

tristanbob avatar Jun 27 '24 06:06 tristanbob

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

image

Bouh avatar Jun 27 '24 12:06 Bouh