Skip to content
Snippets Groups Projects
Commit 47ab231b authored by STAVRIDIS ADONIS's avatar STAVRIDIS ADONIS :speech_balloon:
Browse files

#142 add hud pic

parent 6ca22026
Branches super-loading-screen
Tags
No related merge requests found
Showing
with 333 additions and 17 deletions
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/angelahud.png-d75518b9ba59c8caea28b37a09d910b3.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://levels/hud/assets/angelahud.png"
dest_files=[ "res://.import/angelahud.png-d75518b9ba59c8caea28b37a09d910b3.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
client/levels/hud/assets/disco.png

57.6 KiB

[remap]
importer="texture"
type="StreamTexture"
path="res://.import/discohud.png-2022a181700f522510ea9d108ae2904f.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://levels/hud/assets/discohud.png"
dest_files=[ "res://.import/discohud.png-2022a181700f522510ea9d108ae2904f.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/electrohud.png-c88ab5b153d167b1359ca381e6b1066d.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://levels/hud/assets/electrohud.png"
dest_files=[ "res://.import/electrohud.png-c88ab5b153d167b1359ca381e6b1066d.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/lullabyhud.png-6179bb97d587387d3ede1bf6718a85fb.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://levels/hud/assets/lullabyhud.png"
dest_files=[ "res://.import/lullabyhud.png-6179bb97d587387d3ede1bf6718a85fb.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/metalhud.png-59b0e80ceb95dd13d6acbc69e55e7014.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://levels/hud/assets/metalhud.png"
dest_files=[ "res://.import/metalhud.png-59b0e80ceb95dd13d6acbc69e55e7014.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/reaggehud.png-8e05ca58e2d4f1886158b154833bcf95.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://levels/hud/assets/reaggehud.png"
dest_files=[ "res://.import/reaggehud.png-8e05ca58e2d4f1886158b154833bcf95.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
...@@ -27,8 +27,8 @@ func _ready(): ...@@ -27,8 +27,8 @@ func _ready():
nbKills = $MarginContainer/VBoxContainer/bas/lastHit/VBoxContainer/kills nbKills = $MarginContainer/VBoxContainer/bas/lastHit/VBoxContainer/kills
inventory = $MarginContainer/VBoxContainer/bas/stats/inventaire/obj inventory = $MarginContainer/VBoxContainer/bas/stats/inventaire/obj
displayListPlayer() displayListPlayer()
displayNbKills() displayNbKills(0)
showInventory("res://models/icon.png") showInventory("res://models/player/playerArrow/playerArrow.png")
func _input(ev): func _input(ev):
if ev is InputEventKey : if ev is InputEventKey :
...@@ -104,8 +104,8 @@ func displayUser(name,img): ...@@ -104,8 +104,8 @@ func displayUser(name,img):
userName.text = name userName.text = name
userImg.texture = load(img) userImg.texture = load(img)
func displayNbKills(): func displayNbKills(value):
nbKills.text = str(int(nbKills.text) + 1) nbKills.text = str(value)
func showInventory(img): func showInventory(img):
inventory.texture = load(img) inventory.texture = load(img)
......
[gd_scene load_steps=31 format=2] [gd_scene load_steps=32 format=2]
[ext_resource path="res://levels/hud/hud.gd" type="Script" id=1] [ext_resource path="res://levels/hud/hud.gd" type="Script" id=1]
[ext_resource path="res://levels/hud/hudListPlayers.tres" type="StyleBox" id=2] [ext_resource path="res://levels/hud/hudListPlayers.tres" type="StyleBox" id=2]
...@@ -11,22 +11,19 @@ ...@@ -11,22 +11,19 @@
[ext_resource path="res://levels/commons/themes/mostPlayedCharaTitle.tres" type="Theme" id=9] [ext_resource path="res://levels/commons/themes/mostPlayedCharaTitle.tres" type="Theme" id=9]
[ext_resource path="res://levels/hud/hp_hud.gd" type="Script" id=10] [ext_resource path="res://levels/hud/hp_hud.gd" type="Script" id=10]
[ext_resource path="res://levels/hudSettings/hudsettings.gd" type="Script" id=11] [ext_resource path="res://levels/hudSettings/hudsettings.gd" type="Script" id=11]
[ext_resource path="res://levels/hud/pic_hud.gd" type="Script" id=12]
[sub_resource type="StreamTexture" id=1] [sub_resource type="StreamTexture" id=1]
flags = 4 flags = 4
load_path = "res://.import/hud_bg2.png-3c6e0009587ce068b78ff42b6d42129a.stex"
[sub_resource type="StreamTexture" id=2] [sub_resource type="StreamTexture" id=2]
flags = 4 flags = 4
load_path = "res://.import/hud_bg1.png-c137c7c9656bbc9c3f36f041e130cb80.stex"
[sub_resource type="StreamTexture" id=3] [sub_resource type="StreamTexture" id=3]
flags = 4 flags = 4
load_path = "res://.import/disco.png-7887829e2bd295b181d2ab6939359ff1.stex"
[sub_resource type="StreamTexture" id=4] [sub_resource type="StreamTexture" id=4]
flags = 4 flags = 4
load_path = "res://.import/case.png-3b77851e53283d3fff3d8edc79644146.stex"
[sub_resource type="StreamTexture" id=5] [sub_resource type="StreamTexture" id=5]
...@@ -168,6 +165,7 @@ rect_min_size = Vector2( 75, 75 ) ...@@ -168,6 +165,7 @@ rect_min_size = Vector2( 75, 75 )
texture = SubResource( 3 ) texture = SubResource( 3 )
expand = true expand = true
stretch_mode = 5 stretch_mode = 5
script = ExtResource( 12 )
[node name="name" type="Label" parent="MarginContainer/VBoxContainer/bas/stats/VBoxContainer"] [node name="name" type="Label" parent="MarginContainer/VBoxContainer/bas/stats/VBoxContainer"]
margin_top = 79.0 margin_top = 79.0
......
extends TextureRect
func _ready():
var my_id = get_tree().get_network_unique_id()
var skinId = gamestate.players[my_id]["skin"]
var skins = {
1: "res://models/pics/lullabyhud.png",
2: "res://models/pics/discohud.png",
3: "res://models/pics/angelahud.png",
4: "res://models/pics/reaggehud.png",
5: "res://models/pics/metalhud.png",
6: "res://models/pics/electrohud.png"
}
if (skinId >= 1 && skinId <= 6):
set_texture(load(skins[skinId]))
extends Label extends Label
const GAMEPATH = "/root/game/"
var posId
var player
func _ready(): func _ready():
var my_id = get_tree().get_network_unique_id() var my_id = get_tree().get_network_unique_id()
......
client/models/icon.png

3.35 KiB

client/models/pics/angelahud.png

133 KiB

[remap]
importer="texture"
type="StreamTexture"
path="res://.import/angelahud.png-f3efdc64af5b259c3c533912ce0da344.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://models/pics/angelahud.png"
dest_files=[ "res://.import/angelahud.png-f3efdc64af5b259c3c533912ce0da344.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
client/models/pics/discohud.png

349 KiB

...@@ -2,15 +2,15 @@ ...@@ -2,15 +2,15 @@
importer="texture" importer="texture"
type="StreamTexture" type="StreamTexture"
path="res://.import/disco.png-597137d38f0d280df481819f2f65ef60.stex" path="res://.import/discohud.png-f3eec2c6d399c919dc8993c805350cf5.stex"
metadata={ metadata={
"vram_texture": false "vram_texture": false
} }
[deps] [deps]
source_file="res://levels/hud/assets/disco.png" source_file="res://models/pics/discohud.png"
dest_files=[ "res://.import/disco.png-597137d38f0d280df481819f2f65ef60.stex" ] dest_files=[ "res://.import/discohud.png-f3eec2c6d399c919dc8993c805350cf5.stex" ]
[params] [params]
......
client/models/pics/electrohud.png

273 KiB

[remap]
importer="texture"
type="StreamTexture"
path="res://.import/electrohud.png-2935f03996d008eab2cad7f1701ebd68.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://models/pics/electrohud.png"
dest_files=[ "res://.import/electrohud.png-2935f03996d008eab2cad7f1701ebd68.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
client/models/pics/lullabyhud.png

127 KiB

[remap]
importer="texture"
type="StreamTexture"
path="res://.import/lullabyhud.png-2d7faf46500bc9231de9fe9289089abb.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://models/pics/lullabyhud.png"
dest_files=[ "res://.import/lullabyhud.png-2d7faf46500bc9231de9fe9289089abb.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
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