Skip to content

Commit

Permalink
Oculus settings
Browse files Browse the repository at this point in the history
  • Loading branch information
obviousjim committed Feb 19, 2015
1 parent a1fde41 commit 8c12d24
Show file tree
Hide file tree
Showing 12 changed files with 352 additions and 140 deletions.
52 changes: 26 additions & 26 deletions CLOUDS/CLOUDS.sln
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "openframeworksLib", "..\..\
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ofxTimelineLib", "..\..\..\addons\ofxTimeline\ofxTimelineLib\ofxTimelineLib.vcxproj", "{A72C4F16-CB16-4143-BA5C-5E4FA802D636}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ofxUILib", "..\..\..\addons\ofxUI\ofxUILib\ofxUILib.vcxproj", "{641DB976-E775-4D72-86EB-897E2C4A0EEE}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ofxTonicLib", "..\..\..\addons\ofxTonic\ofxTonicLib\ofxTonicLib.vcxproj", "{E93BD96C-A459-499F-840D-29B0166CBFF7}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CLOUDS", "CLOUDS.vcxproj", "{7FD42DF7-442E-479A-BA76-D0022F99702A}"
Expand All @@ -20,6 +18,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "StoryEngine", "..\libStoryE
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "RGBD", "..\libRGBD\RGBD.vcxproj", "{103DE523-23AF-4AF7-8020-52D03955F40F}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ofxUILib", "..\..\..\addons\ofxUI\ofxUILib\ofxUILib.vcxproj", "{641DB976-E775-4D72-86EB-897E2C4A0EEE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug_Oculus|Win32 = Debug_Oculus|Win32
Expand Down Expand Up @@ -64,22 +64,6 @@ Global
{A72C4F16-CB16-4143-BA5C-5E4FA802D636}.Release|Win32.Build.0 = Release|Win32
{A72C4F16-CB16-4143-BA5C-5E4FA802D636}.Release|x64.ActiveCfg = Release|x64
{A72C4F16-CB16-4143-BA5C-5E4FA802D636}.Release|x64.Build.0 = Release|x64
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Debug_Oculus|Win32.ActiveCfg = Debug|Win32
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Debug_Oculus|Win32.Build.0 = Debug|Win32
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Debug_Oculus|x64.ActiveCfg = Debug|x64
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Debug_Oculus|x64.Build.0 = Debug|x64
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Debug|Win32.ActiveCfg = Debug|Win32
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Debug|Win32.Build.0 = Debug|Win32
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Debug|x64.ActiveCfg = Debug|x64
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Debug|x64.Build.0 = Debug|x64
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Release_Oculus|Win32.ActiveCfg = Release|Win32
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Release_Oculus|Win32.Build.0 = Release|Win32
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Release_Oculus|x64.ActiveCfg = Release|x64
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Release_Oculus|x64.Build.0 = Release|x64
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Release|Win32.ActiveCfg = Release|Win32
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Release|Win32.Build.0 = Release|Win32
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Release|x64.ActiveCfg = Release|x64
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Release|x64.Build.0 = Release|x64
{E93BD96C-A459-499F-840D-29B0166CBFF7}.Debug_Oculus|Win32.ActiveCfg = Debug|Win32
{E93BD96C-A459-499F-840D-29B0166CBFF7}.Debug_Oculus|Win32.Build.0 = Debug|Win32
{E93BD96C-A459-499F-840D-29B0166CBFF7}.Debug_Oculus|x64.ActiveCfg = Debug|x64
Expand Down Expand Up @@ -146,16 +130,16 @@ Global
{06DF4A39-7102-462B-8F20-FC26E9A93826}.Release|x64.Build.0 = Release|x64
{7830DD8A-73EA-4EFA-8642-9CDE1E8847FC}.Debug_Oculus|Win32.ActiveCfg = Debug|Win32
{7830DD8A-73EA-4EFA-8642-9CDE1E8847FC}.Debug_Oculus|Win32.Build.0 = Debug|Win32
{7830DD8A-73EA-4EFA-8642-9CDE1E8847FC}.Debug_Oculus|x64.ActiveCfg = Debug|x64
{7830DD8A-73EA-4EFA-8642-9CDE1E8847FC}.Debug_Oculus|x64.Build.0 = Debug|x64
{7830DD8A-73EA-4EFA-8642-9CDE1E8847FC}.Debug_Oculus|x64.ActiveCfg = Debug_Oculus|x64
{7830DD8A-73EA-4EFA-8642-9CDE1E8847FC}.Debug_Oculus|x64.Build.0 = Debug_Oculus|x64
{7830DD8A-73EA-4EFA-8642-9CDE1E8847FC}.Debug|Win32.ActiveCfg = Debug|Win32
{7830DD8A-73EA-4EFA-8642-9CDE1E8847FC}.Debug|Win32.Build.0 = Debug|Win32
{7830DD8A-73EA-4EFA-8642-9CDE1E8847FC}.Debug|x64.ActiveCfg = Debug|x64
{7830DD8A-73EA-4EFA-8642-9CDE1E8847FC}.Debug|x64.Build.0 = Debug|x64
{7830DD8A-73EA-4EFA-8642-9CDE1E8847FC}.Release_Oculus|Win32.ActiveCfg = Release|Win32
{7830DD8A-73EA-4EFA-8642-9CDE1E8847FC}.Release_Oculus|Win32.Build.0 = Release|Win32
{7830DD8A-73EA-4EFA-8642-9CDE1E8847FC}.Release_Oculus|x64.ActiveCfg = Release|x64
{7830DD8A-73EA-4EFA-8642-9CDE1E8847FC}.Release_Oculus|x64.Build.0 = Release|x64
{7830DD8A-73EA-4EFA-8642-9CDE1E8847FC}.Release_Oculus|x64.ActiveCfg = Release_Oculus|x64
{7830DD8A-73EA-4EFA-8642-9CDE1E8847FC}.Release_Oculus|x64.Build.0 = Release_Oculus|x64
{7830DD8A-73EA-4EFA-8642-9CDE1E8847FC}.Release|Win32.ActiveCfg = Release|Win32
{7830DD8A-73EA-4EFA-8642-9CDE1E8847FC}.Release|Win32.Build.0 = Release|Win32
{7830DD8A-73EA-4EFA-8642-9CDE1E8847FC}.Release|x64.ActiveCfg = Release|x64
Expand All @@ -178,20 +162,36 @@ Global
{5999D394-4A43-4E21-85EA-27248B72E4BD}.Release|x64.Build.0 = Release|x64
{103DE523-23AF-4AF7-8020-52D03955F40F}.Debug_Oculus|Win32.ActiveCfg = Debug|Win32
{103DE523-23AF-4AF7-8020-52D03955F40F}.Debug_Oculus|Win32.Build.0 = Debug|Win32
{103DE523-23AF-4AF7-8020-52D03955F40F}.Debug_Oculus|x64.ActiveCfg = Debug|x64
{103DE523-23AF-4AF7-8020-52D03955F40F}.Debug_Oculus|x64.Build.0 = Debug|x64
{103DE523-23AF-4AF7-8020-52D03955F40F}.Debug_Oculus|x64.ActiveCfg = Debug_Oculus|x64
{103DE523-23AF-4AF7-8020-52D03955F40F}.Debug_Oculus|x64.Build.0 = Debug_Oculus|x64
{103DE523-23AF-4AF7-8020-52D03955F40F}.Debug|Win32.ActiveCfg = Debug|Win32
{103DE523-23AF-4AF7-8020-52D03955F40F}.Debug|Win32.Build.0 = Debug|Win32
{103DE523-23AF-4AF7-8020-52D03955F40F}.Debug|x64.ActiveCfg = Debug|x64
{103DE523-23AF-4AF7-8020-52D03955F40F}.Debug|x64.Build.0 = Debug|x64
{103DE523-23AF-4AF7-8020-52D03955F40F}.Release_Oculus|Win32.ActiveCfg = Release|Win32
{103DE523-23AF-4AF7-8020-52D03955F40F}.Release_Oculus|Win32.Build.0 = Release|Win32
{103DE523-23AF-4AF7-8020-52D03955F40F}.Release_Oculus|x64.ActiveCfg = Release|x64
{103DE523-23AF-4AF7-8020-52D03955F40F}.Release_Oculus|x64.Build.0 = Release|x64
{103DE523-23AF-4AF7-8020-52D03955F40F}.Release_Oculus|x64.ActiveCfg = Release_Oculus|x64
{103DE523-23AF-4AF7-8020-52D03955F40F}.Release_Oculus|x64.Build.0 = Release_Oculus|x64
{103DE523-23AF-4AF7-8020-52D03955F40F}.Release|Win32.ActiveCfg = Release|Win32
{103DE523-23AF-4AF7-8020-52D03955F40F}.Release|Win32.Build.0 = Release|Win32
{103DE523-23AF-4AF7-8020-52D03955F40F}.Release|x64.ActiveCfg = Release|x64
{103DE523-23AF-4AF7-8020-52D03955F40F}.Release|x64.Build.0 = Release|x64
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Debug_Oculus|Win32.ActiveCfg = Debug|Win32
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Debug_Oculus|Win32.Build.0 = Debug|Win32
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Debug_Oculus|x64.ActiveCfg = Debug|x64
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Debug_Oculus|x64.Build.0 = Debug|x64
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Debug|Win32.ActiveCfg = Debug|Win32
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Debug|Win32.Build.0 = Debug|Win32
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Debug|x64.ActiveCfg = Debug|x64
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Debug|x64.Build.0 = Debug|x64
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Release_Oculus|Win32.ActiveCfg = Release|Win32
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Release_Oculus|Win32.Build.0 = Release|Win32
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Release_Oculus|x64.ActiveCfg = Release|x64
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Release_Oculus|x64.Build.0 = Release|x64
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Release|Win32.ActiveCfg = Release|Win32
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Release|Win32.Build.0 = Release|Win32
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Release|x64.ActiveCfg = Release|x64
{641DB976-E775-4D72-86EB-897E2C4A0EEE}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
8 changes: 4 additions & 4 deletions CLOUDS/CLOUDS.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -105,24 +105,24 @@
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="..\..\..\libs\openFrameworksCompiled\project\vs\openFrameworksRelease64.props" />
<Import Project="..\..\..\addons\ofxTimeline\ofxTimelineLib\ofxTimeline64.props" />
<Import Project="..\..\..\addons\ofxUI\ofxUILib\ofxUI.props" />
<Import Project="..\..\..\addons\ofxTonic\ofxTonicLib\ofxTonic.props" />
<Import Project="..\..\..\addons\ofxCv\ofxCvLib\ofxCv.props" />
<Import Project="..\libRGBD\RGBD.props" />
<Import Project="..\libStoryEngine\StoryEngine.props" />
<Import Project="..\libVisualSystemLibrary\VisualSystemsLibrary.props" />
<Import Project="..\..\..\addons\ofxUI\ofxUILib\ofxUI.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release_Oculus|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="..\..\..\libs\openFrameworksCompiled\project\vs\openFrameworksRelease64.props" />
<Import Project="..\..\..\addons\ofxTimeline\ofxTimelineLib\ofxTimeline64.props" />
<Import Project="..\..\..\addons\ofxUI\ofxUILib\ofxUI.props" />
<Import Project="..\..\..\addons\ofxTonic\ofxTonicLib\ofxTonic.props" />
<Import Project="..\..\..\addons\ofxCv\ofxCvLib\ofxCv.props" />
<Import Project="..\..\..\addons\ofxOculusDK2\ofxOculusDK2Lib\ofxOculusDK2.props" />
<Import Project="..\libRGBD\RGBD.props" />
<Import Project="..\libStoryEngine\StoryEngine.props" />
<Import Project="..\libVisualSystemLibrary\VisualSystemsLibrary.props" />
<Import Project="..\..\..\addons\ofxUI\ofxUILib\ofxUI.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
Expand All @@ -145,24 +145,24 @@
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="..\..\..\libs\openFrameworksCompiled\project\vs\openFrameworksDebug64.props" />
<Import Project="..\..\..\addons\ofxTimeline\ofxTimelineLib\ofxTimeline64.props" />
<Import Project="..\..\..\addons\ofxUI\ofxUILib\ofxUI.props" />
<Import Project="..\..\..\addons\ofxTonic\ofxTonicLib\ofxTonic.props" />
<Import Project="..\..\..\addons\ofxCv\ofxCvLib\ofxCv.props" />
<Import Project="..\libRGBD\RGBD.props" />
<Import Project="..\libStoryEngine\StoryEngine.props" />
<Import Project="..\libVisualSystemLibrary\VisualSystemsLibrary.props" />
<Import Project="..\..\..\addons\ofxUI\ofxUILib\ofxUI.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug_Oculus|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="..\..\..\libs\openFrameworksCompiled\project\vs\openFrameworksDebug64.props" />
<Import Project="..\..\..\addons\ofxTimeline\ofxTimelineLib\ofxTimeline64.props" />
<Import Project="..\..\..\addons\ofxUI\ofxUILib\ofxUI.props" />
<Import Project="..\..\..\addons\ofxTonic\ofxTonicLib\ofxTonic.props" />
<Import Project="..\..\..\addons\ofxCv\ofxCvLib\ofxCv.props" />
<Import Project="..\..\..\addons\ofxOculusDK2\ofxOculusDK2Lib\ofxOculusDK2.props" />
<Import Project="..\libRGBD\RGBD.props" />
<Import Project="..\libStoryEngine\StoryEngine.props" />
<Import Project="..\libVisualSystemLibrary\VisualSystemsLibrary.props" />
<Import Project="..\..\..\addons\ofxUI\ofxUILib\ofxUI.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
Expand Down
7 changes: 7 additions & 0 deletions CLOUDS/src/testApp.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "testApp.h"
#include "CloudsGlobal.h"
#include "CloudsIntroSequence.h"

