PhaserEditor2D-v3 icon indicating copy to clipboard operation
PhaserEditor2D-v3 copied to clipboard

Change the tint of the Image to BitmapText in one field

Open BenoitFreslon opened this issue 2 years ago • 1 comments

I will be cool if we can change the full color of a text and an image instead to change the 4 tints each time. image

BenoitFreslon avatar Mar 24 '22 13:03 BenoitFreslon

A single tint value complicates the whole thing. Look in the Phaser API, the tint property is write-only, it is just a helper property for setting the same value to all tint* properties.

Simulating a write-only property in Phaser Editor is complex because the way it serializes and code-generates the properties of prefab instances. I did try it, but it is not clean and breaks the general rules.

Maybe, I can add an option in the section's three-dots menu for setting the same value to all the tint properties taking as reference the Tint Top Left property's value. If it is the case of a prefab instance and there are locked tint properties, then it will ask for unlocking them or abort the operation.

What do you think?

PhaserEditor2D avatar Mar 27 '22 17:03 PhaserEditor2D