コード例 #1
0
ファイル: InterfaceSkin.cs プロジェクト: WOWZON3/TeraEMU
        //InfoButton-normal
        public static String GetInfoButtonNormal(String defaultValue = "btn-info-nm.png")
        {
            String _btn_info_nm = defaultValue;

            try
            {
                _btn_info_nm = IniReader.ReadValue("Skin", "btnInfoNm", Configuration._configFile);
                if (_btn_info_nm == "")
                {
                    _btn_info_nm = defaultValue;
                    IniReader.WriteValue("Skin", "btnInfoNm", _btn_info_nm, Configuration._configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_btn_info_nm);
        }
コード例 #2
0
ファイル: InterfaceSkin.cs プロジェクト: WOWZON3/TeraEMU
        //InfoButton-hover
        public static String GetInfoButtonHover(String defaultValue = "btn-info-hv.png")
        {
            String _btn_info_hv = defaultValue;

            try
            {
                _btn_info_hv = IniReader.ReadValue("Skin", "btnInfoHv", Configuration._configFile);
                if (_btn_info_hv == "")
                {
                    _btn_info_hv = defaultValue;
                    IniReader.WriteValue("Skin", "btnInfoHv", _btn_info_hv, Configuration._configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_btn_info_hv);
        }
コード例 #3
0
ファイル: Configuration.cs プロジェクト: WOWZON3/TeraEMU
        //LanguageGame
        public static String GetLanguageGame(String defaultValue = "en")
        {
            String _language_game = defaultValue;

            try
            {
                _language_game = IniReader.ReadValue("Launcher", "languageGame", _configFile);
                if (_language_game == "")
                {
                    _language_game = defaultValue;
                    IniReader.WriteValue("Launcher", "languageGame", _language_game, _configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_language_game);
        }
コード例 #4
0
ファイル: InterfaceSkin.cs プロジェクト: WOWZON3/TeraEMU
        //Splash Image File
        public static String GetSplashImage(String defaultValue = "Splash.png")
        {
            String _splashImage = defaultValue;

            try
            {
                _splashImage = IniReader.ReadValue("Skin", "splashImage", Configuration._configFile);
                if (_splashImage == "")
                {
                    _splashImage = defaultValue;
                    IniReader.WriteValue("Skin", "splashImage", _splashImage, Configuration._configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_splashImage);
        }
コード例 #5
0
ファイル: Configuration.cs プロジェクト: WOWZON3/TeraEMU
        //Launcher Version
        public static String GetLauncherVersion(String defaultValue = "1.0.0.0")
        {
            String _versionLauncher = defaultValue;

            try
            {
                _versionLauncher = IniReader.ReadValue("Launcher", "versionLauncher", _configFile);
                if (_versionLauncher == "")
                {
                    _versionLauncher = defaultValue;
                    IniReader.WriteValue("Launcher", "versionLauncher", _versionLauncher, _configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_versionLauncher);
        }
コード例 #6
0
ファイル: Configuration.cs プロジェクト: WOWZON3/TeraEMU
        //Launcher Title
        public static String GetLauncherTitle(String defaultValue = "Tera cTLauncher")
        {
            String _titleLauncher = defaultValue;

            try
            {
                _titleLauncher = IniReader.ReadValue("Launcher", "titleLauncher", _configFile);
                if (_titleLauncher == "")
                {
                    _titleLauncher = defaultValue;
                    IniReader.WriteValue("Launcher", "titleLauncher", _titleLauncher, _configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_titleLauncher);
        }
コード例 #7
0
ファイル: Configuration.cs プロジェクト: WOWZON3/TeraEMU
        //Launcher Website Url
        public static String GetLauncherWebsiteUrl(String defaultValue = "http://5.9.181.133/tera/launcher/index.php")
        {
            String _urlLauncherWebsite = defaultValue;

            try
            {
                _urlLauncherWebsite = IniReader.ReadValue("Launcher", "urlLauncherWebsite", _configFile);
                if (_urlLauncherWebsite == "")
                {
                    _urlLauncherWebsite = defaultValue;
                    IniReader.WriteValue("Launcher", "urlLauncherWebsite", _urlLauncherWebsite, _configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_urlLauncherWebsite);
        }
コード例 #8
0
ファイル: Configuration.cs プロジェクト: WOWZON3/TeraEMU
        //Launcher Auth Url
        public static String GetLauncherAuthUrl(String defaultValue = "http://5.9.181.133/tera/auth.php")
        {
            String _urlLauncherAuth = defaultValue;

            try
            {
                _urlLauncherAuth = IniReader.ReadValue("Launcher", "urlLauncherAuth", _configFile);
                if (_urlLauncherAuth == "")
                {
                    _urlLauncherAuth = defaultValue;
                    IniReader.WriteValue("Launcher", "urlLauncherAuth", _urlLauncherAuth, _configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_urlLauncherAuth);
        }
コード例 #9
0
        //Version Url
        public static String GetRemoteVersionUrl(String defaultValue = "http://5.9.181.133/tera/launcher/cTlauncher.clv")
        {
            String _urlRemoteVersion = defaultValue;

            try
            {
                _urlRemoteVersion = IniReader.ReadValue("Launcher", "urlRemoteVersion", _configFile);
                if (_urlRemoteVersion == "")
                {
                    _urlRemoteVersion = defaultValue;
                    IniReader.WriteValue("Launcher", "urlRemoteVersion", _urlRemoteVersion, _configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_urlRemoteVersion);
        }
コード例 #10
0
        //Server Port
        public static String GetServerPort(String defaultValue = "80")
        {
            String _portServer = defaultValue;

            try
            {
                _portServer = IniReader.ReadValue("Launcher", "portServer", _configFile);
                if (_portServer == "")
                {
                    _portServer = defaultValue;
                    IniReader.WriteValue("Launcher", "portServer", _portServer, _configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_portServer);
        }
コード例 #11
0
        //Server Url
        public static String GetServerUrl(String defaultValue = "5.9.181.133")
        {
            String _urlServer = defaultValue;

            try
            {
                _urlServer = IniReader.ReadValue("Launcher", "urlServer", _configFile);
                if (_urlServer == "")
                {
                    _urlServer = defaultValue;
                    IniReader.WriteValue("Launcher", "urlServer", _urlServer, _configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_urlServer);
        }
コード例 #12
0
        //PatchDownload File
        public static String GetPatchDownloadFile(String defaultValue = "cTlauncher.zip")
        {
            String _filePatchDownload = defaultValue;

            try
            {
                _filePatchDownload = IniReader.ReadValue("Launcher", "filePatchDownload", _configFile);
                if (_filePatchDownload == "")
                {
                    _filePatchDownload = defaultValue;
                    IniReader.WriteValue("Launcher", "filePatchDownload", _filePatchDownload, _configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_filePatchDownload);
        }
コード例 #13
0
        //PatchDownload Url
        public static String GetPatchDownloadUrl(String defaultValue = "http://5.9.181.133/tera/launcher/")
        {
            String _urlPatchDownload = defaultValue;

            try
            {
                _urlPatchDownload = IniReader.ReadValue("Launcher", "urlPatchDownload", _configFile);
                if (_urlPatchDownload == "")
                {
                    _urlPatchDownload = defaultValue;
                    IniReader.WriteValue("Launcher", "urlPatchDownload", _urlPatchDownload, _configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_urlPatchDownload);
        }