mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
define owned colours in settings.cfg
This commit is contained in:
parent
cbc44b33ba
commit
a5b4e087c5
4 changed files with 19 additions and 5 deletions
|
@ -1096,10 +1096,21 @@ namespace MWGui
|
|||
{
|
||||
std::string tag(_tag);
|
||||
|
||||
std::string MyGuiPrefix = "setting=";
|
||||
size_t MyGuiPrefixLength = MyGuiPrefix.length();
|
||||
|
||||
std::string tokenToFind = "sCell=";
|
||||
size_t tokenLength = tokenToFind.length();
|
||||
|
||||
if (tag.compare(0, tokenLength, tokenToFind) == 0)
|
||||
if(tag.compare(0, MyGuiPrefixLength, MyGuiPrefix) == 0)
|
||||
{
|
||||
tag = tag.substr(MyGuiPrefixLength, tag.length());
|
||||
std::string settingSection = tag.substr(0, tag.find(","));
|
||||
std::string settingTag = tag.substr(tag.find(",")+1, tag.length());
|
||||
|
||||
_result = Settings::Manager::getString(settingTag, settingSection);
|
||||
}
|
||||
else if (tag.compare(0, tokenLength, tokenToFind) == 0)
|
||||
{
|
||||
_result = mTranslationDataStorage.translateCellName(tag.substr(tokenLength));
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
|
||||
<!-- Defines owned crosshair color -->
|
||||
<Resource type="ResourceSkin" name="HUD_Crosshair_Owned" size="32 32" texture="textures\target.dds">
|
||||
<Property key="Colour" value="0.9 0 0 1"/>
|
||||
<Property key="Colour" value="#{setting=GUI,color crosshair owned}"/>
|
||||
<BasisSkin type="MainSkin" offset="0 0 32 32">
|
||||
<State name="normal" offset="0 0 32 32"/>
|
||||
</BasisSkin>
|
||||
|
|
|
@ -131,8 +131,7 @@
|
|||
|
||||
<!-- Defines a owned background -->
|
||||
<Resource type="ResourceSkin" name="DialogBG_Owned" size="8 8" texture="white">
|
||||
<Property key="Colour" value="0.2 0 0 1"/>
|
||||
<!-- <Property key="Colour" value="#{setting=GUI,color background owned}"/> -->
|
||||
<Property key="Colour" value="#{setting=GUI,color background owned}"/>
|
||||
<BasisSkin type="MainSkin" offset="0 0 8 8">
|
||||
<State name="normal" offset="0 0 8 8"/>
|
||||
</BasisSkin>
|
||||
|
|
|
@ -36,6 +36,10 @@ werewolf overlay = true
|
|||
|
||||
stretch menu background = false
|
||||
|
||||
# colour definitions (red green blue alpha)
|
||||
color background owned = 0.15 0 0 1
|
||||
color crosshair owned = 1 0.15 0.15 1
|
||||
|
||||
[General]
|
||||
# Camera field of view
|
||||
field of view = 55
|
||||
|
|
Loading…
Reference in a new issue