mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-11-04 05:26:41 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
#include "textcolours.hpp"
 | 
						|
 | 
						|
#include <MyGUI_LanguageManager.h>
 | 
						|
 | 
						|
#include <string>
 | 
						|
 | 
						|
namespace MWGui
 | 
						|
{
 | 
						|
    MyGUI::Colour getTextColour(const std::string& type)
 | 
						|
    {
 | 
						|
        return MyGUI::Colour::parse(MyGUI::LanguageManager::getInstance().replaceTags("#{fontcolour=" + type + "}"));
 | 
						|
    }
 | 
						|
 | 
						|
    void TextColours::loadColours()
 | 
						|
    {
 | 
						|
        header = getTextColour("header");
 | 
						|
        normal = getTextColour("normal");
 | 
						|
        notify = getTextColour("notify");
 | 
						|
 | 
						|
        link = getTextColour("link");
 | 
						|
        linkOver = getTextColour("link_over");
 | 
						|
        linkPressed = getTextColour("link_pressed");
 | 
						|
 | 
						|
        answer = getTextColour("answer");
 | 
						|
        answerOver = getTextColour("answer_over");
 | 
						|
        answerPressed = getTextColour("answer_pressed");
 | 
						|
 | 
						|
        journalLink = getTextColour("journal_link");
 | 
						|
        journalLinkOver = getTextColour("journal_link_over");
 | 
						|
        journalLinkPressed = getTextColour("journal_link_pressed");
 | 
						|
 | 
						|
        journalTopic = getTextColour("journal_topic");
 | 
						|
        journalTopicOver = getTextColour("journal_topic_over");
 | 
						|
        journalTopicPressed = getTextColour("journal_topic_pressed");
 | 
						|
    }
 | 
						|
}
 |