1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

Use outlines textures for tool cursor icons

Instead of using the AutoInvertColors shader
This commit is contained in:
Manolis Papadeas 2021-08-18 15:06:10 +03:00
parent 3dfd597de4
commit 147a08f28b
36 changed files with 581 additions and 12 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/bucket.png-c4bf805415b00425c55b8adac894ad7c.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/tools/cursors/bucket.png"
dest_files=[ "res://.import/bucket.png-c4bf805415b00425c55b8adac894ad7c.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/colorpicker.png-c6a61314982ffe89f5d4075de144fe78.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/tools/cursors/colorpicker.png"
dest_files=[ "res://.import/colorpicker.png-c6a61314982ffe89f5d4075de144fe78.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/colorselect.png-855fe4674fbd105e7500362dbda30f8a.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/tools/cursors/colorselect.png"
dest_files=[ "res://.import/colorselect.png-855fe4674fbd105e7500362dbda30f8a.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/ellipseselect.png-8527cb3b0a9808cb60359a76f56bc85d.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/tools/cursors/ellipseselect.png"
dest_files=[ "res://.import/ellipseselect.png-8527cb3b0a9808cb60359a76f56bc85d.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/ellipsetool.png-20648f66274b5b7765f16a599dc4d5ff.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/tools/cursors/ellipsetool.png"
dest_files=[ "res://.import/ellipsetool.png-20648f66274b5b7765f16a599dc4d5ff.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/eraser.png-a00636af98c0fcf6bd6bf35640b83459.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/tools/cursors/eraser.png"
dest_files=[ "res://.import/eraser.png-a00636af98c0fcf6bd6bf35640b83459.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/lasso.png-b57369a1f33ebad796567cc7f2255d6c.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/tools/cursors/lasso.png"
dest_files=[ "res://.import/lasso.png-b57369a1f33ebad796567cc7f2255d6c.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/linetool.png-f88b6978c31a033619980bf335cfaa21.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/tools/cursors/linetool.png"
dest_files=[ "res://.import/linetool.png-f88b6978c31a033619980bf335cfaa21.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/magicwand.png-a88950f47e167183b2e78f8980f580f0.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/tools/cursors/magicwand.png"
dest_files=[ "res://.import/magicwand.png-a88950f47e167183b2e78f8980f580f0.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/move.png-3d9f5f2d803b18a63b76370eb4228771.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/tools/cursors/move.png"
dest_files=[ "res://.import/move.png-3d9f5f2d803b18a63b76370eb4228771.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/pan.png-c49ef20d232155a864f417b751f95229.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/tools/cursors/pan.png"
dest_files=[ "res://.import/pan.png-c49ef20d232155a864f417b751f95229.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/pencil.png-ad4aa17c50d39e687be59518f7ec26db.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/tools/cursors/pencil.png"
dest_files=[ "res://.import/pencil.png-ad4aa17c50d39e687be59518f7ec26db.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/polygonselect.png-f7d96d53f34c3c81d653feb6c115ef81.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/tools/cursors/polygonselect.png"
dest_files=[ "res://.import/polygonselect.png-f7d96d53f34c3c81d653feb6c115ef81.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/rectangletool.png-09c04120a942fab47b3339db72969340.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/tools/cursors/rectangletool.png"
dest_files=[ "res://.import/rectangletool.png-09c04120a942fab47b3339db72969340.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 B

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/rectselect.png-6c6ec53df2045632b26bffa7c0399df4.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/tools/cursors/rectselect.png"
dest_files=[ "res://.import/rectselect.png-6c6ec53df2045632b26bffa7c0399df4.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/shading.png-984f5bf0d673a3c8f88917a16ae424be.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/tools/cursors/shading.png"
dest_files=[ "res://.import/shading.png-984f5bf0d673a3c8f88917a16ae424be.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/zoom.png-f285932698b88413c8bee72a7eaeb729.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/tools/cursors/zoom.png"
dest_files=[ "res://.import/zoom.png-f285932698b88413c8bee72a7eaeb729.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

View file

@ -181,9 +181,9 @@ func update_tool_buttons() -> void:
func update_tool_cursors() -> void:
var left_image = load("res://assets/graphics/tools/%s.png" % _slots[BUTTON_LEFT].tool_node.name.to_lower())
var left_image = load("res://assets/graphics/tools/cursors/%s.png" % _slots[BUTTON_LEFT].tool_node.name.to_lower())
Global.left_cursor_tool_texture = left_image
var right_image = load("res://assets/graphics/tools/%s.png" % _slots[BUTTON_RIGHT].tool_node.name.to_lower())
var right_image = load("res://assets/graphics/tools/cursors/%s.png" % _slots[BUTTON_RIGHT].tool_node.name.to_lower())
Global.right_cursor_tool_texture = right_image

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=20 format=2]
[gd_scene load_steps=17 format=2]
[ext_resource path="res://assets/themes/dark/theme.tres" type="Theme" id=1]
[ext_resource path="res://src/Main.gd" type="Script" id=2]
@ -9,7 +9,6 @@
[ext_resource path="res://src/UI/Dialogs/ImageEffects/ImageEffects.tscn" type="PackedScene" id=7]
[ext_resource path="res://src/UI/Dialogs/SaveSpriteHTML5.tscn" type="PackedScene" id=8]
[ext_resource path="res://src/UI/Timeline/FrameProperties.tscn" type="PackedScene" id=9]
[ext_resource path="res://src/Shaders/AutoInvertColors.shader" type="Shader" id=10]
[ext_resource path="res://src/UI/Dialogs/SaveSprite.tscn" type="PackedScene" id=11]
[ext_resource path="res://src/UI/Dialogs/OpenSprite.tscn" type="PackedScene" id=12]
[ext_resource path="res://src/UI/Dialogs/SplashDialog.tscn" type="PackedScene" id=27]
@ -18,12 +17,6 @@
[ext_resource path="res://src/UI/Dialogs/AboutDialog.tscn" type="PackedScene" id=34]
[ext_resource path="res://src/UI/Dialogs/ExportDialog.tscn" type="PackedScene" id=39]
[sub_resource type="ShaderMaterial" id=1]
shader = ExtResource( 10 )
[sub_resource type="ShaderMaterial" id=2]
shader = ExtResource( 10 )
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
@ -120,11 +113,9 @@ Do you want to reload it?"
[node name="LeftCursor" type="Sprite" parent="."]
visible = false
material = SubResource( 1 )
[node name="RightCursor" type="Sprite" parent="."]
visible = false
material = SubResource( 2 )
[node name="ModulateTween" type="Tween" parent="."]