Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/178 skill menu v1 #179

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
250 changes: 250 additions & 0 deletions Assets/UnZENity-Core/Resources/Prefabs/Menus/MenuSkeleton.prefab
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &4377388513586376009
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2250348072498691615}
- component: {fileID: 7666896976161519757}
- component: {fileID: 59041571318297596}
- component: {fileID: 6126979473119700643}
m_Layer: 5
m_Name: Canvas
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2250348072498691615
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4377388513586376009}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0.01, y: 0.01, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 5251646276479726567}
m_Father: {fileID: 2282871596405899006}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!223 &7666896976161519757
Canvas:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4377388513586376009}
m_Enabled: 1
serializedVersion: 3
m_RenderMode: 2
m_Camera: {fileID: 0}
m_PlaneDistance: 100
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_VertexColorAlwaysGammaSpace: 1
m_AdditionalShaderChannelsFlag: 25
m_UpdateRectTransformForStandalone: 0
m_SortingLayerID: 0
m_SortingOrder: 0
m_TargetDisplay: 0
--- !u!114 &59041571318297596
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4377388513586376009}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 0
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
m_PresetInfoIsWorld: 1
--- !u!114 &6126979473119700643
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4377388513586376009}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
--- !u!1 &8412591900964177680
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2282871596405899006}
m_Layer: 0
m_Name: MenuSkeleton
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2282871596405899006
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8412591900964177680}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0.5, y: 0.5, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 2250348072498691615}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &4136749761303385679
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 2250348072498691615}
m_Modifications:
- target: {fileID: 4400845214833122101, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_LocalScale.x
value: 50
objectReference: {fileID: 0}
- target: {fileID: 4400845214833122101, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_LocalScale.z
value: 50
objectReference: {fileID: 0}
- target: {fileID: 4400845214833122101, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_LocalPosition.z
value: 0.01
objectReference: {fileID: 0}
- target: {fileID: 6670382117503956553, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_Name
value: Background
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
--- !u!224 &5251646276479726567 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 8181131269388117416, guid: 4c82f166e82eb4d489e539f0b15e066d, type: 3}
m_PrefabInstance: {fileID: 4136749761303385679}
m_PrefabAsset: {fileID: 0}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions Assets/UnZENity-Core/Resources/Prefabs/Menus/QuestLogMenu.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ GameObject:
m_Component:
- component: {fileID: 2282871596405899006}
- component: {fileID: 4108233323533120742}
- component: {fileID: 4428335579734347645}
m_Layer: 0
m_Name: QuestLogMenu
m_TagString: Untagged
Expand Down Expand Up @@ -150,20 +149,6 @@ MonoBehaviour:
m_EditorClassIdentifier:
_canvas: {fileID: 4377388513586376009}
_background: {fileID: 7348004100775829510}
--- !u!114 &4428335579734347645
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8412591900964177680}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 259b3da9f06f4b7791b2297e57967369, type: 3}
m_Name:
m_EditorClassIdentifier:
_elementsToFilter: []
_audioSource: {fileID: 0}
--- !u!1001 &4136749761303385679
PrefabInstance:
m_ObjectHideFlags: 0
Expand Down
24 changes: 24 additions & 0 deletions Assets/UnZENity-Core/Scripts/Globals/Constants.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using Material = UnityEngine.Material;

namespace GUZ.Core.Globals
{
Expand All @@ -18,6 +21,27 @@ public static class Daedalus
public static string PickLockSuccessSoundName => GameData.GothicVm.GetSymbolByName("_STR_SOUND_PICKLOCK_SUCCESS").GetString(0);
public static string PickLockUnlockSoundName => GameData.GothicVm.GetSymbolByName("_STR_SOUND_PICKLOCK_UNLOCK").GetString(0);
public static string DoorUnlockSoundName => "DOOR_UNLOCK.WAV"; // _STR_*_UNLOCK value above couldn't be found/isn't used in G1, therefore we use this as fallback.


public static List<string> TalentTitles
{
get
{
var talents = GameData.GothicVm.GetSymbolByName("TXT_TALENTS");;
var talentCount = GameData.GothicVm.GetSymbolByName("NPC_TALENT_MAX").GetInt(0);
return Enumerable.Range(0, talentCount).Select(i => talents.GetString((ushort)i)).ToList();
}
}

public static List<string> TalentSkills
{
get
{
var talentSkills = GameData.GothicVm.GetSymbolByName("TXT_TALENTS_SKILLS");;
var talentCount = GameData.GothicVm.GetSymbolByName("NPC_TALENT_MAX").GetInt(0);
return Enumerable.Range(0, talentCount).Select(i => talentSkills.GetString((ushort)i)).ToList();
}
}
}


Expand Down
Loading