mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-17 13:01:42 +00:00
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,
|
||||
OptionTimeoutContext,
|
||||
OptionTimeoutContextHtml,
|
||||
OptionMonospaceFont,
|
||||
NumSystemOptions
|
||||
};
|
||||
|
||||
|
|
|
@ -3170,6 +3170,7 @@ namespace NLGUI
|
|||
_SystemOptions[OptionTimeoutMessages]= opt->getValue("messages_timeout");
|
||||
_SystemOptions[OptionTimeoutContext]= opt->getValue("context_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" /> -->
|
||||
<param name="font"
|
||||
value="ryzom.ttf" />
|
||||
<param name="monospace_font"
|
||||
value="ryzom_monospace.ttf" />
|
||||
<param name="add_coef_font"
|
||||
value="1" />
|
||||
<param name="mul_coef_anim"
|
||||
|
|
|
@ -838,6 +838,8 @@ This MUST follow the Enum MISSION_DESC::TIconId
|
|||
value="basic.ttf" /> -->
|
||||
<param name="font"
|
||||
value="ryzom.ttf" />
|
||||
<param name="monospace_font"
|
||||
value="ryzom_monospace.ttf" />
|
||||
<param name="add_coef_font"
|
||||
value="3" />
|
||||
<param name="mul_coef_anim"
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
value="basic.ttf" /> -->
|
||||
<param name="font"
|
||||
value="ryzom.ttf" />
|
||||
<param name="monospace_font"
|
||||
value="ryzom_monospace.ttf" />
|
||||
<param name="add_coef_font"
|
||||
value="0" />
|
||||
<param name="mul_coef_anim"
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
value="outgame.ttf" /> -->
|
||||
<param name="font"
|
||||
value="ryzom.ttf" />
|
||||
<param name="monospace_font"
|
||||
value="ryzom_monospace.ttf" />
|
||||
<param name="add_coef_font"
|
||||
value="3" />
|
||||
<param name="mul_coef_anim"
|
||||
|
|
|
@ -1572,6 +1572,10 @@ void CInterfaceManager::setupOptions()
|
|||
if ((!sFont.empty()) && (Driver != NULL))
|
||||
resetTextContext(sFont.c_str(), true);
|
||||
// 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