Construct 3 suggestions & ideas

Suggest and vote on ideas for Construct 3! Please note this is only one aspect of planning. We do not guarantee any features here will be implemented, even if they are top-voted ideas. The aim is just to collect feedback. Remember to search for existing submissions before adding an idea, describe your ideas as comprehensively as possible, and vote for plausible ideas that are well thought out. Please see our full guidelines on suggesting features.

1 VOTE

Expose 9 Patch margin properties for query in expressions

It would be useful to query the left, right, top and bottom margins of a 9 patch object in cases where the object is being re-scaled to envelop another object. For example, if you have a picture frame that you want to resize to fit various sprite images, or if you have a custom UI element that uses the 9 patch to frame a progress bar. The 9 patch must be resized to take into account its own margins, but there is no way to see what the margins are at runtime. It would be handy to do something like this pseudo code: 9slice.Width = Object.Width+9slice.MarginLeft+9slice.MarginRight

Exposing these properties as read-only would prevent the need for magic numbers and redundant instance variables to store the margins.

  • Chris Crawford
  • Oct 12 2017
  • No status
  • Attach files