Commit d821a79c authored by shujianhe's avatar shujianhe

1

parent 88ba8af5
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &3180119516630479831
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1650771816888303372}
- component: {fileID: 3308436616732937161}
- component: {fileID: 6541179535623273855}
m_Layer: 5
m_Name: Text (Legacy)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1650771816888303372
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3180119516630479831}
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: 8949363307807064955}
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: 0, y: 15.7}
m_SizeDelta: {x: 200, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3308436616732937161
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3180119516630479831}
m_CullTransparentMesh: 1
--- !u!114 &6541179535623273855
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3180119516630479831}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 0.018810872, b: 0, 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_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 14
m_FontStyle: 1
m_BestFit: 0
m_MinSize: 10
m_MaxSize: 40
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: 3
--- !u!1 &3546339295419356428
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4559978795834296521}
- component: {fileID: 5273378754879921730}
- component: {fileID: 7846723963978047076}
m_Layer: 5
m_Name: Image
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &4559978795834296521
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3546339295419356428}
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: 8949363307807064955}
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: 0, y: 0}
m_SizeDelta: {x: 200, y: 200}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5273378754879921730
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3546339295419356428}
m_CullTransparentMesh: 1
--- !u!114 &7846723963978047076
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3546339295419356428}
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: 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: 0}
m_Type: 0
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 &4964737974629110049
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8949363307807064955}
- component: {fileID: 656215632095713076}
m_Layer: 5
m_Name: GameObjectTestTableView
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &8949363307807064955
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4964737974629110049}
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: 4559978795834296521}
- {fileID: 1650771816888303372}
m_Father: {fileID: 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}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 200, y: 200}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &656215632095713076
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4964737974629110049}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 97e1b3bd859810f47a14fc1ae7d2cef9, type: 3}
m_Name:
m_EditorClassIdentifier:
fileFormatVersion: 2
guid: 72a0777e25447eb47aa98b35f7971979
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
fileFormatVersion: 2
guid: e2f00cfdb21d04b46adf17805f74f20c
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
...@@ -298,6 +298,7 @@ GameObject: ...@@ -298,6 +298,7 @@ GameObject:
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 4896801620172596148} - component: {fileID: 4896801620172596148}
- component: {fileID: 8291098491972425188}
m_Layer: 5 m_Layer: 5
m_Name: home_img_item m_Name: home_img_item
m_TagString: Untagged m_TagString: Untagged
...@@ -326,6 +327,19 @@ RectTransform: ...@@ -326,6 +327,19 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &8291098491972425188
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4612124439141793408}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8661f04b3ddf1664683f94189f36fef6, type: 3}
m_Name:
m_EditorClassIdentifier:
id:
--- !u!1 &5136532326591982745 --- !u!1 &5136532326591982745
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -337,6 +351,7 @@ GameObject: ...@@ -337,6 +351,7 @@ GameObject:
- component: {fileID: 3263067984028074529} - component: {fileID: 3263067984028074529}
- component: {fileID: 8196063681171707587} - component: {fileID: 8196063681171707587}
- component: {fileID: 2065654780135064377} - component: {fileID: 2065654780135064377}
- component: {fileID: 968353906218267197}
m_Layer: 5 m_Layer: 5
m_Name: bg m_Name: bg
m_TagString: Untagged m_TagString: Untagged
...@@ -405,6 +420,62 @@ MonoBehaviour: ...@@ -405,6 +420,62 @@ MonoBehaviour:
m_FillOrigin: 0 m_FillOrigin: 0
m_UseSpriteMesh: 0 m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1 m_PixelsPerUnitMultiplier: 1
--- !u!114 &968353906218267197
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5136532326591982745}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, 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: 0
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: 2065654780135064377}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 8291098491972425188}
m_TargetAssemblyTypeName: mainImageItem, Assembly-CSharp
m_MethodName: onClick
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
--- !u!1 &6855304083778800114 --- !u!1 &6855304083778800114
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -458,7 +529,7 @@ MonoBehaviour: ...@@ -458,7 +529,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6855304083778800114} m_GameObject: {fileID: 6855304083778800114}
m_Enabled: 0 m_Enabled: 1
m_EditorHideFlags: 0 m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name: m_Name:
......
%YAML 1.1 %YAML 1.1
%TAG !u! tag:unity3d.com,2011: %TAG !u! tag:unity3d.com,2011:
--- !u!1 &3238313604579897031
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2640128719604436268}
- component: {fileID: 3992049485597450598}
- component: {fileID: 158270430655826521}
m_Layer: 5
m_Name: tv
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2640128719604436268
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3238313604579897031}
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: 4275644949097517629}
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: 0, y: 0}
m_SizeDelta: {x: 160, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3992049485597450598
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3238313604579897031}
m_CullTransparentMesh: 1
--- !u!114 &158270430655826521
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3238313604579897031}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 0
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 20
m_FontStyle: 1
m_BestFit: 0
m_MinSize: 2
m_MaxSize: 40
m_Alignment: 1
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: dsfdsfxc
--- !u!1 &3456997646523555449 --- !u!1 &3456997646523555449
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -11,6 +91,7 @@ GameObject: ...@@ -11,6 +91,7 @@ GameObject:
- component: {fileID: 5957004656514237942} - component: {fileID: 5957004656514237942}
- component: {fileID: 5753479187606545707} - component: {fileID: 5753479187606545707}
- component: {fileID: 6722746518058714859} - component: {fileID: 6722746518058714859}
- component: {fileID: 7875488080179542405}
m_Layer: 5 m_Layer: 5
m_Name: bg m_Name: bg
m_TagString: Untagged m_TagString: Untagged
...@@ -76,6 +157,62 @@ MonoBehaviour: ...@@ -76,6 +157,62 @@ MonoBehaviour:
m_FillOrigin: 0 m_FillOrigin: 0
m_UseSpriteMesh: 0 m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1 m_PixelsPerUnitMultiplier: 1
--- !u!114 &7875488080179542405
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3456997646523555449}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, 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: 0
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: 6722746518058714859}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 6843812745667478641}
m_TargetAssemblyTypeName: prfb_hor_item, Assembly-CSharp
m_MethodName: onClick
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
--- !u!1 &7016179276400819657 --- !u!1 &7016179276400819657
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -85,6 +222,8 @@ GameObject: ...@@ -85,6 +222,8 @@ GameObject:
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 4275644949097517629} - component: {fileID: 4275644949097517629}
- component: {fileID: 2500202259206889632}
- component: {fileID: 6843812745667478641}
m_Layer: 5 m_Layer: 5
m_Name: prfb_hor_item m_Name: prfb_hor_item
m_TagString: Untagged m_TagString: Untagged
...@@ -106,14 +245,35 @@ RectTransform: ...@@ -106,14 +245,35 @@ RectTransform:
m_Children: m_Children:
- {fileID: 5957004656514237942} - {fileID: 5957004656514237942}
- {fileID: 2419714400001132713} - {fileID: 2419714400001132713}
- {fileID: 2640128719604436268}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: -1 m_RootOrder: -1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -2, y: 71} m_AnchoredPosition: {x: 0, y: 71}
m_SizeDelta: {x: 100, y: 100} m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2500202259206889632
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7016179276400819657}
m_CullTransparentMesh: 1
--- !u!114 &6843812745667478641
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7016179276400819657}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 453584c400f8e2a48aab8b9e9edfa70c, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &7428442116741740939 --- !u!1 &7428442116741740939
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -126,12 +286,12 @@ GameObject: ...@@ -126,12 +286,12 @@ GameObject:
- component: {fileID: 6342871184814241352} - component: {fileID: 6342871184814241352}
- component: {fileID: 8536663407115754181} - component: {fileID: 8536663407115754181}
m_Layer: 5 m_Layer: 5
m_Name: tv m_Name: tv1
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 0
--- !u!224 &2419714400001132713 --- !u!224 &2419714400001132713
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -149,8 +309,8 @@ RectTransform: ...@@ -149,8 +309,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 1.2329, y: 0}
m_SizeDelta: {x: 200, y: 50} m_SizeDelta: {x: 149.3487, y: 45}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6342871184814241352 --- !u!222 &6342871184814241352
CanvasRenderer: CanvasRenderer:
...@@ -174,13 +334,13 @@ MonoBehaviour: ...@@ -174,13 +334,13 @@ MonoBehaviour:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_Material: {fileID: 0} m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1} m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1 m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1 m_Maskable: 0
m_OnCullStateChanged: m_OnCullStateChanged:
m_PersistentCalls: m_PersistentCalls:
m_Calls: [] m_Calls: []
m_text: m_text: 5555555566662
m_isRightToLeft: 0 m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
...@@ -189,8 +349,8 @@ MonoBehaviour: ...@@ -189,8 +349,8 @@ MonoBehaviour:
m_fontMaterials: [] m_fontMaterials: []
m_fontColor32: m_fontColor32:
serializedVersion: 2 serializedVersion: 2
rgba: 4294111986 rgba: 4294967295
m_fontColor: {r: 0.9490196, g: 0.9490196, b: 0.9490196, a: 1} m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0 m_enableVertexGradient: 0
m_colorMode: 3 m_colorMode: 3
m_fontColorGradient: m_fontColorGradient:
...@@ -207,12 +367,12 @@ MonoBehaviour: ...@@ -207,12 +367,12 @@ MonoBehaviour:
m_faceColor: m_faceColor:
serializedVersion: 2 serializedVersion: 2
rgba: 4294967295 rgba: 4294967295
m_fontSize: 32 m_fontSize: 20.55
m_fontSizeBase: 32 m_fontSizeBase: 32
m_fontWeight: 400 m_fontWeight: 400
m_enableAutoSizing: 0 m_enableAutoSizing: 1
m_fontSizeMin: 18 m_fontSizeMin: 20
m_fontSizeMax: 72 m_fontSizeMax: 36
m_fontStyle: 0 m_fontStyle: 0
m_HorizontalAlignment: 2 m_HorizontalAlignment: 2
m_VerticalAlignment: 512 m_VerticalAlignment: 512
...@@ -225,7 +385,7 @@ MonoBehaviour: ...@@ -225,7 +385,7 @@ MonoBehaviour:
m_charWidthMaxAdj: 0 m_charWidthMaxAdj: 0
m_enableWordWrapping: 1 m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4 m_wordWrappingRatios: 0.4
m_overflowMode: 0 m_overflowMode: 1
m_linkedTextComponent: {fileID: 0} m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0} parentLinkedComponent: {fileID: 0}
m_enableKerning: 1 m_enableKerning: 1
...@@ -237,7 +397,7 @@ MonoBehaviour: ...@@ -237,7 +397,7 @@ MonoBehaviour:
m_isCullingEnabled: 0 m_isCullingEnabled: 0
m_horizontalMapping: 0 m_horizontalMapping: 0
m_verticalMapping: 0 m_verticalMapping: 0
m_uvLineOffset: 0 m_uvLineOffset: 2
m_geometrySortingOrder: 0 m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0 m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0 m_VertexBufferAutoSizeReduction: 0
......
This diff is collapsed.
This diff is collapsed.
...@@ -51,12 +51,10 @@ public class GameScenUserInfo ...@@ -51,12 +51,10 @@ public class GameScenUserInfo
} }
public string getLocalThumbnailPath() public string getLocalThumbnailPath()
{ {
if (id.Equals("")) return ""; string path = utilsTools.getWritableByPath(RunGameDatasRootName + "Thumbnail");
string path = getUrlByLocalPath(json); utilsTools.CreateDirectory(path);
if (path.Equals("")) return ""; path = path + "/" + id + ".png";
int idx = path.LastIndexOf("/"); return path;
string ret = path.Substring(0, idx+1) + id + "/run_suolue_line.png";
return ret;
} }
public bool createWorkDirectory() public bool createWorkDirectory()
{ {
...@@ -65,6 +63,10 @@ public class GameScenUserInfo ...@@ -65,6 +63,10 @@ public class GameScenUserInfo
int idx = path.LastIndexOf("/"); int idx = path.LastIndexOf("/");
string dirpath = path.Substring(0, idx); string dirpath = path.Substring(0, idx);
utilsTools.CreateDirectory(dirpath);
path = getPathByFormath("temp.png");
idx = path.LastIndexOf("/");
dirpath = path.Substring(0, idx);
utilsTools.CreateDirectory(dirpath); utilsTools.CreateDirectory(dirpath);
return true; return true;
} }
......
...@@ -18,4 +18,8 @@ public class gameAreaItem ...@@ -18,4 +18,8 @@ public class gameAreaItem
public bool notPaintCol;//未启用 public bool notPaintCol;//未启用
public string tempExKey = ""; public string tempExKey = "";
public bool isShow = false; public bool isShow = false;
public override string ToString()
{
return string.Format("x {0},y {1},r {2},id= {3},gid = {4}", px, py, pr, id,gid);
}
} }
...@@ -18,9 +18,16 @@ public class gameIdJsonData ...@@ -18,9 +18,16 @@ public class gameIdJsonData
} }
return false; return false;
} }
public bool findAid(short id) public gameAreaItem getAid(short id)
{ {
return false; for (int i = 0; i < roomDatas.Count; i++)
{
if (roomDatas[i].id.Equals(id))
{
return roomDatas[i];
}
}
return null;
} }
public gameAreaGroupItem getRoomGroup(short id) public gameAreaGroupItem getRoomGroup(short id)
{ {
......
...@@ -2,30 +2,81 @@ using JetBrains.Annotations; ...@@ -2,30 +2,81 @@ using JetBrains.Annotations;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
//这是http://8.218.187.222:19897/app/v1/game/ts/tagList?tag=All&page=1&zygt=hzwz&tgtk=1 返回的数据模型适应类
[System.Serializable]
public class resultData<T>
{
public List<T> data;
}
//http://192.168.124.124:19898/app/v1/game/ts/getTags?type=18&page=1&zygt=hzwz&tgtk=1
public class NetLabelTypeData
{
public int status;
public string msg;
public string sign;
public resultData<NetLableItem> result;
}
//这是http://192.168.124.124:19898/app/v2/game/ts/tagList?tagId=1&page=1&zygt=hzwz&tgtk=1 返回的数据模型适应类
public class netLabelData public class netLabelData
{ {
public int status; public int status;
public string msg; public string msg;
public string sign; public string sign;
public string security; public resultData<netLableImageItem> result;
public resultData result;
} }
[System.Serializable] [System.Serializable]
public class resultData public class NetLableItem
{ {
public List<netLableImageItem> data; public int tagId;//url拼接需要的id
public int id;//排序的id
public string tag;//显示名称
public string name()
{
return tag;
}
} }
[System.Serializable] [System.Serializable]
public class netLableImageItem public class netLableImageItem: System.Object
{ {
public string img; public string pictureAniAB;
public int createdAt; public string pictureWallThn8;
public string tags; public string pictureColorThn4;
public int datadate; public string seriesName;
public int status; public string hybridType;
public int updatedAt; public string enterType;
public System.Int64 id; public int sort;
public bool isNew = false; public int type;
public int extraType;
public int sid;
public string highImg;
public string classId;
public string originalJson;
public string displayDate;
public string id;
public string pictureWallColorThn8;
public string pictureThn4;
public string pictureBin;
public string extraJson;
public string getLineUrl()
{
return highImg;
}
public string getSmallLineUrl()
{
return pictureThn4;
}
public string getColorUrl()
{
return pictureColorThn4;
}
public string getJsonUrl()
{
return originalJson;
}
public string getId()
{
return id;
}
} }
\ No newline at end of file
using JetBrains.Annotations; using JetBrains.Annotations;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEditor.UI;
using UnityEngine; using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
...@@ -18,7 +17,7 @@ public class gameInLoading : MonoBehaviour,IEventHandler ...@@ -18,7 +17,7 @@ public class gameInLoading : MonoBehaviour,IEventHandler
{ {
float addValue = (float)objects[0]; float addValue = (float)objects[0];
bool isEnd = (bool)objects[1]; bool isEnd = (bool)objects[1];
if(isEnd == false) if(isEnd == false && tarvalue < maxvalue)
{ {
tarvalue += addValue; tarvalue += addValue;
if(tarvalue >= (maxvalue - 1f)) if(tarvalue >= (maxvalue - 1f))
...@@ -30,7 +29,7 @@ public class gameInLoading : MonoBehaviour,IEventHandler ...@@ -30,7 +29,7 @@ public class gameInLoading : MonoBehaviour,IEventHandler
{ {
tarvalue = maxvalue; tarvalue = maxvalue;
} }
float stepvalue1 = (tarvalue - nowValue) / 50f; float stepvalue1 = (tarvalue - nowValue) / 30f;
if(stepvalue1 < 0.015f) if(stepvalue1 < 0.015f)
{ {
stepvalue1 = 0.015f; stepvalue1 = 0.015f;
...@@ -47,11 +46,6 @@ public class gameInLoading : MonoBehaviour,IEventHandler ...@@ -47,11 +46,6 @@ public class gameInLoading : MonoBehaviour,IEventHandler
slider.maxValue = maxvalue; slider.maxValue = maxvalue;
slider.minValue = 0; slider.minValue = 0;
utilsTools.onEvent(this, "inGameLoadingValue"); utilsTools.onEvent(this, "inGameLoadingValue");
//utilsTools.addTimer_Sec(gameObject, "testSce", (string name) =>
//{
// utilsTools.sendEventObjectParams("inGameLoadingValue",8f,tarvalue > 60f);
// return tarvalue < 99f;
//}, 3, 10);
} }
// Update is called once per frame // Update is called once per frame
void Update() void Update()
...@@ -66,9 +60,9 @@ public class gameInLoading : MonoBehaviour,IEventHandler ...@@ -66,9 +60,9 @@ public class gameInLoading : MonoBehaviour,IEventHandler
nowValue = maxvalue; nowValue = maxvalue;
slider.value = nowValue; slider.value = nowValue;
stepvalue = 0.0f; stepvalue = 0.0f;
gameObject.SetActive(false);
//需要通知出去满了 //需要通知出去满了
utilsTools.sendEvent("inGameLoadingBarEnd"); utilsTools.sendEvent("inGameLoadingBarEnd");
gameObject.SetActive(false);
return; return;
} }
else else
......
...@@ -32,6 +32,8 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler ...@@ -32,6 +32,8 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
onEvent("gameClickPos",this.onEvent_gameClickPos_Handler); onEvent("gameClickPos",this.onEvent_gameClickPos_Handler);
onEvent("inGameLoadingBarEnd",this.onEvent_inGameLoadingBarEnd_Handler); onEvent("inGameLoadingBarEnd",this.onEvent_inGameLoadingBarEnd_Handler);
onEvent("showAreaEventOk", onSelectAreaEvent); onEvent("showAreaEventOk", onSelectAreaEvent);
onEvent("initViewShowData", onInitViewShowDataEvent);
//gameScenUser
var gridViewList = areaGroupList.GetComponent<gameSceneAreaGroupHandler>(); var gridViewList = areaGroupList.GetComponent<gameSceneAreaGroupHandler>();
gridViewList.gameObject.SetActive(false); gridViewList.gameObject.SetActive(false);
} }
...@@ -139,7 +141,13 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler ...@@ -139,7 +141,13 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
} }
private void onEvent_inGameLoadingBarEnd_Handler(List<UnityEngine.Object> uobjects, List<System.Object> objects) private void onEvent_inGameLoadingBarEnd_Handler(List<UnityEngine.Object> uobjects, List<System.Object> objects)
{ {
transform.Find("ingameLoad/loadImg").gameObject.SetActive(false); transform.Find("ingameLoad").gameObject.SetActive(false);
}
void onInitViewShowDataEvent(List<UnityEngine.Object> uobjects, List<System.Object> objects)
{
GameScenUserInfo gameScenUser = (GameScenUserInfo)objects[0];
Image image = transform.Find("ingameLoad/loadImg").GetComponent<Image>();
utilsTools.loadLocalImage(this, image, gameScenUser.getLocalThumbnailPath());
} }
void onSelectAreaEvent(List<UnityEngine.Object> uobjects, List<System.Object> objects) void onSelectAreaEvent(List<UnityEngine.Object> uobjects, List<System.Object> objects)
{ {
......
using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using Unity.VisualScripting; using Unity.VisualScripting;
...@@ -17,15 +18,31 @@ public class gameUserInfos : MonoBehaviour, IEventHandler ...@@ -17,15 +18,31 @@ public class gameUserInfos : MonoBehaviour, IEventHandler
void Start() void Start()
{ {
onEvent("showAreaEventOk", onSelectAreaEvent); onEvent("showAreaEventOk", onSelectAreaEvent);
loadTest(); onEvent("showAreaPalyerEnd", onShowAreaPalyerEndEvent);
utilsTools.addTimer_Sec(gameObject,"first", (string name) =>
{
if (utilsTools.ContainsKeyGDataByKey("nowUseGameId") == false)
{
loadTest();
}
else
{
string id = utilsTools.getGDataByKey<String>("nowUseGameId", "");
startId(id);
}
return false;
}, 1.0);
} }
public void loadTest() public void loadTest()
{ {
string id = "test"; string id = "test_1";
GameScenUserInfo gameScenUser = utilsTools.getGameScenUserInfo(id); GameScenUserInfo gameScenUser = utilsTools.getGameScenUserInfo(id);
if (gameScenUser == null) if (gameScenUser == null)
{ {
utilsTools.setGameScenUserInfo(id,"http://192.168.124.160:8795/srcImgs/colorFan/tuline.png","http://192.168.124.160:8795/srcImgs/colorFan/tucolor.png","http://192.168.124.160:8795/srcImgs/colorFan/tu.json"); //utilsTools.setGameScenUserInfo(id,"http://192.168.124.160:8795/srcImgs/colorFan/tuline.png","http://192.168.124.160:8795/srcImgs/colorFan/tucolor.png","http://192.168.124.160:8795/srcImgs/colorFan/tu.json");
utilsTools.setGameScenUserInfo(id, "http://192.168.124.160:8795/srcImgs/temp2/tuline.png", "http://192.168.124.160:8795/srcImgs/temp2/tucolor.jpg", "http://192.168.124.160:8795/srcImgs/temp2/tu.json");
gameScenUser = utilsTools.getGameScenUserInfo(id); gameScenUser = utilsTools.getGameScenUserInfo(id);
} }
if (gameScenUser == null) if (gameScenUser == null)
...@@ -46,12 +63,7 @@ public class gameUserInfos : MonoBehaviour, IEventHandler ...@@ -46,12 +63,7 @@ public class gameUserInfos : MonoBehaviour, IEventHandler
{ {
return; return;
} }
//List<short> shorts = new List<short>(); utilsTools.sendEventObjectParams("initViewShowData", gameScenUser);
//for (int i = 0; i < gameScenUser.areaInfoUseData.Count; i++)
//{
// shorts.Add(gameScenUser.areaInfoUseData[i].id);
//}
//GetComponent<mainGameView>().loadGameImgId(gameScenUser.img, gameScenUser.finishImg, gameScenUser.json,"",shorts);
if(GetComponent<mainGameView>().loadGameImgId(gameScenUser) == false) if(GetComponent<mainGameView>().loadGameImgId(gameScenUser) == false)
{ {
return; return;
...@@ -79,7 +91,15 @@ public class gameUserInfos : MonoBehaviour, IEventHandler ...@@ -79,7 +91,15 @@ public class gameUserInfos : MonoBehaviour, IEventHandler
areaInfoUseData.clickY = y; areaInfoUseData.clickY = y;
areaInfoUseData.id = gameArea.id; areaInfoUseData.id = gameArea.id;
gameScenUserInfo.areaInfoUseData.Add(areaInfoUseData); gameScenUserInfo.areaInfoUseData.Add(areaInfoUseData);
//utilsTools.saveGameScenUserInfo(gameScenUserInfo);
}
}
void onShowAreaPalyerEndEvent(List<UnityEngine.Object> uobjects, List<System.Object> objects)
{
if(gameScenUserInfo == null)
{
utilsTools.saveGameScenUserInfo(gameScenUserInfo); utilsTools.saveGameScenUserInfo(gameScenUserInfo);
return;
} }
} }
} }
This diff is collapsed.
fileFormatVersion: 2
guid: 9c04e1d5507b8f148a65b669e234b11c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
...@@ -79,46 +79,46 @@ public class salaScene_ImageView : gridView,IEventHandler ...@@ -79,46 +79,46 @@ public class salaScene_ImageView : gridView,IEventHandler
} }
private void appendData(List<netLableImageItem> data) private void appendData(List<netLableImageItem> data)
{ {
if (data.Count == onePageSize) //if (data.Count == onePageSize)
{ //{
this.nowUseIdx = this.nowUseIdx + 1; // this.nowUseIdx = this.nowUseIdx + 1;
} //}
foreach (var item in data) //foreach (var item in data)
{ //{
Int64 id = item.id; // Int64 id = item.getId();
if (checkId.ContainsKey(id) == false) // if (checkId.ContainsKey(id) == false)
{ // {
checkId.Add(id, datas.Count); // checkId.Add(id, datas.Count);
this.datas.Add(item); // this.datas.Add(item);
} // }
else // else
{ // {
datas[checkId[id]] = item; // datas[checkId[id]] = item;
} // }
} //}
if (this.nowUseLableName == "All") //if (this.nowUseLableName == "All")
{ //{
if(datas.Count > 0) // if(datas.Count > 0)
{ // {
DateTime dt = utilsTools.GetDateTimeMilliseconds(datas[0].datadate); // DateTime dt = utilsTools.GetDateTimeMilliseconds(datas[0].datadate);
DateTime dt2 = new DateTime(dt.Year, dt.Month, dt.Day, 0, 0, 0); // DateTime dt2 = new DateTime(dt.Year, dt.Month, dt.Day, 0, 0, 0);
newDateImg = utilsTools.GetTimeMillisecondsByDateTime(dt2); // newDateImg = utilsTools.GetTimeMillisecondsByDateTime(dt2);
} // }
} //}
if (newDateImg > 0) //if (newDateImg > 0)
{ //{
foreach (var item in data) // foreach (var item in data)
{ // {
item.isNew = item.datadate >= newDateImg; // //item.isNew = item.datadate >= newDateImg;
} // }
} //}
//onePageSize ////onePageSize
setData(this.datas.Count, (GameObject itemObj, int idx, ListViewBackTypeEnum type) => //setData(this.datas.Count, (GameObject itemObj, int idx, ListViewBackTypeEnum type) =>
{ //{
netLableImageItem item1 = this.datas[idx]; // netLableImageItem item1 = this.datas[idx];
itemObj.GetComponent<imageItem>().setData(item1); // itemObj.GetComponent<imageItem>().setData(item1);
}); //});
} }
} }
fileFormatVersion: 2
guid: 04c8e1e5944c9fc489a36b6d43db2f80
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: 247d49ac3c2865941aefe1a54c88ad30
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public interface TableViewItem
{
public Vector2 getSize(int idx,TableViewModel data);
public bool reuse(int idx,TableViewModel data)
{
return true;
}
public GameObject getGameObject();
public void initViewData(TableViewModel data);
public void updateViewData(TableViewModel data);
public virtual void debugTest(bool isShow) { }
}
\ No newline at end of file
fileFormatVersion: 2
guid: 47e87ab4da6625e4daf366e25f5681d8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public interface TableViewModel
{
}
fileFormatVersion: 2
guid: be98dc638d6b6e5499d66172180e6937
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: d0bb6c36154608b489c44c4c8c482ad4
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
using UnityEngine;
using UnityEngine.UI;
namespace NSUListView
{
public abstract class IUListItemView : MonoBehaviour
{
RectTransform rectTransform;
public abstract void SetData(object data);
public virtual Vector2 GetItemSize(object data)
{
if (null == rectTransform)
{
rectTransform = transform as RectTransform;
}
return rectTransform.rect.size;
}
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: abdb4484cb09e7a4692a5d95497a7783
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: 253129d4469ae2a43805ba105b12abb1
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System.Collections.Generic;
using System;
namespace NSUListView
{
public class UGridListView : IUListView
{
[Tooltip("List Item Object, must set")]
public GameObject itemPrefab;
protected List<GameObject> lstItems;
private int numPerRow;
private int numPerColumn;
private Vector2 padding;
private Vector2 itemSize;
public override void Init ()
{
base.Init ();
// record the item size
IUListItemView itemView = itemPrefab.GetComponent<IUListItemView> ();
itemSize = itemView.GetItemSize (null);
// record max numbers per row/column
numPerRow = (int)(scrollRectSize.x / (itemSize.x + spacing.x));
numPerColumn = (int)(scrollRectSize.y / (itemSize.y + spacing.y));
if (numPerRow < 1 || numPerColumn < 1)
{
Debug.LogError("ScrollRect size is too small to contain even one item");
}
// to make items center aligned
padding = Vector2.zero;
// spawn pool for listitems
lstItems = new List<GameObject> ();
}
public override int GetMaxShowItemNum()
{
int max = 0;
// calculate the max show nums
switch (layout)
{
case Layout.Horizontal:
max = ((int)(scrollRectSize.x / itemSize.x) + 2) * numPerColumn;
break;
case Layout.Vertical:
max = ((int)(scrollRectSize.y / itemSize.y) + 2) * numPerRow;
break;
}
return max;
}
public override int GetStartIndex()
{
Vector2 anchorPosition = content.anchoredPosition;
anchorPosition.x *= -1;
int index = 0;
switch (layout)
{
case Layout.Vertical:
index = (int)(anchorPosition.y / (itemSize.y + spacing.y)) * numPerRow;
break;
case Layout.Horizontal:
index = (int)(anchorPosition.x / (itemSize.x + spacing.x)) * numPerColumn;
break;
}
if (index < 0) index = 0;
if (index >= lstData.Count) index = 0;
return index;
}
public override Vector2 GetItemAnchorPos(int index)
{
Vector2 basePos = Vector2.zero;
Vector2 offset = Vector2.zero;
RectTransform contentRectTransform = content.transform as RectTransform;
Vector2 contentRectSize = contentRectTransform.rect.size;
if (layout == Layout.Horizontal)
{
int offsetIndex = index % numPerColumn;
basePos.x = -contentRectSize.x / 2 + itemSize.x / 2;
offset.x = (index / numPerColumn) * (itemSize.x + spacing.x);
offset.y = contentRectSize.y / 2 - itemSize.y / 2 - offsetIndex * (itemSize.y + spacing.y);
}
else
{
int offsetIndex = index % numPerRow;
basePos.y = contentRectSize.y / 2 - itemSize.y / 2;
offset.y = -(index / numPerRow) * (itemSize.y + spacing.y);
offset.x = -(contentRectSize.x - itemSize.x)/2 + offsetIndex * (itemSize.x + spacing.x);
}
return basePos + offset + padding;
}
public override Vector2 GetContentSize()
{
Vector2 size = scrollRectSize;
int count = lstData.Count;
switch (layout)
{
case Layout.Horizontal:
count = (count + numPerColumn - 1) / numPerColumn;
size.x = itemSize.x * count + spacing.x *( count > 0 ? count -1 : count );
break;
case Layout.Vertical:
count = (count + numPerRow - 1) / numPerRow;
size.y = itemSize.y * count + spacing.y * ( count > 0 ? count - 1 : count );
break;
}
return size;
}
public override GameObject GetItemGameObject(int index)
{
if(index < lstItems.Count)
{
GameObject go = lstItems[index];
if(false == go.activeSelf)
{
go.SetActive(true);
}
return lstItems [index];
}
else
{
GameObject go = GameObject.Instantiate(itemPrefab) as GameObject;
lstItems.Add (go);
return go;
}
}
public override void HideNonuseableItems ()
{
for (int i = lstData.Count; lstItems != null && i < lstItems.Count; ++i)
{
if(lstItems[i].activeSelf)
{
lstItems[i].SetActive(false);
}
}
}
public override Vector2 GetItemSize(int index)
{
return itemSize;
}
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: e594b9e4bae554246abaec908032736d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: 0e9fb345d0977d940b108120030ca4cf
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: 0b6ba8601bc04ef43b7a27ed8685c220
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: df64be0ca0b5aac4a8a3e5fbcc8cb931
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UTableView
{
public interface UTableData
{
}
}
fileFormatVersion: 2
guid: ee14362e784fd6f43afeae1587bd8dbb
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: 0ae389d45a88a0f499465d073b3d59ff
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment