Open eugeneloza opened 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.
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"?