diff --git a/app/backend/src/main/java/com/app/gamereview/dto/request/tag/UpdateTagRequestDto.java b/app/backend/src/main/java/com/app/gamereview/dto/request/tag/UpdateTagRequestDto.java index ec8a5e71..6e50c362 100644 --- a/app/backend/src/main/java/com/app/gamereview/dto/request/tag/UpdateTagRequestDto.java +++ b/app/backend/src/main/java/com/app/gamereview/dto/request/tag/UpdateTagRequestDto.java @@ -17,7 +17,7 @@ public class UpdateTagRequestDto { @ValidTagType(allowedValues = {TagType.ART_STYLE, TagType.GENRE, TagType.DURATION, TagType.OTHER, TagType.MONETIZATION, TagType.PLATFORM, TagType.DEVELOPER, TagType.PLAYER_TYPE, TagType.POST, TagType.PRODUCTION}) - private TagType tagType; + private String tagType; @Pattern(regexp = "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$", message = "Provided color must be in hexadecimal format, e.g. #FF4500") private String color; diff --git a/app/mobile/Assets/Prefabs/CreateGame.prefab b/app/mobile/Assets/Prefabs/CreateGame.prefab index 019b728b..e6d3889b 100644 --- a/app/mobile/Assets/Prefabs/CreateGame.prefab +++ b/app/mobile/Assets/Prefabs/CreateGame.prefab @@ -168,7 +168,7 @@ RectTransform: m_Children: - {fileID: 267480862050461469} m_Father: {fileID: 8015390203514921263} - m_RootOrder: 2 + m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} @@ -257,138 +257,7 @@ MonoBehaviour: m_OnClick: m_PersistentCalls: m_Calls: [] ---- !u!1 &1145342760127386077 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 7580030324547307126} - - component: {fileID: 5048470327862333350} - - component: {fileID: 282386277574847919} - m_Layer: 5 - m_Name: Game Name - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &7580030324547307126 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1145342760127386077} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 7881564276259528357} - - {fileID: 1766522651001889004} - m_Father: {fileID: 8015390203514921263} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 395} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &5048470327862333350 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1145342760127386077} - m_CullTransparentMesh: 1 ---- !u!114 &282386277574847919 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1145342760127386077} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 0.392} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!1 &1780012645828436588 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 8022102952434059338} - - component: {fileID: 6360508491981358176} - m_Layer: 5 - m_Name: Text Area - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &8022102952434059338 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1780012645828436588} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 5209894566661098092} - - {fileID: 7486278754570139675} - m_Father: {fileID: 1766522651001889004} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 23.4, y: 0} - m_SizeDelta: {x: -66.8, y: -30} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &6360508491981358176 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1780012645828436588} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3312d7739989d2b4e91e6319e9a96d76, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Padding: {x: -8, y: -5, z: -8, w: -5} - m_Softness: {x: 0, y: 0} ---- !u!1 &2185178412980701552 +--- !u!1 &774018682658140505 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -396,67 +265,67 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 1766522651001889004} - - component: {fileID: 6408685597778927999} - - component: {fileID: 3698995713587912390} - - component: {fileID: 575405652796904573} + - component: {fileID: 3607688021429920666} + - component: {fileID: 5005056897722956085} + - component: {fileID: 4568818845472558861} + - component: {fileID: 7987695887333318505} m_Layer: 5 - m_Name: InputField (TMP) + m_Name: GameNameInpuField m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &1766522651001889004 +--- !u!224 &3607688021429920666 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2185178412980701552} + m_GameObject: {fileID: 774018682658140505} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0.9988868, y: 0.9988868, z: 0.9988868} + m_LocalScale: {x: 0.9988872, y: 0.9988872, z: 0.9988872} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 8022102952434059338} + - {fileID: 7089670229949528112} m_Father: {fileID: 7580030324547307126} - m_RootOrder: 1 + m_RootOrder: 0 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.0034179685, y: 109.99999} - m_SizeDelta: {x: 1069.9, y: 102.503174} + m_AnchoredPosition: {x: -5.6202, y: 105.9} + m_SizeDelta: {x: 1082.4, y: 83.7} m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &6408685597778927999 +--- !u!222 &5005056897722956085 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2185178412980701552} + m_GameObject: {fileID: 774018682658140505} m_CullTransparentMesh: 1 ---- !u!114 &3698995713587912390 +--- !u!114 &4568818845472558861 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2185178412980701552} + m_GameObject: {fileID: 774018682658140505} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 0.8773585, g: 0.8773585, b: 0.8773585, a: 1} + m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Sprite: {fileID: 10911, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 @@ -466,13 +335,13 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 ---- !u!114 &575405652796904573 +--- !u!114 &7987695887333318505 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2185178412980701552} + m_GameObject: {fileID: 774018682658140505} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 2da0c512f12947e489f739169773d7ca, type: 3} @@ -506,16 +375,16 @@ MonoBehaviour: m_SelectedTrigger: Selected m_DisabledTrigger: Disabled m_Interactable: 1 - m_TargetGraphic: {fileID: 3698995713587912390} - m_TextViewport: {fileID: 8022102952434059338} - m_TextComponent: {fileID: 3196910629003846903} - m_Placeholder: {fileID: 3850709807261996290} + m_TargetGraphic: {fileID: 4568818845472558861} + m_TextViewport: {fileID: 7089670229949528112} + m_TextComponent: {fileID: 3825004083751587949} + m_Placeholder: {fileID: 1166879983842245910} m_VerticalScrollbar: {fileID: 0} m_VerticalScrollbarEventHandler: {fileID: 0} m_LayoutGroup: {fileID: 0} m_ScrollSensitivity: 1 - m_ContentType: 7 - m_InputType: 2 + m_ContentType: 0 + m_InputType: 0 m_AsteriskChar: 42 m_KeyboardType: 0 m_LineType: 0 @@ -564,7 +433,7 @@ MonoBehaviour: m_isRichTextEditingAllowed: 0 m_LineLimit: 0 m_InputValidator: {fileID: 0} ---- !u!1 &3009354011713236302 +--- !u!1 &1145342760127386077 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -572,51 +441,129 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 7716848824415246156} - - component: {fileID: 8621322599334145694} - - component: {fileID: 2779247475767967347} + - component: {fileID: 7580030324547307126} + - component: {fileID: 5048470327862333350} + - component: {fileID: 282386277574847919} m_Layer: 5 - m_Name: Text (1) + m_Name: Game Name m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &7716848824415246156 +--- !u!224 &7580030324547307126 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3009354011713236302} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_GameObject: {fileID: 1145342760127386077} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 3607688021429920666} + - {fileID: 7881564276259528357} + m_Father: {fileID: 8015390203514921263} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 395} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &5048470327862333350 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1145342760127386077} + m_CullTransparentMesh: 1 +--- !u!114 &282386277574847919 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1145342760127386077} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 0.392} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!1 &1168858879840978793 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 126198422414972941} + - component: {fileID: 4600915916393293051} + - component: {fileID: 3825004083751587949} + m_Layer: 5 + m_Name: Text + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &126198422414972941 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1168858879840978793} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 5143332123090635887} + m_Father: {fileID: 7089670229949528112} m_RootOrder: 1 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: -178.8, y: 831} - m_SizeDelta: {x: 704.6, y: 105.4} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &8621322599334145694 +--- !u!222 &4600915916393293051 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3009354011713236302} + m_GameObject: {fileID: 1168858879840978793} m_CullTransparentMesh: 1 ---- !u!114 &2779247475767967347 +--- !u!114 &3825004083751587949 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3009354011713236302} + m_GameObject: {fileID: 1168858879840978793} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} @@ -630,7 +577,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: Please enter the details of game + m_text: "\u200B" m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} @@ -639,8 +586,8 @@ MonoBehaviour: m_fontMaterials: [] m_fontColor32: serializedVersion: 2 - rgba: 4278190080 - m_fontColor: {r: 0, g: 0, b: 0, a: 1} + rgba: 4281479730 + m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_enableVertexGradient: 0 m_colorMode: 3 m_fontColorGradient: @@ -657,15 +604,15 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 45 - m_fontSizeBase: 45 + m_fontSize: 40 + m_fontSizeBase: 40 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 m_HorizontalAlignment: 1 - m_VerticalAlignment: 512 + m_VerticalAlignment: 256 m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 @@ -673,13 +620,13 @@ MonoBehaviour: m_lineSpacingMax: 0 m_paragraphSpacing: 0 m_charWidthMaxAdj: 0 - m_enableWordWrapping: 1 + m_enableWordWrapping: 0 m_wordWrappingRatios: 0.4 m_overflowMode: 0 m_linkedTextComponent: {fileID: 0} parentLinkedComponent: {fileID: 0} m_enableKerning: 1 - m_enableExtraPadding: 0 + m_enableExtraPadding: 1 checkPaddingRequired: 0 m_isRichText: 1 m_parseCtrlCharacters: 1 @@ -699,7 +646,7 @@ MonoBehaviour: m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} ---- !u!1 &3612876120446080279 +--- !u!1 &3009354011713236302 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -707,25 +654,213 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 267480862050461469} - - component: {fileID: 7506254252479423686} - - component: {fileID: 4146109442407082993} + - component: {fileID: 7716848824415246156} + - component: {fileID: 8621322599334145694} + - component: {fileID: 2779247475767967347} m_Layer: 5 - m_Name: Text (TMP) + m_Name: Text (1) m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &267480862050461469 +--- !u!224 &7716848824415246156 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3612876120446080279} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} + m_GameObject: {fileID: 3009354011713236302} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 5143332123090635887} + m_RootOrder: 1 + 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: -178.8, y: 831} + m_SizeDelta: {x: 704.6, y: 105.4} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &8621322599334145694 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3009354011713236302} + m_CullTransparentMesh: 1 +--- !u!114 &2779247475767967347 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3009354011713236302} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_text: Please enter the details of game + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 4278190080 + m_fontColor: {r: 0, g: 0, b: 0, a: 1} + m_enableVertexGradient: 0 + m_colorMode: 3 + m_fontColorGradient: + topLeft: {r: 1, g: 1, b: 1, a: 1} + topRight: {r: 1, g: 1, b: 1, a: 1} + bottomLeft: {r: 1, g: 1, b: 1, a: 1} + bottomRight: {r: 1, g: 1, b: 1, a: 1} + m_fontColorGradientPreset: {fileID: 0} + m_spriteAsset: {fileID: 0} + m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 + m_overrideHtmlColors: 0 + m_faceColor: + serializedVersion: 2 + rgba: 4294967295 + m_fontSize: 45 + m_fontSizeBase: 45 + m_fontWeight: 400 + m_enableAutoSizing: 0 + m_fontSizeMin: 18 + m_fontSizeMax: 72 + m_fontStyle: 0 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 512 + m_textAlignment: 65535 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_enableWordWrapping: 1 + m_wordWrappingRatios: 0.4 + m_overflowMode: 0 + m_linkedTextComponent: {fileID: 0} + parentLinkedComponent: {fileID: 0} + m_enableKerning: 1 + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_parseCtrlCharacters: 1 + m_isOrthographic: 1 + m_isCullingEnabled: 0 + m_horizontalMapping: 0 + m_verticalMapping: 0 + m_uvLineOffset: 0 + m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 + m_VertexBufferAutoSizeReduction: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, w: 0} + m_isUsingLegacyAnimationComponent: 0 + m_isVolumetricText: 0 + m_hasFontAssetChanged: 0 + m_baseMaterial: {fileID: 0} + m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!1 &3343960698404359062 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4446963618036126623} + - component: {fileID: 1239064636108434931} + m_Layer: 5 + m_Name: Text Area + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &4446963618036126623 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3343960698404359062} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 4333582054502308329} + - {fileID: 291084074005142550} + m_Father: {fileID: 5020926991034374246} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: -0.5} + m_SizeDelta: {x: -20, y: -13} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1239064636108434931 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3343960698404359062} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3312d7739989d2b4e91e6319e9a96d76, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: {x: -8, y: -5, z: -8, w: -5} + m_Softness: {x: 0, y: 0} +--- !u!1 &3612876120446080279 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 267480862050461469} + - component: {fileID: 7506254252479423686} + - component: {fileID: 4146109442407082993} + m_Layer: 5 + m_Name: Text (TMP) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &267480862050461469 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3612876120446080279} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] @@ -792,15 +927,204 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 45 - m_fontSizeBase: 45 + m_fontSize: 45 + m_fontSizeBase: 45 + m_fontWeight: 400 + m_enableAutoSizing: 0 + m_fontSizeMin: 18 + m_fontSizeMax: 72 + m_fontStyle: 1 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + m_textAlignment: 65535 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_enableWordWrapping: 1 + m_wordWrappingRatios: 0.4 + m_overflowMode: 0 + m_linkedTextComponent: {fileID: 0} + parentLinkedComponent: {fileID: 0} + m_enableKerning: 1 + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_parseCtrlCharacters: 1 + m_isOrthographic: 1 + m_isCullingEnabled: 0 + m_horizontalMapping: 0 + m_verticalMapping: 0 + m_uvLineOffset: 0 + m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 + m_VertexBufferAutoSizeReduction: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, w: 0} + m_isUsingLegacyAnimationComponent: 0 + m_isVolumetricText: 0 + m_hasFontAssetChanged: 0 + m_baseMaterial: {fileID: 0} + m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!1 &4618705707664140215 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7089670229949528112} + - component: {fileID: 7624664227391877989} + m_Layer: 5 + m_Name: Text Area + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &7089670229949528112 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4618705707664140215} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2308593459107468282} + - {fileID: 126198422414972941} + m_Father: {fileID: 3607688021429920666} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: -0.5} + m_SizeDelta: {x: -20, y: -13} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &7624664227391877989 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4618705707664140215} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3312d7739989d2b4e91e6319e9a96d76, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: {x: -8, y: -5, z: -8, w: -5} + m_Softness: {x: 0, y: 0} +--- !u!1 &5408273623180198689 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4333582054502308329} + - component: {fileID: 2903370413952293473} + - component: {fileID: 2075614946615104490} + - component: {fileID: 74396045704941277} + m_Layer: 5 + m_Name: Placeholder + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &4333582054502308329 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5408273623180198689} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 4446963618036126623} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &2903370413952293473 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5408273623180198689} + m_CullTransparentMesh: 1 +--- !u!114 &2075614946615104490 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5408273623180198689} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_text: Enter a description of the game + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 2150773298 + m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 0.5} + m_enableVertexGradient: 0 + m_colorMode: 3 + m_fontColorGradient: + topLeft: {r: 1, g: 1, b: 1, a: 1} + topRight: {r: 1, g: 1, b: 1, a: 1} + bottomLeft: {r: 1, g: 1, b: 1, a: 1} + bottomRight: {r: 1, g: 1, b: 1, a: 1} + m_fontColorGradientPreset: {fileID: 0} + m_spriteAsset: {fileID: 0} + m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 + m_overrideHtmlColors: 0 + m_faceColor: + serializedVersion: 2 + rgba: 4294967295 + m_fontSize: 40 + m_fontSizeBase: 40 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18 m_fontSizeMax: 72 - m_fontStyle: 1 - m_HorizontalAlignment: 2 - m_VerticalAlignment: 512 + m_fontStyle: 2 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 @@ -808,13 +1132,13 @@ MonoBehaviour: m_lineSpacingMax: 0 m_paragraphSpacing: 0 m_charWidthMaxAdj: 0 - m_enableWordWrapping: 1 + m_enableWordWrapping: 0 m_wordWrappingRatios: 0.4 m_overflowMode: 0 m_linkedTextComponent: {fileID: 0} parentLinkedComponent: {fileID: 0} m_enableKerning: 1 - m_enableExtraPadding: 0 + m_enableExtraPadding: 1 checkPaddingRequired: 0 m_isRichText: 1 m_parseCtrlCharacters: 1 @@ -834,7 +1158,27 @@ MonoBehaviour: m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} ---- !u!1 &5529251323324750488 +--- !u!114 &74396045704941277 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5408273623180198689} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreLayout: 1 + m_MinWidth: -1 + m_MinHeight: -1 + m_PreferredWidth: -1 + m_PreferredHeight: -1 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 +--- !u!1 &5423261719198463660 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -842,51 +1186,52 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 7486278754570139675} - - component: {fileID: 7915923782671069188} - - component: {fileID: 3196910629003846903} + - component: {fileID: 2308593459107468282} + - component: {fileID: 6172224529561698446} + - component: {fileID: 1166879983842245910} + - component: {fileID: 2377480828393150614} m_Layer: 5 - m_Name: Text + m_Name: Placeholder m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &7486278754570139675 +--- !u!224 &2308593459107468282 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5529251323324750488} + m_GameObject: {fileID: 5423261719198463660} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 8022102952434059338} - m_RootOrder: 1 + m_Father: {fileID: 7089670229949528112} + m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &7915923782671069188 +--- !u!222 &6172224529561698446 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5529251323324750488} + m_GameObject: {fileID: 5423261719198463660} m_CullTransparentMesh: 1 ---- !u!114 &3196910629003846903 +--- !u!114 &1166879983842245910 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5529251323324750488} + m_GameObject: {fileID: 5423261719198463660} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} @@ -900,7 +1245,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: "\u200B" + m_text: Enter a description of the game m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} @@ -909,8 +1254,8 @@ MonoBehaviour: m_fontMaterials: [] m_fontColor32: serializedVersion: 2 - rgba: 4281479730 - m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} + rgba: 2150773298 + m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 0.5} m_enableVertexGradient: 0 m_colorMode: 3 m_fontColorGradient: @@ -927,13 +1272,13 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 72 - m_fontSizeBase: 14 + m_fontSize: 40 + m_fontSizeBase: 40 m_fontWeight: 400 - m_enableAutoSizing: 1 + m_enableAutoSizing: 0 m_fontSizeMin: 18 m_fontSizeMax: 72 - m_fontStyle: 0 + m_fontStyle: 2 m_HorizontalAlignment: 1 m_VerticalAlignment: 256 m_textAlignment: 65535 @@ -969,6 +1314,26 @@ MonoBehaviour: m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!114 &2377480828393150614 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5423261719198463660} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreLayout: 1 + m_MinWidth: -1 + m_MinHeight: -1 + m_PreferredWidth: -1 + m_PreferredHeight: -1 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 --- !u!1 &6389013930151360660 GameObject: m_ObjectHideFlags: 0 @@ -1000,7 +1365,7 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 7957120508684238179} - m_RootOrder: 1 + m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} @@ -1104,7 +1469,7 @@ MonoBehaviour: m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} ---- !u!1 &7609959227947132792 +--- !u!1 &6398428436648911731 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -1112,52 +1477,51 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 5209894566661098092} - - component: {fileID: 6488518686293581824} - - component: {fileID: 3850709807261996290} - - component: {fileID: 8553218786956431005} + - component: {fileID: 291084074005142550} + - component: {fileID: 5211448577657804380} + - component: {fileID: 7045409803647933409} m_Layer: 5 - m_Name: Placeholder + m_Name: Text m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &5209894566661098092 +--- !u!224 &291084074005142550 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7609959227947132792} + m_GameObject: {fileID: 6398428436648911731} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 8022102952434059338} - m_RootOrder: 0 + m_Father: {fileID: 4446963618036126623} + m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &6488518686293581824 +--- !u!222 &5211448577657804380 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7609959227947132792} + m_GameObject: {fileID: 6398428436648911731} m_CullTransparentMesh: 1 ---- !u!114 &3850709807261996290 +--- !u!114 &7045409803647933409 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7609959227947132792} + m_GameObject: {fileID: 6398428436648911731} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} @@ -1171,7 +1535,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: Enter name of the game + m_text: "\u200B" m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} @@ -1180,8 +1544,8 @@ MonoBehaviour: m_fontMaterials: [] m_fontColor32: serializedVersion: 2 - rgba: 2150773298 - m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 0.5} + rgba: 4281479730 + m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_enableVertexGradient: 0 m_colorMode: 3 m_fontColorGradient: @@ -1204,9 +1568,9 @@ MonoBehaviour: m_enableAutoSizing: 0 m_fontSizeMin: 18 m_fontSizeMax: 72 - m_fontStyle: 2 + m_fontStyle: 0 m_HorizontalAlignment: 1 - m_VerticalAlignment: 512 + m_VerticalAlignment: 256 m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 @@ -1240,27 +1604,183 @@ MonoBehaviour: m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} ---- !u!114 &8553218786956431005 +--- !u!1 &6631016818539581514 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5020926991034374246} + - component: {fileID: 7204027009837627216} + - component: {fileID: 3739122434211341177} + - component: {fileID: 2579340166814486889} + m_Layer: 5 + m_Name: DescriptionInputField + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &5020926991034374246 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6631016818539581514} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1.0011144, y: 1.0011144, z: 1.0011144} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 4446963618036126623} + m_Father: {fileID: 7957120508684238179} + m_RootOrder: 1 + 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: 3.3055, y: -3.9166} + m_SizeDelta: {x: 1087.6, y: 189.66} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &7204027009837627216 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6631016818539581514} + m_CullTransparentMesh: 1 +--- !u!114 &3739122434211341177 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7609959227947132792} + m_GameObject: {fileID: 6631016818539581514} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: - m_IgnoreLayout: 1 - m_MinWidth: -1 - m_MinHeight: -1 - m_PreferredWidth: -1 - m_PreferredHeight: -1 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 ---- !u!1 &7672279820525500954 + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10911, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &2579340166814486889 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6631016818539581514} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 2da0c512f12947e489f739169773d7ca, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 3739122434211341177} + m_TextViewport: {fileID: 4446963618036126623} + m_TextComponent: {fileID: 7045409803647933409} + m_Placeholder: {fileID: 2075614946615104490} + m_VerticalScrollbar: {fileID: 0} + m_VerticalScrollbarEventHandler: {fileID: 0} + m_LayoutGroup: {fileID: 0} + m_ScrollSensitivity: 1 + m_ContentType: 0 + m_InputType: 0 + m_AsteriskChar: 42 + m_KeyboardType: 0 + m_LineType: 0 + m_HideMobileInput: 0 + m_HideSoftKeyboard: 0 + m_CharacterValidation: 0 + m_RegexValue: + m_GlobalPointSize: 14 + m_CharacterLimit: 0 + m_OnEndEdit: + m_PersistentCalls: + m_Calls: [] + m_OnSubmit: + m_PersistentCalls: + m_Calls: [] + m_OnSelect: + m_PersistentCalls: + m_Calls: [] + m_OnDeselect: + m_PersistentCalls: + m_Calls: [] + m_OnTextSelection: + m_PersistentCalls: + m_Calls: [] + m_OnEndTextSelection: + m_PersistentCalls: + m_Calls: [] + m_OnValueChanged: + m_PersistentCalls: + m_Calls: [] + m_OnTouchScreenKeyboardStatusChanged: + m_PersistentCalls: + m_Calls: [] + m_CaretColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} + m_CustomCaretColor: 0 + m_SelectionColor: {r: 0.65882355, g: 0.80784315, b: 1, a: 0.7529412} + m_Text: + m_CaretBlinkRate: 0.85 + m_CaretWidth: 1 + m_ReadOnly: 0 + m_RichText: 1 + m_GlobalFontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_OnFocusSelectAll: 1 + m_ResetOnDeActivation: 1 + m_RestoreOriginalTextOnEscape: 1 + m_isRichTextEditingAllowed: 0 + m_LineLimit: 0 + m_InputValidator: {fileID: 0} +--- !u!1 &7691543164113494235 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -1268,51 +1788,51 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 2071040033682774163} - - component: {fileID: 3625613798531525104} - - component: {fileID: 2920987913630656586} + - component: {fileID: 5756515841399021742} + - component: {fileID: 723060224902376851} + - component: {fileID: 5023441213902666531} m_Layer: 5 - m_Name: Bottom Text + m_Name: InfoText m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &2071040033682774163 +--- !u!224 &5756515841399021742 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7672279820525500954} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_GameObject: {fileID: 7691543164113494235} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 7957120508684238179} - m_RootOrder: 0 + m_Father: {fileID: 8015390203514921263} + m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 2.4000244, y: -3.2999878} - m_SizeDelta: {x: -56.7, y: -58.5} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: -4, y: -238} + m_SizeDelta: {x: 200, y: 50} m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &3625613798531525104 +--- !u!222 &723060224902376851 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7672279820525500954} + m_GameObject: {fileID: 7691543164113494235} m_CullTransparentMesh: 1 ---- !u!114 &2920987913630656586 +--- !u!114 &5023441213902666531 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7672279820525500954} + m_GameObject: {fileID: 7691543164113494235} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} @@ -1326,7 +1846,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: Bottom Text + m_text: New Text m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} @@ -1389,7 +1909,7 @@ MonoBehaviour: m_VertexBufferAutoSizeReduction: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 - m_margin: {x: 0, y: 0.00006105821, z: 0, w: -2.7156677} + m_margin: {x: 0, y: 0, z: 0, w: 0} m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 m_hasFontAssetChanged: 0 @@ -1406,6 +1926,7 @@ GameObject: - component: {fileID: 8015390203514921263} - component: {fileID: 5769987793803000718} - component: {fileID: 7732837371246244994} + - component: {fileID: 5257291073123045252} m_Layer: 5 m_Name: CreateGame m_TagString: Untagged @@ -1427,8 +1948,9 @@ RectTransform: m_Children: - {fileID: 5143332123090635887} - {fileID: 7580030324547307126} - - {fileID: 4504374507215117201} - {fileID: 7957120508684238179} + - {fileID: 4504374507215117201} + - {fileID: 5756515841399021742} m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -1475,6 +1997,32 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 +--- !u!114 &5257291073123045252 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7791402795649400608} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4b674c516ecf142c0b9905f1d3fc6100, type: 3} + m_Name: + m_EditorClassIdentifier: + gameName: {fileID: 7987695887333318505} + gameDescription: {fileID: 2579340166814486889} + gameIcon: + releaseDate: + playerTypes: [] + genre: [] + production: + platforms: [] + artStyles: [] + developer: + otherTags: [] + minSystemReq: + createButton: {fileID: 7453066695493922721} + infoText: {fileID: 5023441213902666531} --- !u!1 &7849482049827110041 GameObject: m_ObjectHideFlags: 0 @@ -1505,10 +2053,10 @@ RectTransform: m_LocalScale: {x: 0.9988869, y: 0.9988869, z: 0.9988869} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 2071040033682774163} - {fileID: 3675475422895423483} + - {fileID: 5020926991034374246} m_Father: {fileID: 8015390203514921263} - m_RootOrder: 3 + m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} @@ -1622,7 +2170,7 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 7580030324547307126} - m_RootOrder: 0 + m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} diff --git a/app/mobile/Assets/Scripts/Controllers/GameController.cs b/app/mobile/Assets/Scripts/Controllers/GameController.cs index c9683efc..cf98e712 100644 --- a/app/mobile/Assets/Scripts/Controllers/GameController.cs +++ b/app/mobile/Assets/Scripts/Controllers/GameController.cs @@ -4,10 +4,12 @@ public class GameController { } +// Below is for the POST endpoint for game/get-game-list // Response is a list of GameListEntry's public class GetGameListRequest { public bool findDeleted; + public string gameName; public string[] playerTypes; public string[] genre; public string production; @@ -16,6 +18,14 @@ public class GetGameListRequest public string search; } +// Below is for the GET endpoint for game/get-game-list +// Used in GETGetGameList.cs +// Response is a list of GameListEntry's +// Query parameters: +// bool findDeleted, string gameName, string[] playerTypes +// string[] genre, string production, string[] platform +// string[] artStyle, string search + public class GameListEntry { public string id; @@ -26,7 +36,7 @@ public class GameListEntry // Also send Authorization as query parameter // Response is GameDetail -public class CreateGameResponse +public class CreateGameRequest { public string gameName; public string gameDescription; @@ -71,8 +81,8 @@ public class GameDetail public string gameName; public string gameDescription; public string gameIcon; - public string overallRating; - public string ratingCount; + public double overallRating; + public int ratingCount; public string releaseDate; public string forum; public string[] playerTypes; @@ -84,6 +94,7 @@ public class GameDetail public string developer; public string[] otherTags; public string minSystemReq; + public string[] allTags; } // For GetAllTagsRequest send gameId as a query parameter @@ -101,5 +112,6 @@ public class GetAllTagsResponse public string[] otherTags; } - +// For GameByNameRequest send name of the game as a query parameter +// Response is a GetGameResponse diff --git a/app/mobile/Assets/Scripts/CreateGame.cs b/app/mobile/Assets/Scripts/CreateGame.cs index 0cb63674..38721d23 100644 --- a/app/mobile/Assets/Scripts/CreateGame.cs +++ b/app/mobile/Assets/Scripts/CreateGame.cs @@ -10,8 +10,21 @@ public class CreateGame : MonoBehaviour { - public TMP_InputField nameInputField; - public TMP_InputField summaryInputField; + [SerializeField] private TMP_InputField gameName; + [SerializeField] private TMP_InputField gameDescription; + [SerializeField] private string gameIcon; + [SerializeField] private string releaseDate; + [SerializeField] private string[] playerTypes; + [SerializeField] private string[] genre; + [SerializeField] private string production; + [SerializeField] private string[] platforms; + [SerializeField] private string[] artStyles; + [SerializeField] private string developer; + [SerializeField] private string[] otherTags; + [SerializeField] private string minSystemReq; + + // public TMP_InputField nameInputField; + // public TMP_InputField summaryInputField; private CanvasManager canvasManager; [SerializeField] private Button createButton; [SerializeField] private TMP_Text infoText; @@ -26,13 +39,46 @@ private void OnClickedCreate() { string url = AppVariables.HttpServerUrl + "/game/create"; - StartCoroutine(Post(url)); + var createGameRequest = new CreateGameRequest(); + createGameRequest.gameName = gameName.text; + createGameRequest.gameDescription = gameDescription.text; + + // Lines below will change + createGameRequest.gameIcon = "gameIcon file"; + createGameRequest.releaseDate = "2023-02-02"; + createGameRequest.playerTypes = new string[1] + { + "90d68bd5-285b-434f-9c2c-1a1b637dd83b" + }; + createGameRequest.genre= new string[1] + { + "f17297ca-8497-4a0b-8d00-a1995187cdc5" + }; + createGameRequest.production = "373a9a0b-af34-40b4-9764-1ef055dcc27f"; + createGameRequest.platforms= new string[3] + { + "b2f060aa-a4f7-467c-9519-6570ddcd82ef", + "d750d4ba-544c-42b1-8967-39b01626c6c2", + "37a797a0-907d-4579-9d23-d69b898bb63a" + }; + createGameRequest.artStyles= new string[1] + { + "1f3ebcaf-8776-4b9e-957a-d80070616343" + }; + createGameRequest.developer= "1cea6329-ccb2-4864-bbdf-24d7c1e3d396"; + createGameRequest.otherTags = new string [0]; + createGameRequest.minSystemReq = "min system requirements"; + + string bodyJsonString = JsonUtility.ToJson(createGameRequest); + StartCoroutine(Post(url,bodyJsonString)); } - IEnumerator Post(string url) + IEnumerator Post(string url, string bodyJsonString) { var request = new UnityWebRequest(url, "POST"); + byte[] bodyRaw = Encoding.UTF8.GetBytes(bodyJsonString); + request.uploadHandler = (UploadHandler) new UploadHandlerRaw(bodyRaw); request.downloadHandler = (DownloadHandler) new DownloadHandlerBuffer(); request.SetRequestHeader("Content-Type", "application/json"); request.SetRequestHeader("Authorization", PersistenceManager.UserToken); @@ -40,12 +86,16 @@ IEnumerator Post(string url) var response = request.downloadHandler.text; if (request.responseCode == 200) { - var _CreateGameResponseData = JsonConvert.DeserializeObject(response); + var _CreateGameResponseData = JsonConvert.DeserializeObject(response); Debug.Log("Success to create review: " + response); + infoText.text = "Successfully created the game"; + infoText.color = Color.green; } else { Debug.Log("Error to create review: " + response); + infoText.text = "Unable to create the game"; + infoText.color = Color.red; } request.downloadHandler.Dispose(); diff --git a/app/mobile/Assets/Scripts/GameDetails.cs b/app/mobile/Assets/Scripts/GameDetails.cs index 64c956f6..f9f82973 100644 --- a/app/mobile/Assets/Scripts/GameDetails.cs +++ b/app/mobile/Assets/Scripts/GameDetails.cs @@ -38,8 +38,8 @@ public class GameDetails : MonoBehaviour private string gameName; private string gameDescription; private string gameIcon; - private string overallRating; - private string ratingCount; + private double overallRating; + private int ratingCount; private string releaseDate; private string forum; private string[] playerTypes; @@ -162,7 +162,7 @@ IEnumerator Get(string url) overallRating = _gamesData.game.overallRating; ratingCount = _gamesData.game.ratingCount; releaseDate = _gamesData.game.releaseDate; - forum = "b4036d6f-0e69-4df3-a935-a84750dc2bcd"; + forum = _gamesData.game.forum; playerTypes = _gamesData.game.playerTypes; genre = _gamesData.game.genre; production = _gamesData.game.production; diff --git a/app/mobile/Assets/Scripts/GameRequests.meta b/app/mobile/Assets/Scripts/GameRequests.meta new file mode 100644 index 00000000..36fdb270 --- /dev/null +++ b/app/mobile/Assets/Scripts/GameRequests.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1727dd8ee9dc4f326b33bff89140a98f +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/app/mobile/Assets/Scripts/GameRequests/GETGetGameList.cs b/app/mobile/Assets/Scripts/GameRequests/GETGetGameList.cs new file mode 100644 index 00000000..e3a97f9c --- /dev/null +++ b/app/mobile/Assets/Scripts/GameRequests/GETGetGameList.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using UnityEngine; +using UnityEngine.Networking; +using Newtonsoft.Json; + +public class GETGetGameList : MonoBehaviour +{ + // We can get these variables in another way, depending on the + // implementation of the program + [SerializeField] private bool findDeleted; + [SerializeField] private string gameName; + [SerializeField] private string[] playerTypes; + [SerializeField] private string[] genre; + [SerializeField] private string production; + [SerializeField] private string[] platform; + [SerializeField] private string[] artStyle; + [SerializeField] private string search; + + private void Start() + { + Init(); + } + + public void Init() + { + // Specify the name and the values of parameters you want added to the query in + // ListToQueryParams function + string url = AppVariables.HttpServerUrl + "/game/game-by-name" + + ListToQueryParameters.ListToQueryParams(new []{"findDeleted"}, + new []{findDeleted.ToString()}); + StartCoroutine(Get(url)); + } + IEnumerator Get(string url) + { + var request = new UnityWebRequest(url, "GET"); + request.downloadHandler = new DownloadHandlerBuffer(); + request.SetRequestHeader("Content-Type", "application/json"); + + yield return request.SendWebRequest(); + string response = ""; + if (request.responseCode != null && request.responseCode == 200) + { + response = request.downloadHandler.text; + var _GETGetGameListResponseData = JsonConvert.DeserializeObject(response); + + Debug.Log("Success to create forum post: " + response); + } + else + { + Debug.Log("Error to create forum post: " + response); + } + request.downloadHandler.Dispose(); + } + +} \ No newline at end of file diff --git a/app/mobile/Assets/Scripts/GameRequests/GETGetGameList.cs.meta b/app/mobile/Assets/Scripts/GameRequests/GETGetGameList.cs.meta new file mode 100644 index 00000000..5a6c8a47 --- /dev/null +++ b/app/mobile/Assets/Scripts/GameRequests/GETGetGameList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fdd2040a28b3f5fddb17af94450f459a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/app/mobile/Assets/Scripts/GameRequests/GameAddTag.cs b/app/mobile/Assets/Scripts/GameRequests/GameAddTag.cs new file mode 100644 index 00000000..1a5306a2 --- /dev/null +++ b/app/mobile/Assets/Scripts/GameRequests/GameAddTag.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using UnityEngine; +using UnityEngine.Networking; +using Newtonsoft.Json; + +public class GameAddTag : MonoBehaviour +{ + [SerializeField] private string gameId; + [SerializeField] private string tagId; + + private void Start() + { + Init(); + } + + public void Init() + { + string url = AppVariables.HttpServerUrl + "/game/add-tag"; + var gameAddTagRequest = new GameAddTagRequest(); + // gameId can also be taken from the environment, depending on the + // implementation of this script + gameAddTagRequest.gameId = gameId; + gameAddTagRequest.tagId = tagId; + string bodyJsonString = JsonUtility.ToJson(gameAddTagRequest); + StartCoroutine(Post(url, bodyJsonString)); + } + IEnumerator Post(string url, string bodyJsonString) + { + var request = new UnityWebRequest(url, "POST"); + byte[] bodyRaw = Encoding.UTF8.GetBytes(bodyJsonString); + request.uploadHandler = new UploadHandlerRaw(bodyRaw); + request.downloadHandler = new DownloadHandlerBuffer(); + request.SetRequestHeader("Content-Type", "application/json"); + request.SetRequestHeader("Authorization", PersistenceManager.UserToken); + + yield return request.SendWebRequest(); + string response = ""; + if (request.responseCode == 200) + { + response = request.downloadHandler.text; + var _GameAddTagResponseData = JsonConvert.DeserializeObject(response); + + Debug.Log("Success to create forum post: " + response); + } + else + { + Debug.Log("Error to create forum post: " + response); + } + request.downloadHandler.Dispose(); + request.uploadHandler.Dispose(); + } + +} \ No newline at end of file diff --git a/app/mobile/Assets/Scripts/GameRequests/GameAddTag.cs.meta b/app/mobile/Assets/Scripts/GameRequests/GameAddTag.cs.meta new file mode 100644 index 00000000..15e2ea4a --- /dev/null +++ b/app/mobile/Assets/Scripts/GameRequests/GameAddTag.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 108e3c88632968a48b9dcb3c8e8fd26a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/app/mobile/Assets/Scripts/GameRequests/GameByName.cs b/app/mobile/Assets/Scripts/GameRequests/GameByName.cs new file mode 100644 index 00000000..91f6b477 --- /dev/null +++ b/app/mobile/Assets/Scripts/GameRequests/GameByName.cs @@ -0,0 +1,49 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using UnityEngine; +using UnityEngine.Networking; +using Newtonsoft.Json; + +public class GameByName : MonoBehaviour +{ + // name (of the game) can also be taken from the environment, depending + // on the implementation of this script + [SerializeField] private string name; + + private void Start() + { + Init(); + } + + public void Init() + { + string url = AppVariables.HttpServerUrl + "/game/game-by-name" + + ListToQueryParameters.ListToQueryParams(new []{"name"}, + new []{name}); + StartCoroutine(Get(url)); + } + IEnumerator Get(string url) + { + var request = new UnityWebRequest(url, "GET"); + request.downloadHandler = new DownloadHandlerBuffer(); + request.SetRequestHeader("Content-Type", "application/json"); + + yield return request.SendWebRequest(); + string response = ""; + if (request.responseCode != null && request.responseCode == 200) + { + response = request.downloadHandler.text; + var _GameByNameResponseData = JsonConvert.DeserializeObject(response); + + Debug.Log("Success to create forum post: " + response); + } + else + { + Debug.Log("Error to create forum post: " + response); + } + request.downloadHandler.Dispose(); + } + +} \ No newline at end of file diff --git a/app/mobile/Assets/Scripts/GameRequests/GameByName.cs.meta b/app/mobile/Assets/Scripts/GameRequests/GameByName.cs.meta new file mode 100644 index 00000000..dc372e63 --- /dev/null +++ b/app/mobile/Assets/Scripts/GameRequests/GameByName.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 81f62406751b1df8a9d79584189410ae +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/app/mobile/Assets/Scripts/GameRequests/GameGetAllTags.cs b/app/mobile/Assets/Scripts/GameRequests/GameGetAllTags.cs new file mode 100644 index 00000000..bd08f482 --- /dev/null +++ b/app/mobile/Assets/Scripts/GameRequests/GameGetAllTags.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using UnityEngine; +using UnityEngine.Networking; +using Newtonsoft.Json; + +public class GameGetAllTags : MonoBehaviour +{ + // gameId can also be taken from the environment, depending on the + // implementation of this script + [SerializeField] private string gameId; + + private void Start() + { + Init(); + } + + public void Init() + { + string url = AppVariables.HttpServerUrl + "/game/get-all-tags" + + ListToQueryParameters.ListToQueryParams(new []{"gameId"}, + new []{gameId}); + StartCoroutine(Post(url)); + } + IEnumerator Post(string url) + { + var request = new UnityWebRequest(url, "POST"); + request.downloadHandler = new DownloadHandlerBuffer(); + request.SetRequestHeader("Content-Type", "application/json"); + request.SetRequestHeader("Authorization", PersistenceManager.UserToken); + + yield return request.SendWebRequest(); + string response = ""; + if (request.responseCode == 200) + { + response = request.downloadHandler.text; + var _GetAllTagsResponseData = JsonConvert.DeserializeObject(response); + + Debug.Log("Success to create forum post: " + response); + } + else + { + Debug.Log("Error to create forum post: " + response); + } + request.downloadHandler.Dispose(); + } + +} \ No newline at end of file diff --git a/app/mobile/Assets/Scripts/GameRequests/GameGetAllTags.cs.meta b/app/mobile/Assets/Scripts/GameRequests/GameGetAllTags.cs.meta new file mode 100644 index 00000000..1df269e2 --- /dev/null +++ b/app/mobile/Assets/Scripts/GameRequests/GameGetAllTags.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f91a7b93b167d1bc9ed4eee17624285 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/app/mobile/Assets/Scripts/GameRequests/GetGame.cs b/app/mobile/Assets/Scripts/GameRequests/GetGame.cs new file mode 100644 index 00000000..1d12cd33 --- /dev/null +++ b/app/mobile/Assets/Scripts/GameRequests/GetGame.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using UnityEngine; +using UnityEngine.Networking; +using Newtonsoft.Json; + +public class GetGame : MonoBehaviour +{ + // gameId can also be taken from the environment, depending on the + // implementation of this script + [SerializeField] private string gameId; + + private void Start() + { + Init(); + } + + public void Init() + { + string url = AppVariables.HttpServerUrl + "/game/get-game" + + ListToQueryParameters.ListToQueryParams(new[] { "gameId" }, + new[] { gameId }); + + StartCoroutine(Post(url)); + } + IEnumerator Post(string url) + { + var request = new UnityWebRequest(url, "POST"); + request.downloadHandler = new DownloadHandlerBuffer(); + request.SetRequestHeader("Content-Type", "application/json"); + + yield return request.SendWebRequest(); + string response = ""; + if (request.responseCode == 200) + { + response = request.downloadHandler.text; + var _GetGameResponseData = JsonConvert.DeserializeObject(response); + + Debug.Log("Success to create forum post: " + response); + } + else + { + Debug.Log("Error to create forum post: " + response); + } + request.downloadHandler.Dispose(); + } + +} \ No newline at end of file diff --git a/app/mobile/Assets/Scripts/GameRequests/GetGame.cs.meta b/app/mobile/Assets/Scripts/GameRequests/GetGame.cs.meta new file mode 100644 index 00000000..52f030a0 --- /dev/null +++ b/app/mobile/Assets/Scripts/GameRequests/GetGame.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3947f9400ee2d62acb8fd9e87a5d76dd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: