-
-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Frame numbers in the timeline above the cels are now clickable buttons
- Loading branch information
1 parent
a4c9e0e
commit 39b0bac
Showing
4 changed files
with
44 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
extends Button | ||
|
||
|
||
var frame := 0 | ||
|
||
|
||
func _ready() -> void: | ||
connect("pressed", self, "_button_pressed") | ||
|
||
|
||
func _button_pressed() -> void: | ||
Global.current_project.current_frame = frame |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[gd_scene load_steps=2 format=2] | ||
|
||
[ext_resource path="res://src/UI/Timeline/FrameButton.gd" type="Script" id=1] | ||
|
||
[node name="FrameButton" type="Button"] | ||
margin_right = 12.0 | ||
margin_bottom = 20.0 | ||
mouse_default_cursor_shape = 2 | ||
text = "1" | ||
script = ExtResource( 1 ) | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} |