forked from teamnwah/openmw-tes3coop
change daedric font to .zip resource
This commit is contained in:
parent
e5e8663bb4
commit
d69501b061
7 changed files with 13 additions and 5 deletions
|
@ -194,6 +194,12 @@ void OMW::Engine::addResourcesDirectory (const boost::filesystem::path& path)
|
||||||
Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, true);
|
Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void OMW::Engine::addZipResource (const boost::filesystem::path& path)
|
||||||
|
{
|
||||||
|
mOgre->getRoot()->addResourceLocation (path.string(), "Zip",
|
||||||
|
Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, false);
|
||||||
|
}
|
||||||
|
|
||||||
void OMW::Engine::enableFSStrict(bool fsStrict)
|
void OMW::Engine::enableFSStrict(bool fsStrict)
|
||||||
{
|
{
|
||||||
mFSStrict = fsStrict;
|
mFSStrict = fsStrict;
|
||||||
|
@ -314,6 +320,7 @@ void OMW::Engine::go()
|
||||||
addResourcesDirectory(mResDir / "water");
|
addResourcesDirectory(mResDir / "water");
|
||||||
addResourcesDirectory(mResDir / "gbuffer");
|
addResourcesDirectory(mResDir / "gbuffer");
|
||||||
addResourcesDirectory(mResDir / "shadows");
|
addResourcesDirectory(mResDir / "shadows");
|
||||||
|
addZipResource(mResDir / "mygui" / "Obliviontt.zip");
|
||||||
|
|
||||||
// Create the window
|
// Create the window
|
||||||
mOgre->createWindow("OpenMW");
|
mOgre->createWindow("OpenMW");
|
||||||
|
|
|
@ -91,9 +91,11 @@ namespace OMW
|
||||||
|
|
||||||
/// add resources directory
|
/// add resources directory
|
||||||
/// \note This function works recursively.
|
/// \note This function works recursively.
|
||||||
|
|
||||||
void addResourcesDirectory (const boost::filesystem::path& path);
|
void addResourcesDirectory (const boost::filesystem::path& path);
|
||||||
|
|
||||||
|
/// add a .zip resource
|
||||||
|
void addZipResource (const boost::filesystem::path& path);
|
||||||
|
|
||||||
/// Load all BSA files in data directory.
|
/// Load all BSA files in data directory.
|
||||||
void loadBSA();
|
void loadBSA();
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,5 @@ configure_file("${SDIR}/atlas1.cfg" "${DDIR}/atlas1.cfg" COPYONLY)
|
||||||
configure_file("${SDIR}/smallbars.png" "${DDIR}/smallbars.png" COPYONLY)
|
configure_file("${SDIR}/smallbars.png" "${DDIR}/smallbars.png" COPYONLY)
|
||||||
configure_file("${SDIR}/transparent.png" "${DDIR}/transparent.png" COPYONLY)
|
configure_file("${SDIR}/transparent.png" "${DDIR}/transparent.png" COPYONLY)
|
||||||
configure_file("${SDIR}/EBGaramond-Regular.ttf" "${DDIR}/EBGaramond-Regular.ttf" COPYONLY)
|
configure_file("${SDIR}/EBGaramond-Regular.ttf" "${DDIR}/EBGaramond-Regular.ttf" COPYONLY)
|
||||||
configure_file("${SDIR}/Oblivion Worn.ttf" "${DDIR}/Oblivion Worn.ttf" COPYONLY)
|
configure_file("${SDIR}/Obliviontt.zip" "${DDIR}/Obliviontt.zip" COPYONLY)
|
||||||
configure_file("${SDIR}/Oblivion.ttf" "${DDIR}/Oblivion.ttf" COPYONLY)
|
|
||||||
configure_file("${SDIR}/VeraMono.ttf" "${DDIR}/VeraMono.ttf" COPYONLY)
|
configure_file("${SDIR}/VeraMono.ttf" "${DDIR}/VeraMono.ttf" COPYONLY)
|
||||||
|
|
Binary file not shown.
Binary file not shown.
BIN
files/mygui/Obliviontt.zip
Normal file
BIN
files/mygui/Obliviontt.zip
Normal file
Binary file not shown.
|
@ -20,8 +20,8 @@
|
||||||
</Resource>
|
</Resource>
|
||||||
|
|
||||||
<Resource type="ResourceTrueTypeFont" name="Daedric">
|
<Resource type="ResourceTrueTypeFont" name="Daedric">
|
||||||
<!--<Property key="Source" value="Oblivion Worn.ttf"/>-->
|
<!--<Property key="Source" value="Oblivion/Oblivion Worn.ttf"/>-->
|
||||||
<Property key="Source" value="Oblivion.ttf"/>
|
<Property key="Source" value="Oblivion/Oblivion.ttf"/>
|
||||||
<Property key="Size" value="24"/>
|
<Property key="Size" value="24"/>
|
||||||
<Property key="Resolution" value="72"/>
|
<Property key="Resolution" value="72"/>
|
||||||
<Property key="Antialias" value="false"/>
|
<Property key="Antialias" value="false"/>
|
||||||
|
|
Loading…
Reference in a new issue