//--------------------------------------------------------------
void testApp::setup(){
Expand All @@ -9,6 +10,12 @@ void testApp::setup(){
ofBackground(0);
//ofToggleFullscreen();

cout << "*****LOAD STEP*** STARTING INTRO" << endl;
CloudsIntroSequence* introSequence;
introSequence = new CloudsIntroSequence();
introSequence->setup();
introSequence->setDrawToScreen(false);

#ifdef CLOUDS_RELEASE
ofHideCursor();
#endif
Expand Down
86 changes: 86 additions & 0 deletions CloudsLibrary/src/CloudsGlobal.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
//
// CloudsGlobal.h
// CloudsStoryEngine
//
// Created by James George on 7/11/13.
//
//

#pragma once

#include "ofMain.h"
#include "CloudsGlobal.h"

bool confirmedDataPath = false;
bool usingDevelopmentFolder = false;

//--------------------------------------------------------------------
string GetCloudsDataPath(bool ignored)
{
if(!confirmedDataPath){
usingDevelopmentFolder = ofDirectory("../../../CloudsData/").exists();
if(!usingDevelopmentFolder){
ofDirectory("CloudsData/").create();
}
confirmedDataPath = true;
}
return string(usingDevelopmentFolder ? "../../../" : "") + "CloudsData" + (ignored ? "_ignored" : "") + "/";
}

string GetCloudsVisualSystemDataPath(string systemName, bool ignoredFolder){
// building from src project file
string datapath;
if(ofDirectory("../../../CloudsData/").exists()){
datapath = string("../../../CloudsData") + (ignoredFolder ? "_ignored" : "") + "/visualsystems/" + systemName + "/";
}
// stand alone full app
else if(ofDirectory("CloudsData/").exists()){
datapath = string("CloudsData") + (ignoredFolder ? "_ignored" : "") + "/visualsystems/" + systemName + "/";
}
// stand alone single app
else{
datapath = "../../../data/";
}

return datapath;
}

//--------------------------------------------------------------------
string language = "ENGLISH";
bool languageSet = false;
string GetLanguage(){
if(!languageSet){
string languageFile = GetCloudsDataPath() + "language.txt";
if(ofFile(languageFile).exists()){
language = ofBufferFromFile(languageFile).getText();
}
languageSet = true;
}
return language;
}

//--------------------------------------------------------------------
string relinkFilePath(string filePath){

vector<string> drives;

drives.push_back("Seance");
drives.push_back("Nebula");
drives.push_back("Supernova");
drives.push_back("WhiteDwarf");

if( !ofFile(filePath).exists() ){
for(int i = 0; i < drives.size(); i++){
if(ofFile::doesFileExist("/Volumes/"+ drives[i]+"/")){
for(int j = 0; j < drives.size(); j++){
if(j != i){
ofStringReplace(filePath, drives[j], drives[i]);
}
}
break;
}
}
}

return filePath;
}
76 changes: 5 additions & 71 deletions CloudsLibrary/src/CloudsGlobal.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,80 +10,14 @@

#include "ofMain.h"

static bool confirmedDataPath = false;
static bool usingDevelopmentFolder = false;

//--------------------------------------------------------------------
static string GetCloudsDataPath(bool ignored = false)
{
if(!confirmedDataPath){
usingDevelopmentFolder = ofDirectory("../../../CloudsData/").exists();
if(!usingDevelopmentFolder){
ofDirectory("CloudsData/").create();
}
confirmedDataPath = true;
}
return string(usingDevelopmentFolder ? "../../../" : "") + "CloudsData" + (ignored ? "_ignored" : "") + "/";
}

static string GetCloudsVisualSystemDataPath(string systemName, bool ignoredFolder = false){
// building from src project file
string datapath;
if(ofDirectory("../../../CloudsData/").exists()){
datapath = string("../../../CloudsData") + (ignoredFolder ? "_ignored" : "") + "/visualsystems/" + systemName + "/";
}
// stand alone full app
else if(ofDirectory("CloudsData/").exists()){
datapath = string("CloudsData") + (ignoredFolder ? "_ignored" : "") + "/visualsystems/" + systemName + "/";
}
// stand alone single app
else{
datapath = "../../../data/";
}

return datapath;
}

string GetCloudsDataPath(bool ignored = false);
//--------------------------------------------------------------------
static string language = "ENGLISH";
static bool languageSet = false;
static string GetLanguage(){
if(!languageSet){
string languageFile = GetCloudsDataPath() + "language.txt";
if(ofFile(languageFile).exists()){
language = ofBufferFromFile(languageFile).getText();
}
languageSet = true;
}
return language;
}

string GetCloudsVisualSystemDataPath(string systemName, bool ignoredFolder = false);
//--------------------------------------------------------------------
static string relinkFilePath(string filePath){

vector<string> drives;

drives.push_back("Seance");
drives.push_back("Nebula");
drives.push_back("Supernova");
drives.push_back("WhiteDwarf");

if( !ofFile(filePath).exists() ){
for(int i = 0; i < drives.size(); i++){
if(ofFile::doesFileExist("/Volumes/"+ drives[i]+"/")){
for(int j = 0; j < drives.size(); j++){
if(j != i){
ofStringReplace(filePath, drives[j], drives[i]);
}
}
break;
}
}
}

return filePath;
}

string GetLanguage();
//--------------------------------------------------------------------
string relinkFilePath(string filePath);

//--------------------------------------
static inline std::string &ltrim(std::string &s) {
Expand Down
42 changes: 42 additions & 0 deletions CloudsLibrary/src/CloudsLocalization.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
//
// CloudsGlobal.h
// CloudsStoryEngine
//
// Created by James George on 7/11/13.
//
//

#pragma once

#include "ofMain.h"
#include "CloudsLocalization.h"
#include "CloudsGlobal.h"
#include "ofxLocalization.h"


//--------------------------------------
static ofxLocalization localization;
static bool localizationLoaded = false;
bool InitLocalization(){
localizationLoaded = true;
return localization.load(GetCloudsDataPath() + "language/languagefile.csv");
}

//--------------------------------------
string GetTranslationForString(string toTranslate){
if(!localizationLoaded){
InitLocalization();
}

return localization.translateKeyToLanguage(toTranslate, GetLanguage());
}

//--------------------------------------
string GetFontPath(){
if(GetLanguage() == "JAPANESE"){
return GetCloudsDataPath() + "font/mplus-1c-regular.ttf";
}
else{
return GetCloudsDataPath() + "font/Blender-BOOK.ttf";
}
}
Loading

0 comments on commit 8c12d24

Please sign in to comment.