2x bigger toggles

More bleak disabled items
This commit is contained in:
WallK 2024-02-19 09:15:59 +02:00
parent 3505d7f0bc
commit e78a5723ab
4 changed files with 102 additions and 65 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()

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

File diff suppressed because one or more lines are too long