Updownquark / Quick

Quark's User Interface Creation Kit
0 stars 0 forks source link

Rearchitect Textures #20

Closed Updownquark closed 11 years ago

Updownquark commented 12 years ago

Textures have a problem right now that you can only have one. What if someone decides that when a component is focused, it should have a glow to it. You shouldn't have to do something programmatic so that the glow texture first calls a wrapped texture. You should just be able to set a style attribute and the glow would be called after the base texture.

Could be a comma- or whatever- separated list of items that are parsed by another style attribute type.

Perhaps think of a way to make overrides of list styles add to or modify the list. Might be too complicated.

Textures should be lists this way. The base texture needs to be moved back into MuisElement.paintSelf and the list of textures style would draw on top of the background, respecting the background style attributes.

Updownquark commented 11 years ago

I'm thinking that if someone wants to do something like the above, they can make a texture that wraps another one and performs its own effect after the wrapped texture draws. Don't think it's worth coding this for. If I change my mind I'll reopen.