Reworked option menu to be a bit more modern. Changed controls to fit other games a bit better
This commit is contained in:
@@ -15,7 +15,7 @@ MonoBehaviour:
|
||||
m_DefaultGroup: c16a2ef1bfc61606c9957985a200fcca
|
||||
m_currentHash:
|
||||
serializedVersion: 2
|
||||
Hash: 58bfb421ca199209fd74c8e707fb008c
|
||||
Hash: 00000000000000000000000000000000
|
||||
m_OptimizeCatalogSize: 0
|
||||
m_BuildRemoteCatalog: 0
|
||||
m_CatalogRequestsTimeout: 0
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"version": 1,
|
||||
"name": "Input",
|
||||
"maps": [
|
||||
{
|
||||
@@ -327,7 +328,7 @@
|
||||
{
|
||||
"name": "",
|
||||
"id": "41d6126e-54e9-4ac3-9fd7-20ecf4db4eaa",
|
||||
"path": "<Keyboard>/c",
|
||||
"path": "<Keyboard>/i",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "KeyboardMouse",
|
||||
@@ -360,7 +361,7 @@
|
||||
{
|
||||
"name": "",
|
||||
"id": "5ecbd7b6-c10e-41d7-8338-064fac48d268",
|
||||
"path": "<Keyboard>/q",
|
||||
"path": "<Keyboard>/l",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "KeyboardMouse",
|
||||
@@ -442,7 +443,7 @@
|
||||
"name": "Interaction",
|
||||
"type": "Button",
|
||||
"id": "b5f3621c-6eae-4a0a-87a4-d8569eab05d5",
|
||||
"expectedControlType": "Button",
|
||||
"expectedControlType": "",
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": false
|
||||
@@ -451,7 +452,7 @@
|
||||
"name": "Inventory",
|
||||
"type": "Button",
|
||||
"id": "d59063bc-b8f8-4043-bdec-4ee5b98ce30b",
|
||||
"expectedControlType": "Button",
|
||||
"expectedControlType": "",
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": false
|
||||
@@ -640,7 +641,7 @@
|
||||
{
|
||||
"name": "",
|
||||
"id": "dc31e776-058a-450c-b759-e20abbfb62f0",
|
||||
"path": "<Keyboard>/e",
|
||||
"path": "<Keyboard>/f",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "KeyboardMouse",
|
||||
@@ -662,7 +663,7 @@
|
||||
{
|
||||
"name": "",
|
||||
"id": "3876ad34-0e23-4436-bd5f-84c8411dee1a",
|
||||
"path": "<Keyboard>/c",
|
||||
"path": "<Keyboard>/i",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "KeyboardMouse",
|
||||
@@ -684,7 +685,7 @@
|
||||
{
|
||||
"name": "",
|
||||
"id": "60d2c138-97f6-4ac1-b13a-a48995ae8642",
|
||||
"path": "<Keyboard>/q",
|
||||
"path": "<Keyboard>/l",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "KeyboardMouse",
|
||||
|
||||
@@ -584,7 +584,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 203749331824640
|
||||
m_Localized: Steuerung - Tastatur
|
||||
m_Localized: Steuerung
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 203809884991488
|
||||
|
||||
@@ -606,7 +606,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 203749331824640
|
||||
m_Localized: Controls - Keyboard
|
||||
m_Localized: Controls
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 203809884991488
|
||||
|
||||
@@ -11988,7 +11988,7 @@ MonoBehaviour:
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: Press [E] to interact
|
||||
m_Text: Press [F] to interact
|
||||
--- !u!114 &735043014
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -18861,6 +18861,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 2ce357854cffde645bddea205b4381e8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
isFightActive: 0
|
||||
--- !u!1 &1156480094
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -18933,12 +18934,8 @@ MonoBehaviour:
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: 'If you are close to an enemy or object press "E" (default) to interact
|
||||
m_Text: If you are close to an enemy or object press "F" (default) to interact
|
||||
with it.
|
||||
|
||||
|
||||
Currently only enemies are supported but this gets changed in
|
||||
the future'
|
||||
--- !u!222 &1156480097
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -57,8 +57,6 @@ namespace Assets.Scripts.Menu
|
||||
options.transform.localScale = new Vector3(1, 1, 1);
|
||||
characterCreation.transform.localScale = new Vector3(0, 0, 0);
|
||||
FileHandler.loadOptionDisplay();
|
||||
EventSystem.current.SetSelectedGameObject(GameObject.Find("btnAudio"));
|
||||
showOptionView("audio");
|
||||
}
|
||||
|
||||
public void closeOptions()
|
||||
@@ -150,22 +148,6 @@ namespace Assets.Scripts.Menu
|
||||
return characterCreation.activeSelf;
|
||||
}
|
||||
|
||||
public void showOptionView(string key)
|
||||
{
|
||||
GameObject optionContent = GameObject.Find("pnlContent");
|
||||
for (int i = 0; i < optionContent.transform.childCount; i++)
|
||||
{
|
||||
if (optionContent.transform.GetChild(i).name.ToLower().Contains(key))
|
||||
{
|
||||
optionContent.transform.GetChild(i).transform.localScale = new Vector3(1, 1, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
optionContent.transform.GetChild(i).transform.localScale = new Vector3(0, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void switchLanguage()
|
||||
{
|
||||
GameObject language = GameObject.Find("dropLanguage");
|
||||
|
||||
Reference in New Issue
Block a user