mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-07 10:59:49 +00:00
Added texture for the onion skinning button for when it's disabled
This commit is contained in:
parent
a5958ed321
commit
ce94b9fcc2
BIN
Assets/Graphics/Dark Themes/Timeline/Onion_Skinning_Off.png
Normal file
BIN
Assets/Graphics/Dark Themes/Timeline/Onion_Skinning_Off.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4 KiB |
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/Onion_Skinning_Off.png-44f6d168808bd3a953b10c86bdbe33fb.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Assets/Graphics/Dark Themes/Timeline/Onion_Skinning_Off.png"
|
||||||
|
dest_files=[ "res://.import/Onion_Skinning_Off.png-44f6d168808bd3a953b10c86bdbe33fb.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=true
|
||||||
|
svg/scale=1.0
|
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/Onion_Skinning_Off_Hover.png-9f743ab03826ccec17e8123f0da4b1d7.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Assets/Graphics/Dark Themes/Timeline/Onion_Skinning_Off_Hover.png"
|
||||||
|
dest_files=[ "res://.import/Onion_Skinning_Off_Hover.png-9f743ab03826ccec17e8123f0da4b1d7.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=true
|
||||||
|
svg/scale=1.0
|
BIN
Assets/Graphics/Gold Themes/Timeline/Onion_Skinning_Off.png
Normal file
BIN
Assets/Graphics/Gold Themes/Timeline/Onion_Skinning_Off.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/Onion_Skinning_Off.png-bff5e06f0089ec01fdfb240955de6f6d.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Assets/Graphics/Gold Themes/Timeline/Onion_Skinning_Off.png"
|
||||||
|
dest_files=[ "res://.import/Onion_Skinning_Off.png-bff5e06f0089ec01fdfb240955de6f6d.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=true
|
||||||
|
svg/scale=1.0
|
Binary file not shown.
After Width: | Height: | Size: 4.7 KiB |
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/Onion_Skinning_Off_Hover.png-53339cf054bbc8f4c9a248d9eb420e13.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Assets/Graphics/Gold Themes/Timeline/Onion_Skinning_Off_Hover.png"
|
||||||
|
dest_files=[ "res://.import/Onion_Skinning_Off_Hover.png-53339cf054bbc8f4c9a248d9eb420e13.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=true
|
||||||
|
svg/scale=1.0
|
BIN
Assets/Graphics/Light Themes/Timeline/Onion_Skinning_Off.png
Normal file
BIN
Assets/Graphics/Light Themes/Timeline/Onion_Skinning_Off.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/Onion_Skinning_Off.png-715f04ca2cc673ef6a6d3c7b618ed073.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Assets/Graphics/Light Themes/Timeline/Onion_Skinning_Off.png"
|
||||||
|
dest_files=[ "res://.import/Onion_Skinning_Off.png-715f04ca2cc673ef6a6d3c7b618ed073.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=true
|
||||||
|
svg/scale=1.0
|
Binary file not shown.
After Width: | Height: | Size: 4.5 KiB |
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/Onion_Skinning_Off_Hover.png-448230dc1fa15595ab52c002077353a9.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Assets/Graphics/Light Themes/Timeline/Onion_Skinning_Off_Hover.png"
|
||||||
|
dest_files=[ "res://.import/Onion_Skinning_Off_Hover.png-448230dc1fa15595ab52c002077353a9.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=true
|
||||||
|
svg/scale=1.0
|
|
@ -34,8 +34,8 @@
|
||||||
[ext_resource path="res://Assets/Graphics/Dark Themes/Timeline/Go_To_Last_Frame.png" type="Texture" id=32]
|
[ext_resource path="res://Assets/Graphics/Dark Themes/Timeline/Go_To_Last_Frame.png" type="Texture" id=32]
|
||||||
[ext_resource path="res://Assets/Graphics/Dark Themes/Timeline/Go_To_Last_Frame_Hover.png" type="Texture" id=33]
|
[ext_resource path="res://Assets/Graphics/Dark Themes/Timeline/Go_To_Last_Frame_Hover.png" type="Texture" id=33]
|
||||||
[ext_resource path="res://Assets/Graphics/Dark Themes/Timeline/Loop_Hover.png" type="Texture" id=34]
|
[ext_resource path="res://Assets/Graphics/Dark Themes/Timeline/Loop_Hover.png" type="Texture" id=34]
|
||||||
[ext_resource path="res://Assets/Graphics/Dark Themes/Timeline/Onion_Skinning.png" type="Texture" id=35]
|
[ext_resource path="res://Assets/Graphics/Dark Themes/Timeline/Onion_Skinning_Off.png" type="Texture" id=35]
|
||||||
[ext_resource path="res://Assets/Graphics/Dark Themes/Timeline/Onion_Skinning_Hover.png" type="Texture" id=36]
|
[ext_resource path="res://Assets/Graphics/Dark Themes/Timeline/Onion_Skinning_Off_Hover.png" type="Texture" id=36]
|
||||||
[ext_resource path="res://Assets/Graphics/Dark Themes/Timeline/Loop.png" type="Texture" id=37]
|
[ext_resource path="res://Assets/Graphics/Dark Themes/Timeline/Loop.png" type="Texture" id=37]
|
||||||
[ext_resource path="res://Assets/Graphics/Dark Themes/Timeline/Expandable.png" type="Texture" id=38]
|
[ext_resource path="res://Assets/Graphics/Dark Themes/Timeline/Expandable.png" type="Texture" id=38]
|
||||||
[ext_resource path="res://Assets/Graphics/Dark Themes/Timeline/Expandable_Hover.png" type="Texture" id=39]
|
[ext_resource path="res://Assets/Graphics/Dark Themes/Timeline/Expandable_Hover.png" type="Texture" id=39]
|
||||||
|
|
|
@ -57,6 +57,12 @@ func add_frame() -> void:
|
||||||
func _on_OnionSkinning_pressed() -> void:
|
func _on_OnionSkinning_pressed() -> void:
|
||||||
Global.onion_skinning = !Global.onion_skinning
|
Global.onion_skinning = !Global.onion_skinning
|
||||||
Global.canvas.update()
|
Global.canvas.update()
|
||||||
|
if Global.onion_skinning:
|
||||||
|
Global.onion_skinning_button.texture_normal = load("res://Assets/Graphics/%s Themes/Timeline/Onion_Skinning.png" % Global.theme_type)
|
||||||
|
Global.onion_skinning_button.texture_hover = load("res://Assets/Graphics/%s Themes/Timeline/Onion_Skinning_Hover.png" % Global.theme_type)
|
||||||
|
else:
|
||||||
|
Global.onion_skinning_button.texture_normal = load("res://Assets/Graphics/%s Themes/Timeline/Onion_Skinning_Off.png" % Global.theme_type)
|
||||||
|
Global.onion_skinning_button.texture_hover = load("res://Assets/Graphics/%s Themes/Timeline/Onion_Skinning_Off_Hover.png" % Global.theme_type)
|
||||||
|
|
||||||
|
|
||||||
func _on_OnionSkinningSettings_pressed() -> void:
|
func _on_OnionSkinningSettings_pressed() -> void:
|
||||||
|
|
|
@ -227,6 +227,7 @@ var animation_timeline : Panel
|
||||||
var animation_timer : Timer
|
var animation_timer : Timer
|
||||||
var frame_ids : HBoxContainer
|
var frame_ids : HBoxContainer
|
||||||
var current_frame_label : Label
|
var current_frame_label : Label
|
||||||
|
var onion_skinning_button : BaseButton
|
||||||
var loop_animation_button : BaseButton
|
var loop_animation_button : BaseButton
|
||||||
var play_forward : BaseButton
|
var play_forward : BaseButton
|
||||||
var play_backwards : BaseButton
|
var play_backwards : BaseButton
|
||||||
|
@ -346,6 +347,7 @@ func _ready() -> void:
|
||||||
animation_timer = find_node_by_name(animation_timeline, "AnimationTimer")
|
animation_timer = find_node_by_name(animation_timeline, "AnimationTimer")
|
||||||
frame_ids = find_node_by_name(animation_timeline, "FrameIDs")
|
frame_ids = find_node_by_name(animation_timeline, "FrameIDs")
|
||||||
current_frame_label = find_node_by_name(animation_timeline, "CurrentFrame")
|
current_frame_label = find_node_by_name(animation_timeline, "CurrentFrame")
|
||||||
|
onion_skinning_button = find_node_by_name(animation_timeline, "OnionSkinning")
|
||||||
loop_animation_button = find_node_by_name(animation_timeline, "LoopAnim")
|
loop_animation_button = find_node_by_name(animation_timeline, "LoopAnim")
|
||||||
play_forward = find_node_by_name(animation_timeline, "PlayForward")
|
play_forward = find_node_by_name(animation_timeline, "PlayForward")
|
||||||
play_backwards = find_node_by_name(animation_timeline, "PlayBackwards")
|
play_backwards = find_node_by_name(animation_timeline, "PlayBackwards")
|
||||||
|
|
Loading…
Reference in a new issue