diff --git a/unity/Assets/Scripts/Content/ContentData.cs b/unity/Assets/Scripts/Content/ContentData.cs index 0267e56a0..398d10aa5 100644 --- a/unity/Assets/Scripts/Content/ContentData.cs +++ b/unity/Assets/Scripts/Content/ContentData.cs @@ -137,7 +137,14 @@ public void PopulatePackList(string path) pack.id = d.Get("ContentPack", "id"); // If this is invalid we will just handle it later, not fatal - pack.image = path + "/" + d.Get("ContentPack", "image"); + if (d.Get("ContentPack", "image").IndexOf("{import}") == 0) + { + pack.image = ContentData.ImportPath() + d.Get("ContentPack", "image").Substring(8); + } + else + { + pack.image = path + "/" + d.Get("ContentPack", "image"); + } // Black description isn't fatal pack.description = d.Get("ContentPack", "description"); diff --git a/unity/Assets/Scripts/UI/Screens/OptionsScreen.cs b/unity/Assets/Scripts/UI/Screens/OptionsScreen.cs index 0a9d58e47..154026c6e 100644 --- a/unity/Assets/Scripts/UI/Screens/OptionsScreen.cs +++ b/unity/Assets/Scripts/UI/Screens/OptionsScreen.cs @@ -194,7 +194,7 @@ private void CreateLanguageElements() string[] langs = DictionaryI18n.FFG_LANGS.Split(','); // For now, English and Spanish languages available. - HashSet enabled_langs = new HashSet ("English,Spanish,French,Italian,German".Split(',')); + HashSet enabled_langs = new HashSet ("English,Spanish,French,Italian,German,Portuguese".Split(',')); //The first button in the list of buttons should start in this vertical coordinate float verticalStart = UIScaler.GetVCenter(-1f) - ((langs.Length - 1) * 1f);