diff --git a/Assets/PerfectWorld/Prefab/UI/General.meta b/Assets/PerfectWorld/Prefab/UI/General.meta
new file mode 100644
index 0000000000..0c53028c91
--- /dev/null
+++ b/Assets/PerfectWorld/Prefab/UI/General.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 116ed3d1e0ef6f040acab9378fbe4fad
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/PerfectWorld/Prefab/UI/General/DlgHost.prefab b/Assets/PerfectWorld/Prefab/UI/General/DlgHost.prefab
new file mode 100644
index 0000000000..6d46bbdb7e
--- /dev/null
+++ b/Assets/PerfectWorld/Prefab/UI/General/DlgHost.prefab
@@ -0,0 +1,50 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!1 &6032603119232429246
+GameObject:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ serializedVersion: 6
+ m_Component:
+ - component: {fileID: 8719383145939716431}
+ - component: {fileID: 3570251765210904899}
+ m_Layer: 5
+ m_Name: DlgHost
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!224 &8719383145939716431
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 6032603119232429246}
+ 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: 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!114 &3570251765210904899
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 6032603119232429246}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 11e80692643c0ff4ca58d76679b26327, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
diff --git a/Assets/PerfectWorld/Prefab/UI/General/DlgHost.prefab.meta b/Assets/PerfectWorld/Prefab/UI/General/DlgHost.prefab.meta
new file mode 100644
index 0000000000..cebf627654
--- /dev/null
+++ b/Assets/PerfectWorld/Prefab/UI/General/DlgHost.prefab.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 8350aa55906d08448bb47e10a473ca61
+PrefabImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/PerfectWorld/Prefab/UI/General/Win_Prgs2.prefab b/Assets/PerfectWorld/Prefab/UI/General/Win_Prgs2.prefab
new file mode 100644
index 0000000000..19be8c7eb5
--- /dev/null
+++ b/Assets/PerfectWorld/Prefab/UI/General/Win_Prgs2.prefab
@@ -0,0 +1,541 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!1 &874343250186730391
+GameObject:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ serializedVersion: 6
+ m_Component:
+ - component: {fileID: 2000867345168672731}
+ m_Layer: 5
+ m_Name: Fill Area
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!224 &2000867345168672731
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 874343250186730391}
+ 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: 6818571886471270641}
+ m_Father: {fileID: 6752023868063132973}
+ m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_AnchorMin: {x: 0, y: 0.25}
+ m_AnchorMax: {x: 1, y: 0.75}
+ m_AnchoredPosition: {x: -0.17520142, y: 0}
+ m_SizeDelta: {x: -10.3504, y: 0}
+ m_Pivot: {x: 0.5, y: 0.5}
+--- !u!1 &977375840943150650
+GameObject:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ serializedVersion: 6
+ m_Component:
+ - component: {fileID: 9117663038715356283}
+ - component: {fileID: 7167547738905977378}
+ m_Layer: 5
+ m_Name: Win_Prgs2
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!224 &9117663038715356283
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 977375840943150650}
+ 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: 4072511356465673856}
+ m_Father: {fileID: 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!114 &7167547738905977378
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 977375840943150650}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 57d74d19ef3b2c44fbb72ec587caa705, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ progressSlider: {fileID: 4511831382827661534}
+ progressText: {fileID: 4983346202533902944}
+--- !u!1 &1594317373880026392
+GameObject:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ serializedVersion: 6
+ m_Component:
+ - component: {fileID: 1037508319488102731}
+ - component: {fileID: 4978542109480888980}
+ - component: {fileID: 8027776737710957383}
+ m_Layer: 5
+ m_Name: Background
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!224 &1037508319488102731
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 1594317373880026392}
+ 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: 6752023868063132973}
+ m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_AnchorMin: {x: 0, y: 0.25}
+ m_AnchorMax: {x: 1, y: 0.75}
+ m_AnchoredPosition: {x: 0, y: 0}
+ m_SizeDelta: {x: 0, y: 0}
+ m_Pivot: {x: 0.5, y: 0.5}
+--- !u!222 &4978542109480888980
+CanvasRenderer:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 1594317373880026392}
+ m_CullTransparentMesh: 1
+--- !u!114 &8027776737710957383
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 1594317373880026392}
+ 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: 10907, 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!1 &4972412303353532354
+GameObject:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ serializedVersion: 6
+ m_Component:
+ - component: {fileID: 4072511356465673856}
+ - component: {fileID: 2367954143517714233}
+ - component: {fileID: 8929200823718496348}
+ m_Layer: 5
+ m_Name: BG
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!224 &4072511356465673856
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 4972412303353532354}
+ 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: 6752023868063132973}
+ m_Father: {fileID: 9117663038715356283}
+ 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 &2367954143517714233
+CanvasRenderer:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 4972412303353532354}
+ m_CullTransparentMesh: 1
+--- !u!114 &8929200823718496348
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 4972412303353532354}
+ m_Enabled: 0
+ 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: 0
+ 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 &5268483250871520365
+GameObject:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ serializedVersion: 6
+ m_Component:
+ - component: {fileID: 6818571886471270641}
+ - component: {fileID: 208921228956184917}
+ - component: {fileID: 7529183553295306538}
+ m_Layer: 5
+ m_Name: Fill
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!224 &6818571886471270641
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 5268483250871520365}
+ 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: 2000867345168672731}
+ 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: 10, y: 0}
+ m_Pivot: {x: 0.5, y: 0.5}
+--- !u!222 &208921228956184917
+CanvasRenderer:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 5268483250871520365}
+ m_CullTransparentMesh: 1
+--- !u!114 &7529183553295306538
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 5268483250871520365}
+ 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: 10905, 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!1 &6184127327699476220
+GameObject:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ serializedVersion: 6
+ m_Component:
+ - component: {fileID: 2731797878088259642}
+ - component: {fileID: 1112745610285620432}
+ - component: {fileID: 4983346202533902944}
+ m_Layer: 5
+ m_Name: ProgressLabel
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!224 &2731797878088259642
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 6184127327699476220}
+ 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: 6752023868063132973}
+ 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.000091552734}
+ m_SizeDelta: {x: 0, y: -12.2774}
+ m_Pivot: {x: 0.5, y: 0.5}
+--- !u!222 &1112745610285620432
+CanvasRenderer:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 6184127327699476220}
+ m_CullTransparentMesh: 1
+--- !u!114 &4983346202533902944
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 6184127327699476220}
+ 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: New Text
+ 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: 6.9
+ m_fontSizeBase: 36
+ m_fontWeight: 400
+ m_enableAutoSizing: 1
+ m_fontSizeMin: 3.9
+ m_fontSizeMax: 72
+ m_fontStyle: 0
+ 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_TextWrappingMode: 1
+ m_wordWrappingRatios: 0.4
+ m_overflowMode: 0
+ m_linkedTextComponent: {fileID: 0}
+ parentLinkedComponent: {fileID: 0}
+ m_enableKerning: 0
+ m_ActiveFontFeatures: 6e72656b
+ m_enableExtraPadding: 0
+ checkPaddingRequired: 0
+ m_isRichText: 1
+ m_EmojiFallbackSupport: 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 &6667873410386005838
+GameObject:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ serializedVersion: 6
+ m_Component:
+ - component: {fileID: 6752023868063132973}
+ - component: {fileID: 4511831382827661534}
+ m_Layer: 5
+ m_Name: Slider
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 0
+--- !u!224 &6752023868063132973
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 6667873410386005838}
+ m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+ m_LocalPosition: {x: 0, y: 0, z: 0}
+ m_LocalScale: {x: 3.095, y: 3.095, z: 3.095}
+ m_ConstrainProportionsScale: 0
+ m_Children:
+ - {fileID: 1037508319488102731}
+ - {fileID: 2000867345168672731}
+ - {fileID: 2731797878088259642}
+ m_Father: {fileID: 4072511356465673856}
+ m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_AnchorMin: {x: 0.5, y: 0}
+ m_AnchorMax: {x: 0.5, y: 0}
+ m_AnchoredPosition: {x: 0, y: 82}
+ m_SizeDelta: {x: 160, y: 20}
+ m_Pivot: {x: 0.5, y: 0.5}
+--- !u!114 &4511831382827661534
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 6667873410386005838}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 67db9e8f0e2ae9c40bc1e2b64352a6b4, 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: 0
+ m_TargetGraphic: {fileID: 0}
+ m_FillRect: {fileID: 6818571886471270641}
+ m_HandleRect: {fileID: 0}
+ m_Direction: 0
+ m_MinValue: 0
+ m_MaxValue: 1
+ m_WholeNumbers: 0
+ m_Value: 1
+ m_OnValueChanged:
+ m_PersistentCalls:
+ m_Calls: []
diff --git a/Assets/PerfectWorld/Prefab/UI/General/Win_Prgs2.prefab.meta b/Assets/PerfectWorld/Prefab/UI/General/Win_Prgs2.prefab.meta
new file mode 100644
index 0000000000..219d2f3eb7
--- /dev/null
+++ b/Assets/PerfectWorld/Prefab/UI/General/Win_Prgs2.prefab.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 51bad2e6d1ec69a4683135ce85288faa
+PrefabImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/PerfectWorld/Resources/UI/DialogScriptTableObject.asset b/Assets/PerfectWorld/Resources/UI/DialogScriptTableObject.asset
index 31f1cdb26a..415919ac8c 100644
--- a/Assets/PerfectWorld/Resources/UI/DialogScriptTableObject.asset
+++ b/Assets/PerfectWorld/Resources/UI/DialogScriptTableObject.asset
@@ -23,3 +23,7 @@ MonoBehaviour:
prefab: {fileID: 6999114045547682248, guid: 8027cada0ef5e4a9f827001b4747174d, type: 3}
- id: Win_SkillSubAction
prefab: {fileID: 111271885693053298, guid: eb88919320b4229459c83b6b1f8f1e7b, type: 3}
+ - id: Win_Prgs2
+ prefab: {fileID: 977375840943150650, guid: 51bad2e6d1ec69a4683135ce85288faa, type: 3}
+ - id: Win_Hpmpxp
+ prefab: {fileID: 6032603119232429246, guid: 8350aa55906d08448bb47e10a473ca61, type: 3}
diff --git a/Assets/PerfectWorld/Scripts/Task/UI/DlgTask.cs b/Assets/PerfectWorld/Scripts/Task/UI/DlgTask.cs
index 056c535e0f..6a2f887065 100644
--- a/Assets/PerfectWorld/Scripts/Task/UI/DlgTask.cs
+++ b/Assets/PerfectWorld/Scripts/Task/UI/DlgTask.cs
@@ -483,7 +483,13 @@ namespace BrewMonster.Scripts.Task.UI
// ATaskTemplMan *pMan = GetGame()->GetTaskTemplateMan();
ATaskTemplMan pMan = EC_Game.GetTaskTemplateMan();
- CECTaskInterface pTask = GetHostPlayer().GetTaskInterface();
+
+ // Host player can be null during early UI bootstrap (before InitCharacter/self-info).
+ // In that case just no-op; quest UI will populate once the player exists and the dialog is reopened/refreshed.
+ var host = EC_Game.GetGameRun()?.GetHostPlayer();
+ if (host == null) return true;
+
+ CECTaskInterface pTask = host.GetTaskInterface();
if (pTask == null)
{
@@ -610,7 +616,7 @@ namespace BrewMonster.Scripts.Task.UI
// Setup managers and UI references
ATaskTemplMan pMan = EC_Game.GetTaskTemplateMan();
- CECTaskInterface pTask = GetHostPlayer().GetTaskInterface();
+ CECTaskInterface pTask = GetHostPlayer()?.GetTaskInterface();
var pTextDesc = m_pTxt_Content;
var pTextItem = m_pTxt_QuestItem;
@@ -871,7 +877,7 @@ namespace BrewMonster.Scripts.Task.UI
{
var pTreeTask = m_pTv_Quest;
var pMan = EC_Game.GetTaskTemplateMan();
- var pTask = GetHostPlayer().GetTaskInterface();
+ var pTask = GetHostPlayer()?.GetTaskInterface();
if (pTreeTask == null || pMan == null || pTask == null) return;
ATaskTempl parentTempl = pMan.GetTaskTemplByID(idTask);
@@ -1497,7 +1503,7 @@ namespace BrewMonster.Scripts.Task.UI
private void UpdateTaskConfirm(int idTask, bool bFinishType)
{
- CECTaskInterface pTask = GetHostPlayer().GetTaskInterface();
+ CECTaskInterface pTask = GetHostPlayer()?.GetTaskInterface();
if (m_pBtn_FinishTask != null && pTask != null && bFinishType)
{
m_pBtn_FinishTask.gameObject.SetActive(true);
@@ -1575,7 +1581,8 @@ namespace BrewMonster.Scripts.Task.UI
// pTreeTask.SetItemTextColor(pParent, GetTaskColor(pTemp));
}
- CECTaskInterface pTask = GetHostPlayer().GetTaskInterface();
+ CECTaskInterface pTask = GetHostPlayer()?.GetTaskInterface();
+ if (pTask == null) return;
string strItem = GetTaskNameWithColor(pTemp);
bool bTaskPushed = pMan.IsTaskToPush(id) && !pTask.HasTask((uint)id);
if (bTaskPushed) {
diff --git a/Assets/PerfectWorld/Scripts/UI/Dialogs/AUIDialog.cs b/Assets/PerfectWorld/Scripts/UI/Dialogs/AUIDialog.cs
index e437bf2489..58717de5d1 100644
--- a/Assets/PerfectWorld/Scripts/UI/Dialogs/AUIDialog.cs
+++ b/Assets/PerfectWorld/Scripts/UI/Dialogs/AUIDialog.cs
@@ -100,9 +100,19 @@ namespace BrewMonster.UI
{
}
+
+ public virtual void Update()
+ {
+ Render();
+ }
public virtual void OnShowDialogue()
{
}
+
+ public virtual bool Render()
+ {
+ return false;
+ }
}
}
diff --git a/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgHost.cs b/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgHost.cs
new file mode 100644
index 0000000000..9d4bea2ab4
--- /dev/null
+++ b/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgHost.cs
@@ -0,0 +1,133 @@
+using UnityEngine;
+
+namespace BrewMonster.UI
+{
+ //Win_Hpmpxp
+ public class DlgHost : AUIDialog
+ {
+ public const int AUIPROGRESS_MAX = 100;
+ private DlgWinPrgs2 _dlgWinPrgs;
+ private CECHostPlayer _pHost;
+
+ public override bool Render()
+ {
+ // if( m_szName == "Win_Hpmpxp" )
+ // RefreshHostStats();
+ // else if (m_szName == "Win_HideHP")
+ // {
+ // a_LogOutput(1,"[Dat Mine] Win_HideHP");
+ RefreshStatusBar();
+ // }
+
+ return base.Render();
+ }
+
+ public void RefreshStatusBar()
+ {
+ bool bActive = true;
+ // if( GetGameUIMan()->GetActiveDialog() &&
+ // GetGameUIMan()->GetActiveDialog()->GetFocus() &&
+ // GetGameUIMan()->GetActiveDialog()->GetFocus()->GetType() == AUIOBJECT_TYPE_EDITBOX )
+ // bActive = false;
+ //
+ // // Flight bar.
+ // RefreshFlightBar(bActive);
+ //
+ // // Oxigen bar.
+ // RefreshOxigenBar(bActive);
+
+ // Gather bar.
+ RefreshGatherBar(bActive);
+
+ // // group these bars, show only one at one time
+ // bool bShow = false;
+ // // Power bar.
+ // bShow |= RefreshPowerBar(bShow, bActive);
+ // // Array bar.
+ // bShow |= RefreshArrayBar(bShow, bActive);
+ // // Incant bar.
+ // bShow |= RefreshIncantBar(bShow, bActive);
+ //
+ // if (GetHostPlayer()->GetCurSkill() && !bShow)
+ // {
+ // // ´«Ë͵ȷ½Ê½µ¼ÖÂλÖÃÇл»¡¢¼¼ÄÜ£¨Õó¼¼ÄÜ£©ÈÔÈ»ÔÚÊÍ·Å״̬
+ // //
+ // GetGameSession()->c2s_CmdCancelAction();
+ // }
+ //
+ // // AutoHP bar.
+ // RefreshAutoHPBar(bActive);
+ //
+ // // AutoMP bar.
+ // RefreshAutoMPBar(bActive);
+ //
+ // // pet status
+ // RefreshPetStatus();
+ //
+ // //ELF status
+ // RefreshElfStatus();
+ }
+
+ private bool RefreshGatherBar(bool bActive)
+ {
+ if (_dlgWinPrgs == null)
+ {
+ var pDlg = GetGameUIMan().GetDialog("Win_Prgs2");
+ if (pDlg == null)
+ {
+ BMLogger.LogError("Null Win_Prgs2");
+ return false;
+ }
+
+ if (pDlg is not DlgWinPrgs2 dlgWinPrgs)
+ {
+ BMLogger.LogError("Can not cast Win_Prgs2");
+ return false;
+ }
+ _dlgWinPrgs = dlgWinPrgs;
+ }
+
+ if (_pHost == null)
+ {
+ _pHost = GetHostPlayer();
+ if (_pHost == null) return false;
+ }
+
+ CECCounter counter = _pHost.GetGatherCnt();
+ if (_pHost.IsGathering())
+ {
+ int nCur = (int)counter.GetCounter();
+ int nMax = Mathf.Max((int)counter.GetPeriod(), 1);
+
+ if (!_dlgWinPrgs.IsShow())
+ _dlgWinPrgs.Show(bActive);//true, false, bActive
+
+ // PAUIPROGRESS pProgress = (PAUIPROGRESS)pDlg.GetDlgItem("Prgs");
+ // PAUILABEL pLabel = (PAUILABEL)pDlg.GetDlgItem("1");
+
+ var percent = AUIPROGRESS_MAX * nCur / nMax;
+ _dlgWinPrgs.SetProgressAndText(percent*1.0f/100.0f,$"{percent}%");
+ // pLabel.SetText(percent);
+ // pProgress.SetProgress(AUIPROGRESS_MAX * nCur / nMax);
+ if (percent >= 100)
+ {
+ _dlgWinPrgs.SetActiveProgress(false);
+ }
+ else
+ {
+ _dlgWinPrgs.SetActiveProgress(true);
+ }
+ }
+ else
+ {
+ if (_dlgWinPrgs.IsShow())
+ {
+ _dlgWinPrgs.Show(false);
+ _dlgWinPrgs.SetActiveProgress(false);
+ }
+ }
+
+ return _dlgWinPrgs.IsShow();
+ }
+ }
+}
diff --git a/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgHost.cs.meta b/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgHost.cs.meta
new file mode 100644
index 0000000000..7734322bc1
--- /dev/null
+++ b/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgHost.cs.meta
@@ -0,0 +1,2 @@
+fileFormatVersion: 2
+guid: 11e80692643c0ff4ca58d76679b26327
\ No newline at end of file
diff --git a/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgWinPrgs2.cs b/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgWinPrgs2.cs
new file mode 100644
index 0000000000..7a587220a7
--- /dev/null
+++ b/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgWinPrgs2.cs
@@ -0,0 +1,35 @@
+using UnityEngine;
+using UnityEngine.UI;
+
+namespace BrewMonster.UI
+{
+ //Win_Prgs2
+ public class DlgWinPrgs2 : AUIDialog
+ {
+ [SerializeField] private Slider progressSlider; // Slider bar
+ [SerializeField] private TMPro.TextMeshProUGUI progressText; // Progress text
+
+ ///
+ /// Set the slider's value and text at the same time
+ ///
+ /// Progress percentage (0~1)
+ ///
+ public void SetProgressAndText(float value, string text)
+ {
+ if (progressSlider != null)
+ {
+ progressSlider.value = Mathf.Clamp01(value);
+ }
+
+ if (progressText != null)
+ {
+ progressText.text = text;
+ }
+ }
+
+ public void SetActiveProgress(bool active)
+ {
+ progressSlider.gameObject.SetActive(active);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgWinPrgs2.cs.meta b/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgWinPrgs2.cs.meta
new file mode 100644
index 0000000000..d9d7fec844
--- /dev/null
+++ b/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgWinPrgs2.cs.meta
@@ -0,0 +1,2 @@
+fileFormatVersion: 2
+guid: 57d74d19ef3b2c44fbb72ec587caa705
\ No newline at end of file
diff --git a/Assets/Scripts/CECHostPlayer.cs b/Assets/Scripts/CECHostPlayer.cs
index e2a13e2666..8d29850a5f 100644
--- a/Assets/Scripts/CECHostPlayer.cs
+++ b/Assets/Scripts/CECHostPlayer.cs
@@ -323,6 +323,8 @@ namespace BrewMonster
// track status of Task
TickTask();
+ // Update timers
+ UpdateTimers(Time.deltaTime);
m_pWorkMan?.Tick(Time.deltaTime);
@@ -5189,15 +5191,13 @@ namespace BrewMonster
}
// Is gathering resources
- bool IsGathering()
+ public bool IsGathering()
{
+ if(m_pWorkMan == null) return false;
+ CECHPWork pWork = m_pWorkMan.GetRunningWork(Host_work_ID.WORK_PICKUP);
+ if (pWork != null)
+ return ((EC_HPWorkPick)pWork).IsGather();
return false;
- // TODO: fix later
- //CECHPWork pWork = m_pWorkMan.GetRunningWork(Host_work_ID.WORK_PICKUP);
- //if (pWork != null)
- // return (pWork as CECHPWorkPick).IsGather();
- //else
- // return false;
}
// Is using item ?
@@ -5760,6 +5760,19 @@ namespace BrewMonster
m_pWorkMan.FinishRunningWork(Host_work_ID.WORK_PICKUP);
m_pWorkMan.FinishRunningWork(Host_work_ID.WORK_USEITEM);
// StopMonsterSpiritConnectGfx();
+ var pDlg = EC_Game.GetGameRun().GetUIManager().GetInGameUIMan().GetDialog("Win_Prgs2");
+ if (pDlg == null)
+ {
+ BMLogger.LogError("Null Win_Prgs2");
+ return;
+ }
+
+ if (pDlg is not DlgWinPrgs2 dlgWinPrgs)
+ {
+ BMLogger.LogError("Can not cast Win_Prgs2");
+ return;
+ }
+ dlgWinPrgs.SetActiveProgress(false);
}
else if (cmd == CommandID.MINE_GATHERED)
{
@@ -5774,6 +5787,7 @@ namespace BrewMonster
}
}
}
+ public CECCounter GetGatherCnt() { return m_GatherCnt; }
public void UpdateTimers(float dwDeltaTime)
{
diff --git a/Assets/Scripts/CECUIManager.cs b/Assets/Scripts/CECUIManager.cs
index 95533002af..d783fe314c 100644
--- a/Assets/Scripts/CECUIManager.cs
+++ b/Assets/Scripts/CECUIManager.cs
@@ -39,6 +39,8 @@ public class CECUIManager : MonoSingleton
{
btnSecondClick.onClick.AddListener(OnSecondClickButtonClicked);
}
+
+ ShowUI("Win_Hpmpxp");
}
private void OnDestroy()