В процессе. Элементы для контроля
This commit is contained in:
BIN
data/состояние-исправности-0.png
Normal file
BIN
data/состояние-исправности-0.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
34
data/состояние-исправности-0.png.import
Normal file
34
data/состояние-исправности-0.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c6nve6f8sfyj2"
|
||||
path="res://.godot/imported/состояние-исправности-0.png-80d296bfe23ad795df15b10d3cbdc6be.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://data/состояние-исправности-0.png"
|
||||
dest_files=["res://.godot/imported/состояние-исправности-0.png-80d296bfe23ad795df15b10d3cbdc6be.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
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=1
|
||||
BIN
data/состояние-исправности-1.png
Normal file
BIN
data/состояние-исправности-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
34
data/состояние-исправности-1.png.import
Normal file
34
data/состояние-исправности-1.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dnreyfh3cd1k2"
|
||||
path="res://.godot/imported/состояние-исправности-1.png-817448af211ad4cecd7fc0b9b688c408.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://data/состояние-исправности-1.png"
|
||||
dest_files=["res://.godot/imported/состояние-исправности-1.png-817448af211ad4cecd7fc0b9b688c408.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
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=1
|
||||
BIN
data/состояние-исправности-2.png
Normal file
BIN
data/состояние-исправности-2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
34
data/состояние-исправности-2.png.import
Normal file
34
data/состояние-исправности-2.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c6booa8753u5t"
|
||||
path="res://.godot/imported/состояние-исправности-2.png-980a893fd398fba0dfb382e7c7ae4430.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://data/состояние-исправности-2.png"
|
||||
dest_files=["res://.godot/imported/состояние-исправности-2.png-980a893fd398fba0dfb382e7c7ae4430.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
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=1
|
||||
BIN
data/состояния-исправности.png
Normal file
BIN
data/состояния-исправности.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.1 KiB |
34
data/состояния-исправности.png.import
Normal file
34
data/состояния-исправности.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bl4v556yreno1"
|
||||
path="res://.godot/imported/состояния-исправности.png-decaf67c3bc5d297844ef43f946cc651.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://data/состояния-исправности.png"
|
||||
dest_files=["res://.godot/imported/состояния-исправности.png-decaf67c3bc5d297844ef43f946cc651.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
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=1
|
||||
32
data/состояния-исправности.tres
Normal file
32
data/состояния-исправности.tres
Normal file
@@ -0,0 +1,32 @@
|
||||
[gd_resource type="SpriteFrames" load_steps=5 format=3 uid="uid://jndvpts2tbi3"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bl4v556yreno1" path="res://data/состояния-исправности.png" id="1_wb1fe"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_n2u5p"]
|
||||
atlas = ExtResource("1_wb1fe")
|
||||
region = Rect2(0, 0, 224, 224)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_a4vh8"]
|
||||
atlas = ExtResource("1_wb1fe")
|
||||
region = Rect2(224, 0, 224, 224)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qf05b"]
|
||||
atlas = ExtResource("1_wb1fe")
|
||||
region = Rect2(448, 0, 224, 224)
|
||||
|
||||
[resource]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_n2u5p")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_a4vh8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qf05b")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
82
scenes/контроль/element.tscn
Normal file
82
scenes/контроль/element.tscn
Normal file
@@ -0,0 +1,82 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://ckrunkgwb5cuo"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c4mdrmk7h638f" path="res://data/nine-patch-round.png" id="1_60d60"]
|
||||
[ext_resource type="Texture2D" uid="uid://c6nve6f8sfyj2" path="res://data/состояние-исправности-0.png" id="1_mmcxd"]
|
||||
[ext_resource type="Texture2D" uid="uid://dnreyfh3cd1k2" path="res://data/состояние-исправности-1.png" id="2_8b5eo"]
|
||||
[ext_resource type="Texture2D" uid="uid://c6booa8753u5t" path="res://data/состояние-исправности-2.png" id="3_gsgjf"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_3nd2u"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_40di8"]
|
||||
script/source = "@tool
|
||||
|
||||
extends MarginContainer
|
||||
|
||||
@export var margin_value = 5:
|
||||
set(val):
|
||||
add_theme_constant_override('margin_top', val)
|
||||
add_theme_constant_override('margin_left', val)
|
||||
add_theme_constant_override('margin_bottom', val)
|
||||
add_theme_constant_override('margin_right', val)
|
||||
get:
|
||||
return get_theme_constant('margin_top')
|
||||
"
|
||||
|
||||
[sub_resource type="AnimatedTexture" id="AnimatedTexture_p68lh"]
|
||||
frames = 3
|
||||
pause = true
|
||||
frame_0/texture = ExtResource("1_mmcxd")
|
||||
frame_1/texture = ExtResource("2_8b5eo")
|
||||
frame_1/duration = 1.0
|
||||
frame_2/texture = ExtResource("3_gsgjf")
|
||||
frame_2/duration = 1.0
|
||||
|
||||
[node name="element" type="PanelContainer"]
|
||||
offset_right = 231.0
|
||||
offset_bottom = 206.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxEmpty_3nd2u")
|
||||
|
||||
[node name="rect" type="NinePatchRect" parent="."]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("1_60d60")
|
||||
draw_center = false
|
||||
region_rect = Rect2(0, 0, 63, 63)
|
||||
patch_margin_left = 17
|
||||
patch_margin_top = 17
|
||||
patch_margin_right = 17
|
||||
patch_margin_bottom = 15
|
||||
|
||||
[node name="margin" type="MarginContainer" parent="."]
|
||||
layout_mode = 2
|
||||
script = SubResource("GDScript_40di8")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="margin"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="grid" type="GridContainer" parent="margin/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
columns = 3
|
||||
|
||||
[node name="control" type="TextureRect" parent="margin/VBoxContainer/grid"]
|
||||
custom_minimum_size = Vector2(32, 32)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 6
|
||||
texture = SubResource("AnimatedTexture_p68lh")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="name" type="Label" parent="margin/VBoxContainer/grid"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 6
|
||||
text = "Ячейка"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="ref" type="Label" parent="margin/VBoxContainer/grid"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 6
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "A??"
|
||||
horizontal_alignment = 2
|
||||
Reference in New Issue
Block a user