mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-23 08:17:34 -04:00
hires tab icon
This commit is contained in:
parent
f9883859b5
commit
d3be9f51cf
4 changed files with 67 additions and 2 deletions
13
app/scripts/ui/tabs/tab_icon.gd
Normal file
13
app/scripts/ui/tabs/tab_icon.gd
Normal file
|
@ -0,0 +1,13 @@
|
|||
extends Panel
|
||||
|
||||
@export var icon: TextureRect
|
||||
@export var icon_hires: TextureRect
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
if DisplayServer.screen_get_scale() == 2.0:
|
||||
icon.hide()
|
||||
icon_hires.show()
|
||||
else:
|
||||
icon.show()
|
||||
icon_hires.hide()
|
Loading…
Add table
Add a link
Reference in a new issue