Added german language, finished controller
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user