GuyInGrey / AptitudeEngine

A 2D based, new technology using, game engine in C#.
https://guyingrey.github.io/
MIT License
0 stars 0 forks source link

Flair UI Elements and FlairCanvas #15

Open dresswithpockets opened 7 years ago

dresswithpockets commented 7 years ago

What it is

a Flair is a UI element. Any text or sprite that is rendered in screen space and not world space should be a Flair object rendered via FlairRenderer.

Why?

It was named Flair because flair is a synonym for "Aptitude". Flair also has a connotation that applies to visual elements.

Some games or mechanics may have elements that don't move with the rest of the world and aren't intended to otherwise exist in the game's world space. Flair is intended to co-opt things like HUDs and menu systems.

How?

FlairCanvas

Handles its children's and n-children's components that derive from Flair.

Flair component.

Components that want to render something in screen space should fit two qualifications: