Added german language, finished controller

This commit is contained in:
TAASONI3
2023-07-05 14:43:52 +02:00
parent 7aba856b17
commit 0dc2ff831f
127 changed files with 15311 additions and 356 deletions

View File

@@ -84,7 +84,7 @@ namespace Assets.Scripts
}
if (itemAdded)
{
GameObject.Find("UIHandler").GetComponent<UIHandler>().showMessage("SUCCESS;You got an item!");
GameObject.Find("UIHandler").GetComponent<UIHandler>().showMessage("SUCCESS;"+TextHandler.getText("gotItem"));
GameObject.Find("QuestLog").GetComponent<QuestLog>().updateQuests("collect", item, 1);
SteamWorksHandler.getItemAchievement(item);
break;
@@ -92,7 +92,7 @@ namespace Assets.Scripts
}
if (!itemAdded)
{
GameObject.Find("UIHandler").GetComponent<UIHandler>().showMessage("ERROR;No inventory space left.");
GameObject.Find("UIHandler").GetComponent<UIHandler>().showMessage("ERROR;"+TextHandler.getText("noSpace"));
}
}
}
@@ -417,7 +417,7 @@ namespace Assets.Scripts
public void hideSlotOptions(){
GameObject.Find("pnlInventoryActions").transform.localScale = new Vector3(0,0,0);
GameObject.Find("btnEquip").transform.Find("Text").GetComponent<Text>().text = "Equip";
GameObject.Find("btnEquip").transform.Find("Text").GetComponent<Text>().text = TextHandler.getText("equip");
GameObject.Find("btnEquip").GetComponent<Button>().interactable = true;
EventSystem.current.SetSelectedGameObject(currentSlot);
}