new borders

This commit is contained in:
Haze Weathers 2023-10-24 20:09:29 -04:00
parent 624739a970
commit 7a12628fa3
6 changed files with 80 additions and 3 deletions

View file

@ -1,2 +1,10 @@
extends TextureRect extends TextureRect
func _ready() -> void:
get_tree().connect("screen_resized", self, "_on_screen_resized")
_on_screen_resized()
func _on_screen_resized() -> void:
rect_size = OS.window_size

View file

@ -1,13 +1,12 @@
[gd_scene load_steps=3 format=2] [gd_scene load_steps=3 format=2]
[ext_resource path="res://autoloads/border.gd" type="Script" id=1] [ext_resource path="res://autoloads/border.gd" type="Script" id=1]
[ext_resource path="res://graphics/borders/prideborder.png" type="Texture" id=2] [ext_resource path="res://graphics/borders/gale_sg_border.png" type="Texture" id=2]
[node name="Border" type="TextureRect"] [node name="Border" type="TextureRect"]
show_behind_parent = true
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
texture = ExtResource( 2 ) texture = ExtResource( 2 )
expand = true expand = true
stretch_mode = 1 stretch_mode = 7
script = ExtResource( 1 ) script = ExtResource( 1 )

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,010 KiB

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/bodhi_sg_border.png-3cf24d7237511d5ab9d451ff57338378.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://graphics/borders/bodhi_sg_border.png"
dest_files=[ "res://.import/bodhi_sg_border.png-3cf24d7237511d5ab9d451ff57338378.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=false
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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 493 KiB

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/gale_sg_border.png-9efb6a781e3ed366adb2163888934124.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://graphics/borders/gale_sg_border.png"
dest_files=[ "res://.import/gale_sg_border.png-9efb6a781e3ed366adb2163888934124.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=false
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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0