eugeneloza / decoherence

Project moved to https://gitlab.com/EugeneLoza/decoherence
GNU General Public License v3.0
10 stars 7 forks source link

Extended Label #280

Open eugeneloza opened 7 years ago

eugeneloza commented 7 years ago

Make 2(3) items in DFont for possible multi-style labels (e.g. tutorials, some in-game info/wiki). I.e. like DFont.Regular, DFont.Italic, DFont.Emph. Also make some in-text "commands/scripts" for that. See also #24 Maybe, make this only for "extended label"?

eugeneloza commented 7 years ago

Yes, this looks like a DExtendedLabel class. I.e. a label where each word is processed separately. Also will handle #195 - speed is not of essence here. This way we'll keep labels very fast, and extended labels will process each word separately and will have multiple fonts/colors for output. Drawback is that render procedures should be rewritten "twice", but that's not a big problem.