update ui style
This commit is contained in:
parent
0c7ba743ae
commit
4f6cd88eb0
BIN
assets/textures/gui/button_bg.png
(Stored with Git LFS)
BIN
assets/textures/gui/button_bg.png
(Stored with Git LFS)
Binary file not shown.
BIN
assets/textures/gui/button_hover_bg.png
(Stored with Git LFS)
BIN
assets/textures/gui/button_hover_bg.png
(Stored with Git LFS)
Binary file not shown.
BIN
assets/textures/gui/honeydew_0.png
(Stored with Git LFS)
Normal file
BIN
assets/textures/gui/honeydew_0.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
assets/textures/gui/honeydew_0.png.import
Normal file
34
assets/textures/gui/honeydew_0.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c3ed3wq0pq6mf"
|
||||
path="res://.godot/imported/honeydew_0.png-7e460af95db38f7ccf71cfc3f3210122.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/textures/gui/honeydew_0.png"
|
||||
dest_files=["res://.godot/imported/honeydew_0.png-7e460af95db38f7ccf71cfc3f3210122.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
assets/textures/gui/honeydew_1.png
(Stored with Git LFS)
BIN
assets/textures/gui/honeydew_1.png
(Stored with Git LFS)
Binary file not shown.
BIN
assets/textures/gui/honeydew_2.png
(Stored with Git LFS)
BIN
assets/textures/gui/honeydew_2.png
(Stored with Git LFS)
Binary file not shown.
BIN
assets/textures/gui/honeydew_3.png
(Stored with Git LFS)
BIN
assets/textures/gui/honeydew_3.png
(Stored with Git LFS)
Binary file not shown.
BIN
assets/textures/gui/honeydew_4.png
(Stored with Git LFS)
BIN
assets/textures/gui/honeydew_4.png
(Stored with Git LFS)
Binary file not shown.
BIN
assets/textures/gui/honeydew_5.png
(Stored with Git LFS)
BIN
assets/textures/gui/honeydew_5.png
(Stored with Git LFS)
Binary file not shown.
BIN
assets/textures/gui/pictograms.png
(Stored with Git LFS)
BIN
assets/textures/gui/pictograms.png
(Stored with Git LFS)
Binary file not shown.
BIN
assets/textures/gui/window_tiny_bg.png
(Stored with Git LFS)
Normal file
BIN
assets/textures/gui/window_tiny_bg.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
assets/textures/gui/window_tiny_bg.png.import
Normal file
34
assets/textures/gui/window_tiny_bg.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dguw83ogihbta"
|
||||
path="res://.godot/imported/window_tiny_bg.png-4ce8aa5f86951cd04915dfb1dcb1073f.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/textures/gui/window_tiny_bg.png"
|
||||
dest_files=["res://.godot/imported/window_tiny_bg.png-4ce8aa5f86951cd04915dfb1dcb1073f.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
|
||||
@ -8,4 +8,4 @@ texture_margin_left = 35.0
|
||||
texture_margin_top = 35.0
|
||||
texture_margin_right = 35.0
|
||||
texture_margin_bottom = 35.0
|
||||
modulate_color = Color(0.664997, 0.596536, 0.412061, 1)
|
||||
modulate_color = Color(0.917647, 0.807843, 0.647059, 1)
|
||||
|
||||
@ -8,4 +8,4 @@ texture_margin_left = 20.0
|
||||
texture_margin_top = 20.0
|
||||
texture_margin_right = 20.0
|
||||
texture_margin_bottom = 20.0
|
||||
modulate_color = Color(0.664997, 0.596536, 0.412061, 1)
|
||||
modulate_color = Color(0.917647, 0.807843, 0.647059, 1)
|
||||
|
||||
@ -52,7 +52,7 @@ offset_right = 232.0
|
||||
offset_bottom = 55.0
|
||||
|
||||
[node name="AntBuyButton" type="TextureButton" parent="."]
|
||||
modulate = Color(0.81, 0.748035, 0.5913, 1)
|
||||
modulate = Color(0.827451, 0.717647, 0.564706, 1)
|
||||
layout_mode = 0
|
||||
offset_left = 241.0
|
||||
offset_top = 13.0
|
||||
|
||||
@ -57,7 +57,7 @@ offset_bottom = 58.0
|
||||
texture = SubResource("AtlasTexture_t7i0n")
|
||||
|
||||
[node name="BuyNitwitButton" type="TextureButton" parent="."]
|
||||
modulate = Color(0.81, 0.748035, 0.5913, 1)
|
||||
modulate = Color(0.827451, 0.717647, 0.564706, 1)
|
||||
layout_mode = 0
|
||||
offset_left = 13.0
|
||||
offset_top = 16.0
|
||||
@ -92,7 +92,7 @@ offset_right = 220.0
|
||||
offset_bottom = 71.0
|
||||
|
||||
[node name="BuyGathererButton" type="TextureButton" parent="."]
|
||||
modulate = Color(0.81, 0.748035, 0.5913, 1)
|
||||
modulate = Color(0.827451, 0.717647, 0.564706, 1)
|
||||
layout_mode = 0
|
||||
offset_left = 15.0
|
||||
offset_top = 77.0
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://davys5ol18oyo"]
|
||||
[gd_scene load_steps=12 format=3 uid="uid://davys5ol18oyo"]
|
||||
|
||||
[ext_resource type="StyleBox" uid="uid://do5c5v5kvgv0s" path="res://resources/styles/panel_small_style.tres" id="1_06xpe"]
|
||||
[ext_resource type="Script" path="res://scripts/ui/pause_menu.gd" id="1_kcif0"]
|
||||
[ext_resource type="Texture2D" uid="uid://dguw83ogihbta" path="res://assets/textures/gui/window_tiny_bg.png" id="2_cg76y"]
|
||||
[ext_resource type="Texture2D" uid="uid://bh01xbmjanku0" path="res://assets/textures/gui/button_bg.png" id="2_e7opb"]
|
||||
[ext_resource type="Texture2D" uid="uid://jv8twhntt6x3" path="res://assets/textures/gui/button_hover_bg.png" id="3_fx7y7"]
|
||||
[ext_resource type="Texture2D" uid="uid://slraulfmk8c0" path="res://assets/textures/gui/pictograms.png" id="4_dmywd"]
|
||||
@ -10,8 +11,8 @@
|
||||
bg_color = Color(0, 0, 0, 0.25098)
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_k576p"]
|
||||
texture = ExtResource("2_e7opb")
|
||||
modulate_color = Color(0.664997, 0.596536, 0.412061, 1)
|
||||
texture = ExtResource("2_cg76y")
|
||||
modulate_color = Color(0.917647, 0.807843, 0.647059, 1)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_td4xc"]
|
||||
atlas = ExtResource("4_dmywd")
|
||||
@ -79,7 +80,7 @@ grow_vertical = 2
|
||||
texture = SubResource("AtlasTexture_td4xc")
|
||||
|
||||
[node name="CancelButton" type="TextureButton" parent="Panel"]
|
||||
modulate = Color(0.81, 0.748035, 0.5913, 1)
|
||||
modulate = Color(0.827451, 0.717647, 0.564706, 1)
|
||||
layout_mode = 0
|
||||
offset_left = 117.0
|
||||
offset_top = -25.0
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_wrdqv"]
|
||||
texture = ExtResource("1_hsifm")
|
||||
modulate_color = Color(0.664997, 0.596536, 0.412061, 1)
|
||||
modulate_color = Color(0.917647, 0.807843, 0.647059, 1)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7modd"]
|
||||
atlas = ExtResource("6_vrqjx")
|
||||
@ -42,6 +42,7 @@ offset_bottom = 128.0
|
||||
pivot_offset = Vector2(63, 130)
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 8
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxTexture_wrdqv")
|
||||
script = ExtResource("2_b6c6l")
|
||||
|
||||
|
||||
@ -12,6 +12,7 @@ var max_count: int = 0
|
||||
var count_per_row: int = 0
|
||||
var rect_size: float = RECT_SIZE
|
||||
|
||||
var counter_0 := preload("res://assets/textures/gui/honeydew_0.png")
|
||||
var counter_1 := preload("res://assets/textures/gui/honeydew_1.png")
|
||||
var counter_2 := preload("res://assets/textures/gui/honeydew_2.png")
|
||||
var counter_3 := preload("res://assets/textures/gui/honeydew_3.png")
|
||||
@ -52,9 +53,7 @@ func update_counter(new_count: int) -> void:
|
||||
var rect := rects[i]
|
||||
var amount := i * SPRITES_PER_RECT
|
||||
if amount >= new_count:
|
||||
rect.texture = counter_5
|
||||
rect.modulate = Color.BLACK
|
||||
rect.modulate.a = 0.1
|
||||
rect.texture = counter_0
|
||||
continue
|
||||
rect.modulate = Color.WHITE
|
||||
if amount < whole:
|
||||
@ -70,8 +69,6 @@ func update_counter(new_count: int) -> void:
|
||||
rect.texture = counter_3
|
||||
4:
|
||||
rect.texture = counter_4
|
||||
_:
|
||||
rect.texture = counter_5
|
||||
|
||||
|
||||
func _create_rect(col: int, row: int) -> TextureRect:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user