You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix incomplete FPS spinbox display in sprite frames editor
This commit is contained in:
@@ -1284,6 +1284,10 @@ void SpriteFramesEditor::_animation_loop_changed() {
|
||||
undo_redo->commit_action();
|
||||
}
|
||||
|
||||
void SpriteFramesEditor::_animation_speed_resized() {
|
||||
anim_speed->update_minimum_size();
|
||||
}
|
||||
|
||||
void SpriteFramesEditor::_animation_speed_changed(double p_value) {
|
||||
if (updating) {
|
||||
return;
|
||||
@@ -1970,6 +1974,8 @@ SpriteFramesEditor::SpriteFramesEditor() {
|
||||
anim_speed->set_step(0.01);
|
||||
anim_speed->set_custom_arrow_step(1);
|
||||
anim_speed->set_tooltip_text(TTR("Animation Speed"));
|
||||
anim_speed->get_line_edit()->set_expand_to_text_length_enabled(true);
|
||||
anim_speed->get_line_edit()->connect(SceneStringName(resized), callable_mp(this, &SpriteFramesEditor::_animation_speed_resized));
|
||||
anim_speed->connect(SceneStringName(value_changed), callable_mp(this, &SpriteFramesEditor::_animation_speed_changed));
|
||||
hbc_animlist->add_child(anim_speed);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user