summaryrefslogtreecommitdiff
path: root/SurvivalTest/Assets/Scripts/UI
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2022-04-24 19:10:43 +0800
committerchai <chaifix@163.com>2022-04-24 19:10:43 +0800
commitd69adc7009c7953749b59ace2518c0a7c99faa47 (patch)
tree113b15cd7861b600dc001ab203999fd59adb26f1 /SurvivalTest/Assets/Scripts/UI
parent6158af99ad803d9e29096ee6f65026d5e0db0f1f (diff)
+ light saber
Diffstat (limited to 'SurvivalTest/Assets/Scripts/UI')
-rw-r--r--SurvivalTest/Assets/Scripts/UI/Panel/PanelBossHpBar.meta8
-rw-r--r--SurvivalTest/Assets/Scripts/UI/Panel/PanelBossHpBar/PanelBossHpBar.cs10
-rw-r--r--SurvivalTest/Assets/Scripts/UI/Panel/PanelBossHpBar/PanelBossHpBar.cs.meta11
-rw-r--r--SurvivalTest/Assets/Scripts/UI/Panel/PanelTopStuffBar/UIItemBar.cs2
-rw-r--r--SurvivalTest/Assets/Scripts/UI/UIManager_Panels.cs2
5 files changed, 33 insertions, 0 deletions
diff --git a/SurvivalTest/Assets/Scripts/UI/Panel/PanelBossHpBar.meta b/SurvivalTest/Assets/Scripts/UI/Panel/PanelBossHpBar.meta
new file mode 100644
index 0000000..45721d1
--- /dev/null
+++ b/SurvivalTest/Assets/Scripts/UI/Panel/PanelBossHpBar.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: c5e2eef1c0b745b468cd7e02b389e9fd
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/SurvivalTest/Assets/Scripts/UI/Panel/PanelBossHpBar/PanelBossHpBar.cs b/SurvivalTest/Assets/Scripts/UI/Panel/PanelBossHpBar/PanelBossHpBar.cs
new file mode 100644
index 0000000..860143a
--- /dev/null
+++ b/SurvivalTest/Assets/Scripts/UI/Panel/PanelBossHpBar/PanelBossHpBar.cs
@@ -0,0 +1,10 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class PanelBossHpBar : PanelBase
+{
+ public override void Set(object param)
+ {
+ }
+} \ No newline at end of file
diff --git a/SurvivalTest/Assets/Scripts/UI/Panel/PanelBossHpBar/PanelBossHpBar.cs.meta b/SurvivalTest/Assets/Scripts/UI/Panel/PanelBossHpBar/PanelBossHpBar.cs.meta
new file mode 100644
index 0000000..c10ee49
--- /dev/null
+++ b/SurvivalTest/Assets/Scripts/UI/Panel/PanelBossHpBar/PanelBossHpBar.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: f0cc24522a8627e45968194d9e4f1db6
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/SurvivalTest/Assets/Scripts/UI/Panel/PanelTopStuffBar/UIItemBar.cs b/SurvivalTest/Assets/Scripts/UI/Panel/PanelTopStuffBar/UIItemBar.cs
index ecb6ea1..9025984 100644
--- a/SurvivalTest/Assets/Scripts/UI/Panel/PanelTopStuffBar/UIItemBar.cs
+++ b/SurvivalTest/Assets/Scripts/UI/Panel/PanelTopStuffBar/UIItemBar.cs
@@ -17,6 +17,8 @@ public class UIItemBar : MonoBehaviour
public void Set()
{
+ m_ItemTempalte.gameObject.SetActive(false);
+
for (int i = 0; i < PlayerManager.Instance.items.Count; ++i)
{
ItemWidget widget = MakeItemWidget(PlayerManager.Instance.items[i]);
diff --git a/SurvivalTest/Assets/Scripts/UI/UIManager_Panels.cs b/SurvivalTest/Assets/Scripts/UI/UIManager_Panels.cs
index d53a4e6..02b3a06 100644
--- a/SurvivalTest/Assets/Scripts/UI/UIManager_Panels.cs
+++ b/SurvivalTest/Assets/Scripts/UI/UIManager_Panels.cs
@@ -11,6 +11,7 @@ public enum PanelType
PanelItemBar,
PanelEquipBar,
PanelTopSuffBar,
+ PanelBossHpBar,
}
public partial class UIManager : Singleton<UIManager>
@@ -31,6 +32,7 @@ public partial class UIManager : Singleton<UIManager>
AddPanel(PanelType.PanelItemBar, "PanelItemBar");
AddPanel(PanelType.PanelEquipBar, "PanelEquipBar");
AddPanel(PanelType.PanelTopSuffBar, "PanelTopSuffBar");
+ AddPanel(PanelType.PanelBossHpBar, "PanelBossHpBar");
}
void AddPanel(PanelType type, string path)