Added: Monospace font options
This commit is contained in:
parent
df7cc78791
commit
ef645bfa21
7 changed files with 14 additions and 0 deletions
|
@ -442,6 +442,7 @@ namespace NLGUI
|
||||||
OptionTimeoutMessages,
|
OptionTimeoutMessages,
|
||||||
OptionTimeoutContext,
|
OptionTimeoutContext,
|
||||||
OptionTimeoutContextHtml,
|
OptionTimeoutContextHtml,
|
||||||
|
OptionMonospaceFont,
|
||||||
NumSystemOptions
|
NumSystemOptions
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -3170,6 +3170,7 @@ namespace NLGUI
|
||||||
_SystemOptions[OptionTimeoutMessages]= opt->getValue("messages_timeout");
|
_SystemOptions[OptionTimeoutMessages]= opt->getValue("messages_timeout");
|
||||||
_SystemOptions[OptionTimeoutContext]= opt->getValue("context_timeout");
|
_SystemOptions[OptionTimeoutContext]= opt->getValue("context_timeout");
|
||||||
_SystemOptions[OptionTimeoutContextHtml]= opt->getValue("context_html_timeout");
|
_SystemOptions[OptionTimeoutContextHtml]= opt->getValue("context_html_timeout");
|
||||||
|
_SystemOptions[OptionMonospaceFont]= opt->getValue("monospace_font");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1916,6 +1916,8 @@ This MUST follow the Enum MISSION_DESC::TIconId
|
||||||
value="basic.ttf" /> -->
|
value="basic.ttf" /> -->
|
||||||
<param name="font"
|
<param name="font"
|
||||||
value="ryzom.ttf" />
|
value="ryzom.ttf" />
|
||||||
|
<param name="monospace_font"
|
||||||
|
value="ryzom_monospace.ttf" />
|
||||||
<param name="add_coef_font"
|
<param name="add_coef_font"
|
||||||
value="1" />
|
value="1" />
|
||||||
<param name="mul_coef_anim"
|
<param name="mul_coef_anim"
|
||||||
|
|
|
@ -838,6 +838,8 @@ This MUST follow the Enum MISSION_DESC::TIconId
|
||||||
value="basic.ttf" /> -->
|
value="basic.ttf" /> -->
|
||||||
<param name="font"
|
<param name="font"
|
||||||
value="ryzom.ttf" />
|
value="ryzom.ttf" />
|
||||||
|
<param name="monospace_font"
|
||||||
|
value="ryzom_monospace.ttf" />
|
||||||
<param name="add_coef_font"
|
<param name="add_coef_font"
|
||||||
value="3" />
|
value="3" />
|
||||||
<param name="mul_coef_anim"
|
<param name="mul_coef_anim"
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
value="basic.ttf" /> -->
|
value="basic.ttf" /> -->
|
||||||
<param name="font"
|
<param name="font"
|
||||||
value="ryzom.ttf" />
|
value="ryzom.ttf" />
|
||||||
|
<param name="monospace_font"
|
||||||
|
value="ryzom_monospace.ttf" />
|
||||||
<param name="add_coef_font"
|
<param name="add_coef_font"
|
||||||
value="0" />
|
value="0" />
|
||||||
<param name="mul_coef_anim"
|
<param name="mul_coef_anim"
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
value="outgame.ttf" /> -->
|
value="outgame.ttf" /> -->
|
||||||
<param name="font"
|
<param name="font"
|
||||||
value="ryzom.ttf" />
|
value="ryzom.ttf" />
|
||||||
|
<param name="monospace_font"
|
||||||
|
value="ryzom_monospace.ttf" />
|
||||||
<param name="add_coef_font"
|
<param name="add_coef_font"
|
||||||
value="3" />
|
value="3" />
|
||||||
<param name="mul_coef_anim"
|
<param name="mul_coef_anim"
|
||||||
|
|
|
@ -1572,6 +1572,10 @@ void CInterfaceManager::setupOptions()
|
||||||
if ((!sFont.empty()) && (Driver != NULL))
|
if ((!sFont.empty()) && (Driver != NULL))
|
||||||
resetTextContext(sFont.c_str(), true);
|
resetTextContext(sFont.c_str(), true);
|
||||||
// Continue to parse the rest of the interface
|
// Continue to parse the rest of the interface
|
||||||
|
|
||||||
|
sFont = wm->getSystemOption (CWidgetManager::OptionMonospaceFont).getValStr();
|
||||||
|
if ((!sFont.empty()) && (Driver != NULL))
|
||||||
|
CViewRenderer::registerFont("monospace", sFont);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue