Forums

OverviewV-Play 1 SupportAdjust EntityBaseDraggable properties with ItemEditor › Reply To: Adjust EntityBaseDraggable properties with ItemEditor

OverviewV-Play 1 SupportAdjust EntityBaseDraggable properties with ItemEditor › Reply To: Adjust EntityBaseDraggable properties with ItemEditor
#5334

Martin

Ok, thanks. We think this is an important feature. The ItemEditor is otherwise of rather limited use which would be a pity.

As mentioned above, as a workaround I use a proxy Item which propagates property values to the currently selected level entity.

        Item {
            id: platformItem
            property int rotation: 0
            property real length: 1
            EditableComponent {
                editableType: "platform"
                properties: {
                    "rotation": {"min":0, "max":360, "stepsize": 10},
                    "length": {"min":0, "max":10, "stepsize": 0.5}
                }
            }
            onRotationChanged: itemEditor.currentEntityObject.rotation = rotation
            // etc.
        }

This seems to work fine. However, when a different entity is selected, the values in the ItemEditor should correspond to the actual values of the entity. It is unfortunately not clear to me how to do this since there does not seem to be a binding between the Item with the EditableComponent and the ItemEditor. Simply changing platformItem.rotation won’t change the respective ItemEditor value. Can this be achieved somehow? Otherwise: could you add the functionality? Additionally it would be good if one could disable the type display/selection at the top of the ItemEditor.

Cheers, Martin

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support