Merge pull request #688 from WallK/feat/gd-2x-icons

2x bigger toggles
This commit is contained in:
XargonWan 2024-02-19 09:33:42 +01:00 committed by GitHub
commit cb45c34866
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 172 additions and 66 deletions

View file

@ -2,9 +2,11 @@ extends Control
func _ready():
var children = findElements(self, "Control")
for n: Control in children: #iterate the children to grab focus on mouse hov
for n: Control in children: #iterate the children
if (n.focus_mode == FOCUS_ALL):
n.mouse_entered.connect(_on_control_mouse_entered.bind(n))
n.mouse_entered.connect(_on_control_mouse_entered.bind(n)) #grab focus on mouse hover
if (n.is_class("BaseButton") and n.disabled == true): #if button-like control and disabled
n.self_modulate.a = 0.5 #make it half transparent
combine_tkeys()

View file

@ -82,7 +82,8 @@ previous_tab={
[internationalization]
locale/translation_remaps={
"res://res/pixel_ui_theme/8x8_ui_elements.png": PackedStringArray("res://res/pixel_ui_theme/8x8_ui_elements_de.png:de", "res://res/pixel_ui_theme/8x8_ui_elements_sv.png:sv")
"res://res/pixel_ui_theme/8x8_ui_elements.png": PackedStringArray("res://res/pixel_ui_theme/8x8_ui_elements_de.png:de", "res://res/pixel_ui_theme/8x8_ui_elements_sv.png:sv"),
"res://res/pixel_ui_theme/8x8_ui_elements2x.png": PackedStringArray("res://res/pixel_ui_theme/8x8_ui_elements2x_de.png:de", "res://res/pixel_ui_theme/8x8_ui_elements2x_sv.png:sv")
}
locale/translations=PackedStringArray("res://locales/interface.en.translation", "res://locales/interface.it.translation", "res://locales/interface.de.translation", "res://locales/interface.sv.translation", "res://locales/interface.ua.translation", "res://locales/interface.zh.translation", "res://locales/interface.ja.translation")

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c4vntk8yri4yw"
path="res://.godot/imported/8x8_ui_elements2x.png-49d4190754cd0b40f3ef4343ba003cfc.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/pixel_ui_theme/8x8_ui_elements2x.png"
dest_files=["res://.godot/imported/8x8_ui_elements2x.png-49d4190754cd0b40f3ef4343ba003cfc.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://tnt4xdvptk05"
path="res://.godot/imported/8x8_ui_elements2x_de.png-582cc2feae86dd150993f829aa5d78a7.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/pixel_ui_theme/8x8_ui_elements2x_de.png"
dest_files=["res://.godot/imported/8x8_ui_elements2x_de.png-582cc2feae86dd150993f829aa5d78a7.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://6qodaspy44kq"
path="res://.godot/imported/8x8_ui_elements2x_sv.png-cb942b04d7580bcfa5e2bd625ab98e1a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/pixel_ui_theme/8x8_ui_elements2x_sv.png"
dest_files=["res://.godot/imported/8x8_ui_elements2x_sv.png-cb942b04d7580bcfa5e2bd625ab98e1a.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

File diff suppressed because one or more lines are too long