diff --git a/Assets/UI/inGameGud.uss b/Assets/UI/inGameGud.uss deleted file mode 100644 index 5ff839c2..00000000 --- a/Assets/UI/inGameGud.uss +++ /dev/null @@ -1,6 +0,0 @@ -.panel { - -unity-background-image-tint-color: rgba(2, 2, 2, 0.64); - background-color: rgba(0, 0, 0, 0.75); - align-items: auto; - height: 100px; -} diff --git a/Assets/UI/inGameHud.uss b/Assets/UI/inGameHud.uss new file mode 100644 index 00000000..07ee0edc --- /dev/null +++ b/Assets/UI/inGameHud.uss @@ -0,0 +1,36 @@ +.container +{ + display: flex; + flex-direction: row; + height:50px; +} + +.player-image{ + flex-grow: 1; + height:50px; + max-width:40px; + background-image: url("project://database/Assets/Characters/pics/Sophie.png?fileID=2800000&guid=4999eb6bfdcacae48a7ed2020bd489d0&type=3#Sophie"); +} + +.panel { + flex-grow: 2; + -unity-background-image-tint-color: rgba(2, 2, 2, 0.64); + background-color: rgba(0, 0, 0, 0.75); + align-items: auto; + height: 40px; +} + +.progress-bar-container { + width: 100px; + height: 7px; + background-color: rgba(255, 255, 255, 0.3); + border-radius: 10px; + overflow: hidden; +} + +.progress-bar-fill { + width: 50%; + height: 100%; + background-color: #00FF00; + border-radius: 10px 0 0 10px; /* Rounded corners on the left side */ +} \ No newline at end of file diff --git a/Assets/UI/inGameGud.uss.meta b/Assets/UI/inGameHud.uss.meta similarity index 100% rename from Assets/UI/inGameGud.uss.meta rename to Assets/UI/inGameHud.uss.meta diff --git a/Assets/UI/inGameHud.uxml b/Assets/UI/inGameHud.uxml index f8c79a2f..a8ce5189 100644 --- a/Assets/UI/inGameHud.uxml +++ b/Assets/UI/inGameHud.uxml @@ -1,6 +1,11 @@ -