武器切换逻辑/ui初版
@ -0,0 +1,24 @@
|
||||
[gd_resource type="Resource" script_class="PlayerSkillCfg" load_steps=7 format=3 uid="uid://bcxglqq08pymr"]
|
||||
|
||||
[ext_resource type="Resource" uid="uid://bsqk3q6mccllg" path="res://config/attack/normal_hit.tres" id="1_r3o2x"]
|
||||
[ext_resource type="PackedScene" uid="uid://b2h4pcmlii7dg" path="res://scene/effect/particle/particle_slash_normal.tscn" id="2_vsxc2"]
|
||||
[ext_resource type="Script" path="res://script/config/player_skill_cfg.gd" id="3_gsnqk"]
|
||||
[ext_resource type="Animation" uid="uid://bkre61dn64j2f" path="res://resource/skill_animation/hero01_short_attack01.tres" id="4_f30l7"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://cndpnxtdh37ii" path="res://resource/animation/character/hero01_short_attack.aseprite" id="5_8vcrr"]
|
||||
[ext_resource type="Resource" uid="uid://pnhii1a83axg" path="res://config/weapon/short.tres" id="6_fxdqr"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("3_gsnqk")
|
||||
weapon = ExtResource("6_fxdqr")
|
||||
stance_from = 0
|
||||
stance_to = 1
|
||||
break_level = 3
|
||||
action = "attack_light"
|
||||
name = ""
|
||||
skill_animation = ExtResource("4_f30l7")
|
||||
attack_list = Array[Resource("res://script/config/attack_cfg.gd")]([ExtResource("1_r3o2x")])
|
||||
attack_particle = ExtResource("2_vsxc2")
|
||||
free_lock = false
|
||||
refresh_animation = false
|
||||
sprite_frams = ExtResource("5_8vcrr")
|
||||
animation_name = "short_attack01"
|
||||
@ -0,0 +1,24 @@
|
||||
[gd_resource type="Resource" script_class="PlayerSkillCfg" load_steps=7 format=3 uid="uid://cm7nbxogmlvp5"]
|
||||
|
||||
[ext_resource type="Resource" uid="uid://bsqk3q6mccllg" path="res://config/attack/normal_hit.tres" id="1_nmank"]
|
||||
[ext_resource type="PackedScene" uid="uid://b2h4pcmlii7dg" path="res://scene/effect/particle/particle_slash_normal.tscn" id="2_kal4c"]
|
||||
[ext_resource type="Script" path="res://script/config/player_skill_cfg.gd" id="3_8ixmd"]
|
||||
[ext_resource type="Animation" uid="uid://xfuwfwtw4cna" path="res://resource/skill_animation/hero01_short_attack02.tres" id="4_mepfm"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://cndpnxtdh37ii" path="res://resource/animation/character/hero01_short_attack.aseprite" id="5_dxfya"]
|
||||
[ext_resource type="Resource" uid="uid://pnhii1a83axg" path="res://config/weapon/short.tres" id="6_e44nf"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("3_8ixmd")
|
||||
weapon = ExtResource("6_e44nf")
|
||||
stance_from = 1
|
||||
stance_to = 2
|
||||
break_level = 3
|
||||
action = "attack_light"
|
||||
name = ""
|
||||
skill_animation = ExtResource("4_mepfm")
|
||||
attack_list = Array[Resource("res://script/config/attack_cfg.gd")]([ExtResource("1_nmank")])
|
||||
attack_particle = ExtResource("2_kal4c")
|
||||
free_lock = false
|
||||
refresh_animation = false
|
||||
sprite_frams = ExtResource("5_dxfya")
|
||||
animation_name = "short_attack02"
|
||||
@ -0,0 +1,24 @@
|
||||
[gd_resource type="Resource" script_class="PlayerSkillCfg" load_steps=7 format=3 uid="uid://bex4a43t6ettj"]
|
||||
|
||||
[ext_resource type="Resource" uid="uid://bsqk3q6mccllg" path="res://config/attack/normal_hit.tres" id="1_5om0v"]
|
||||
[ext_resource type="PackedScene" uid="uid://b2h4pcmlii7dg" path="res://scene/effect/particle/particle_slash_normal.tscn" id="2_dp0ac"]
|
||||
[ext_resource type="Script" path="res://script/config/player_skill_cfg.gd" id="3_8rsme"]
|
||||
[ext_resource type="Animation" uid="uid://bdyjvq185tdk6" path="res://resource/skill_animation/hero01_short_attack03.tres" id="4_7ws6s"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://cndpnxtdh37ii" path="res://resource/animation/character/hero01_short_attack.aseprite" id="5_40215"]
|
||||
[ext_resource type="Resource" uid="uid://pnhii1a83axg" path="res://config/weapon/short.tres" id="6_pclwt"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("3_8rsme")
|
||||
weapon = ExtResource("6_pclwt")
|
||||
stance_from = 2
|
||||
stance_to = 3
|
||||
break_level = 3
|
||||
action = "attack_light"
|
||||
name = ""
|
||||
skill_animation = ExtResource("4_7ws6s")
|
||||
attack_list = Array[Resource("res://script/config/attack_cfg.gd")]([ExtResource("1_5om0v")])
|
||||
attack_particle = ExtResource("2_dp0ac")
|
||||
free_lock = false
|
||||
refresh_animation = false
|
||||
sprite_frams = ExtResource("5_40215")
|
||||
animation_name = "short_attack03"
|
||||
@ -0,0 +1,24 @@
|
||||
[gd_resource type="Resource" script_class="PlayerSkillCfg" load_steps=7 format=3 uid="uid://cya7i41k08jgc"]
|
||||
|
||||
[ext_resource type="Resource" uid="uid://bsqk3q6mccllg" path="res://config/attack/normal_hit.tres" id="1_hd2st"]
|
||||
[ext_resource type="PackedScene" uid="uid://b2h4pcmlii7dg" path="res://scene/effect/particle/particle_slash_normal.tscn" id="2_hs5u3"]
|
||||
[ext_resource type="Script" path="res://script/config/player_skill_cfg.gd" id="3_44lu2"]
|
||||
[ext_resource type="Animation" uid="uid://c8qll8wcn633m" path="res://resource/skill_animation/hero01_short_attack04.tres" id="4_rcj2c"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://cndpnxtdh37ii" path="res://resource/animation/character/hero01_short_attack.aseprite" id="5_owk7o"]
|
||||
[ext_resource type="Resource" uid="uid://pnhii1a83axg" path="res://config/weapon/short.tres" id="6_ht3kv"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("3_44lu2")
|
||||
weapon = ExtResource("6_ht3kv")
|
||||
stance_from = 3
|
||||
stance_to = 4
|
||||
break_level = 3
|
||||
action = "attack_light"
|
||||
name = ""
|
||||
skill_animation = ExtResource("4_rcj2c")
|
||||
attack_list = Array[Resource("res://script/config/attack_cfg.gd")]([ExtResource("1_hd2st")])
|
||||
attack_particle = ExtResource("2_hs5u3")
|
||||
free_lock = false
|
||||
refresh_animation = false
|
||||
sprite_frams = ExtResource("5_owk7o")
|
||||
animation_name = "short_attack04"
|
||||
@ -0,0 +1,9 @@
|
||||
[gd_resource type="Resource" script_class="WeaponCfg" load_steps=3 format=3 uid="uid://chjmqxgcrhcaa"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c3fhegpkyr54r" path="res://resource/ui/icon/chain.png" id="1_jnfil"]
|
||||
[ext_resource type="Script" path="res://script/config/weapon_cfg.gd" id="1_yeb4s"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_yeb4s")
|
||||
name = ""
|
||||
icon = ExtResource("1_jnfil")
|
||||
@ -1,7 +1,9 @@
|
||||
[gd_resource type="Resource" script_class="WeaponCfg" load_steps=2 format=3 uid="uid://c6alg8pmqfdxm"]
|
||||
[gd_resource type="Resource" script_class="WeaponCfg" load_steps=3 format=3 uid="uid://c6alg8pmqfdxm"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/weapon_cfg.gd" id="1_03rlg"]
|
||||
[ext_resource type="Texture2D" uid="uid://b3m6ksvhbsrgq" path="res://resource/ui/icon/fist.png" id="1_24loa"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_03rlg")
|
||||
name = ""
|
||||
icon = ExtResource("1_24loa")
|
||||
|
||||
@ -1,7 +1,9 @@
|
||||
[gd_resource type="Resource" script_class="WeaponCfg" load_steps=2 format=3 uid="uid://cy3wwalxeyro0"]
|
||||
[gd_resource type="Resource" script_class="WeaponCfg" load_steps=3 format=3 uid="uid://cy3wwalxeyro0"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/weapon_cfg.gd" id="1_ihw7q"]
|
||||
[ext_resource type="Texture2D" uid="uid://ksw3dvkdv6ud" path="res://resource/ui/icon/long.png" id="1_v1ej3"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_ihw7q")
|
||||
name = ""
|
||||
icon = ExtResource("1_v1ej3")
|
||||
|
||||
@ -1,7 +1,9 @@
|
||||
[gd_resource type="Resource" script_class="WeaponCfg" load_steps=2 format=3 uid="uid://pnhii1a83axg"]
|
||||
[gd_resource type="Resource" script_class="WeaponCfg" load_steps=3 format=3 uid="uid://pnhii1a83axg"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/weapon_cfg.gd" id="1_gwwxv"]
|
||||
[ext_resource type="Texture2D" uid="uid://b08amntj1fmbu" path="res://resource/ui/icon/short.png" id="1_kjkjb"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_gwwxv")
|
||||
name = ""
|
||||
icon = ExtResource("1_kjkjb")
|
||||
|
||||
@ -0,0 +1,43 @@
|
||||
[gd_resource type="Animation" load_steps=2 format=3 uid="uid://bkre61dn64j2f"]
|
||||
|
||||
[ext_resource type="SpriteFrames" uid="uid://cndpnxtdh37ii" path="res://resource/animation/character/hero01_short_attack.aseprite" id="1_wo4do"]
|
||||
|
||||
[resource]
|
||||
resource_name = "hero01_short_attack01"
|
||||
length = 0.5
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("View:sprite_frames")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [ExtResource("1_wo4do")]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("View:animation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": ["short_attack01"]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("View:frame")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [0, 1, 2, 3, 4]
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
[gd_resource type="Animation" load_steps=2 format=3 uid="uid://xfuwfwtw4cna"]
|
||||
|
||||
[ext_resource type="SpriteFrames" uid="uid://cndpnxtdh37ii" path="res://resource/animation/character/hero01_short_attack.aseprite" id="1_tj0pt"]
|
||||
|
||||
[resource]
|
||||
resource_name = "hero01_short_attack02"
|
||||
length = 0.5
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("View:sprite_frames")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [ExtResource("1_tj0pt")]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("View:animation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": ["short_attack02"]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("View:frame")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [0, 1, 2, 3, 4]
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
[gd_resource type="Animation" load_steps=2 format=3 uid="uid://bdyjvq185tdk6"]
|
||||
|
||||
[ext_resource type="SpriteFrames" uid="uid://cndpnxtdh37ii" path="res://resource/animation/character/hero01_short_attack.aseprite" id="1_pwjxo"]
|
||||
|
||||
[resource]
|
||||
resource_name = "hero01_short_attack03"
|
||||
length = 0.8
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("View:sprite_frames")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [ExtResource("1_pwjxo")]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("View:animation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": ["short_attack03"]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("View:frame")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [0, 1, 2, 3, 4, 5, 6, 7]
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
[gd_resource type="Animation" load_steps=2 format=3 uid="uid://c8qll8wcn633m"]
|
||||
|
||||
[ext_resource type="SpriteFrames" uid="uid://cndpnxtdh37ii" path="res://resource/animation/character/hero01_short_attack.aseprite" id="1_n6b6e"]
|
||||
|
||||
[resource]
|
||||
resource_name = "hero01_short_attack04"
|
||||
length = 0.8
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("View:sprite_frames")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [ExtResource("1_n6b6e")]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("View:animation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": ["short_attack04"]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("View:frame")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [0, 1, 2, 3, 4, 5, 6, 7]
|
||||
}
|
||||
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 2.9 KiB |
@ -0,0 +1,51 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://chi3x0mugaiu4"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://7138jsp4yabf" path="res://resource/ui/hud/weapon_slot.png" id="1_3hxat"]
|
||||
[ext_resource type="Script" path="res://script/ui/hud/weapon_item_sub.gd" id="1_y2xym"]
|
||||
[ext_resource type="Texture2D" uid="uid://ksw3dvkdv6ud" path="res://resource/ui/icon/long.png" id="2_88p8f"]
|
||||
|
||||
[node name="Weapon" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -80.0
|
||||
offset_top = -16.0
|
||||
offset_right = -48.0
|
||||
offset_bottom = 16.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
pivot_offset = Vector2(16, 16)
|
||||
script = ExtResource("1_y2xym")
|
||||
|
||||
[node name="WeaponSlot" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -16.0
|
||||
offset_top = -16.0
|
||||
offset_right = 16.0
|
||||
offset_bottom = 16.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("1_3hxat")
|
||||
|
||||
[node name="WeaponIcon" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -32.0
|
||||
offset_top = -32.0
|
||||
offset_right = 32.0
|
||||
offset_bottom = 32.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("2_88p8f")
|
||||
|
After Width: | Height: | Size: 279 B |
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://7138jsp4yabf"
|
||||
path="res://.godot/imported/weapon_slot.png-bacb9f2e821dbb9aec3c7545701537c2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://resource/ui/hud/weapon_slot.png"
|
||||
dest_files=["res://.godot/imported/weapon_slot.png-bacb9f2e821dbb9aec3c7545701537c2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=0
|
||||
compress/normal_map=2
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=false
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
|
After Width: | Height: | Size: 916 B |
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c3fhegpkyr54r"
|
||||
path="res://.godot/imported/chain.png-7b7acb3d808d6512c3b713380a1e477d.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://resource/ui/icon/chain.png"
|
||||
dest_files=["res://.godot/imported/chain.png-7b7acb3d808d6512c3b713380a1e477d.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=0
|
||||
compress/normal_map=2
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=false
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
|
After Width: | Height: | Size: 997 B |
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b3m6ksvhbsrgq"
|
||||
path="res://.godot/imported/fist.png-2d4cf0e40d05495c4dd8edd9aa79da8b.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://resource/ui/icon/fist.png"
|
||||
dest_files=["res://.godot/imported/fist.png-2d4cf0e40d05495c4dd8edd9aa79da8b.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=0
|
||||
compress/normal_map=2
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=false
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
|
After Width: | Height: | Size: 759 B |
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ksw3dvkdv6ud"
|
||||
path="res://.godot/imported/long.png-fcc62240e454dee10a26599dc280a754.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://resource/ui/icon/long.png"
|
||||
dest_files=["res://.godot/imported/long.png-fcc62240e454dee10a26599dc280a754.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=0
|
||||
compress/normal_map=2
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=false
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
|
After Width: | Height: | Size: 538 B |
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b08amntj1fmbu"
|
||||
path="res://.godot/imported/short.png-d108f7418edf48fbc177f96299bea103.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://resource/ui/icon/short.png"
|
||||
dest_files=["res://.godot/imported/short.png-d108f7418edf48fbc177f96299bea103.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=0
|
||||
compress/normal_map=2
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=false
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
@ -1,9 +1,14 @@
|
||||
extends Control
|
||||
|
||||
@onready var sub_item_list = [$LockItem,$WeaponItem]
|
||||
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
SignalManager.character_status_changed.connect(on_character_status_changed)
|
||||
|
||||
func on_character_status_changed(id:int,status_name:String,value):
|
||||
if id != Global.character_mgr.get_player_id():
|
||||
return
|
||||
var func_name = "on_%s_changed" % status_name
|
||||
for sub_item in sub_item_list:
|
||||
if sub_item.has_method(func_name):
|
||||
sub_item.call(func_name,value)
|
||||
|
||||
@ -0,0 +1,33 @@
|
||||
extends Control
|
||||
|
||||
@onready var weapon_item_list = [$Weapon1,$Weapon2,$Weapon3,$Weapon4,$Weapon5]
|
||||
|
||||
var duration : float
|
||||
|
||||
func _process(delta):
|
||||
if visible:
|
||||
duration -= delta
|
||||
if duration <= 0:
|
||||
visible = false
|
||||
|
||||
var weapon_list : Array
|
||||
var weapon_index_list = [0,0,0,0,0]
|
||||
|
||||
func on_weapon_list_changed(list:Array):
|
||||
weapon_list = list
|
||||
|
||||
func on_weapon_index_changed(index:int):
|
||||
for i in range(5):
|
||||
weapon_index_list[i] = (i + index + len(weapon_list) - 2) % len(weapon_list)
|
||||
update_weapon()
|
||||
|
||||
func update_weapon():
|
||||
if visible:
|
||||
pass
|
||||
else:
|
||||
for i in range(5):
|
||||
var weapon_item_sub = weapon_item_list[i] as WeaponItemSub
|
||||
var weapon_cfg = weapon_list[weapon_index_list[i]] as WeaponCfg
|
||||
weapon_item_sub.set_texture(weapon_cfg.icon)
|
||||
visible = true
|
||||
duration = Setting.weapon_hide_duration
|
||||
@ -0,0 +1,7 @@
|
||||
extends Control
|
||||
class_name WeaponItemSub
|
||||
|
||||
@onready var icon_rect = $WeaponIcon as TextureRect
|
||||
|
||||
func set_texture(value:Texture2D):
|
||||
icon_rect.texture = value
|
||||