mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-14 06:40:40 +00:00
referencing settings.cfg and settings-default.cfg. These settings work similarly to the color references found in openmw.cfg and Morrowind.ini. Changes include: Removal of deprecated settings: color topic specific color topic exhausted Addition of six new color settings to settings.cfg and settings-default.cfg Updated description in settings-default.cfg to reflect the new color format
45 lines
1.4 KiB
C++
45 lines
1.4 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");
|
|
|
|
specific = getTextColour("specific");
|
|
specificOver = getTextColour("specific_over");
|
|
specificPressed = getTextColour("specific_pressed");
|
|
|
|
exhausted = getTextColour("exhausted");
|
|
exhaustedOver = getTextColour("exhausted_over");
|
|
exhaustedPressed = getTextColour("exhausted_pressed");
|
|
}
|
|
}
|