Question by 
               $$anonymous$$ · Jan 31, 2017 at 02:03 AM · 
                scriptingbasicsguistyleguiskin  
              
 
              What ways could I implement global style settings?
I have several types of onscreen messages that get used many times in my game. I'd like to have a single location where the style for these messages is set. I was thinking I could use a static class with members like so:
 //fonts
 static const string warningFont = Arial;
 static const string calloutFont = Courier New;
 //font sizes
 static const int warningFontSize = 12;
 static const int calloutFontSize = 10;
 
 //etc...
... and script things at runtime somehow. That way I could try different looks quickly. I read the manual on the GUISkin, which seems kind of like this, but has a ton of stuff I won't use and is missing a way to differentiate multiple categories of text without loading a new skin for each. Is that right?
I'm assuming there is a common approach to this I could learn from. Is there an accepted practice or something popular at least?
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
When to use a namespace? 2 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                