feat: updated engine version to 4.4-rc1
This commit is contained in:
parent
ee00efde1f
commit
21ba8e33af
5459 changed files with 1128836 additions and 198305 deletions
|
|
@ -50,8 +50,8 @@ void AudioStreamEditor::_notification(int p_what) {
|
|||
_current_label->add_theme_font_override(SceneStringName(font), font);
|
||||
_duration_label->add_theme_font_override(SceneStringName(font), font);
|
||||
|
||||
_play_button->set_icon(get_editor_theme_icon(SNAME("MainPlay")));
|
||||
_stop_button->set_icon(get_editor_theme_icon(SNAME("Stop")));
|
||||
_play_button->set_button_icon(get_editor_theme_icon(SNAME("MainPlay")));
|
||||
_stop_button->set_button_icon(get_editor_theme_icon(SNAME("Stop")));
|
||||
_preview->set_color(get_theme_color(SNAME("dark_color_2"), EditorStringName(Editor)));
|
||||
|
||||
set_color(get_theme_color(SNAME("dark_color_1"), EditorStringName(Editor)));
|
||||
|
|
@ -121,26 +121,26 @@ void AudioStreamEditor::_play() {
|
|||
if (_player->is_playing()) {
|
||||
_pausing = true;
|
||||
_player->stop();
|
||||
_play_button->set_icon(get_editor_theme_icon(SNAME("MainPlay")));
|
||||
_play_button->set_button_icon(get_editor_theme_icon(SNAME("MainPlay")));
|
||||
set_process(false);
|
||||
} else {
|
||||
_pausing = false;
|
||||
_player->play(_current);
|
||||
_play_button->set_icon(get_editor_theme_icon(SNAME("Pause")));
|
||||
_play_button->set_button_icon(get_editor_theme_icon(SNAME("Pause")));
|
||||
set_process(true);
|
||||
}
|
||||
}
|
||||
|
||||
void AudioStreamEditor::_stop() {
|
||||
_player->stop();
|
||||
_play_button->set_icon(get_editor_theme_icon(SNAME("MainPlay")));
|
||||
_play_button->set_button_icon(get_editor_theme_icon(SNAME("MainPlay")));
|
||||
_current = 0;
|
||||
_indicator->queue_redraw();
|
||||
set_process(false);
|
||||
}
|
||||
|
||||
void AudioStreamEditor::_on_finished() {
|
||||
_play_button->set_icon(get_editor_theme_icon(SNAME("MainPlay")));
|
||||
_play_button->set_button_icon(get_editor_theme_icon(SNAME("MainPlay")));
|
||||
if (!_pausing) {
|
||||
_current = 0;
|
||||
_indicator->queue_redraw();
|
||||
|
|
@ -245,7 +245,7 @@ AudioStreamEditor::AudioStreamEditor() {
|
|||
_play_button->set_flat(true);
|
||||
_play_button->set_focus_mode(Control::FOCUS_NONE);
|
||||
_play_button->connect(SceneStringName(pressed), callable_mp(this, &AudioStreamEditor::_play));
|
||||
_play_button->set_shortcut(ED_SHORTCUT("audio_stream_editor/audio_preview_play_pause", TTR("Audio Preview Play/Pause"), Key::SPACE));
|
||||
_play_button->set_shortcut(ED_SHORTCUT("audio_stream_editor/audio_preview_play_pause", TTRC("Audio Preview Play/Pause"), Key::SPACE));
|
||||
|
||||
_stop_button = memnew(Button);
|
||||
hbox->add_child(_stop_button);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue