Browse Source

:art: Add a background texture

DricomDragon 2 years ago
parent
commit
63cb07562c

BIN
godot/component/ui/background/background_texture.png


+ 34 - 0
godot/component/ui/background/background_texture.png.import

@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="StreamTexture"
+path="res://.import/background_texture.png-3cf955ce9c9b769b8d1f0cca868aafb1.stex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://component/ui/background/background_texture.png"
+dest_files=[ "res://.import/background_texture.png-3cf955ce9c9b769b8d1f0cca868aafb1.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

+ 5 - 5
godot/main.tscn

@@ -1,4 +1,4 @@
-[gd_scene load_steps=10 format=2]
+[gd_scene load_steps=11 format=2]
 
 [ext_resource path="res://component/ui/message_panel/MessagePanel.tscn" type="PackedScene" id=1]
 [ext_resource path="res://component/entity/launcher/Launcher.tscn" type="PackedScene" id=2]
@@ -8,17 +8,17 @@
 [ext_resource path="res://component/ui/number_panel/NumberPanel.tscn" type="PackedScene" id=6]
 [ext_resource path="res://component/entity/death/Death.tscn" type="PackedScene" id=7]
 [ext_resource path="res://main.gd" type="Script" id=8]
+[ext_resource path="res://component/ui/background/background_texture.png" type="Texture" id=9]
 [ext_resource path="res://component/entity/border/Border.tscn" type="PackedScene" id=13]
 
 [node name="Game" type="Node"]
 script = ExtResource( 8 )
 
-[node name="Background" type="Panel" parent="."]
+[node name="Background" type="TextureRect" parent="."]
 anchor_right = 1.0
 anchor_bottom = 1.0
-__meta__ = {
-"_edit_use_anchors_": false
-}
+texture = ExtResource( 9 )
+stretch_mode = 2
 
 [node name="Border" parent="." instance=ExtResource( 13 )]