Skip to content

Commit

Permalink
背景画像変更のIF変更に追従
Browse files Browse the repository at this point in the history
  • Loading branch information
mitoma committed Dec 22, 2024
1 parent 811b21c commit 6df7d6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions ui_support/examples/save_apng2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use font_rasterizer::{
rasterizer_pipeline::Quarity,
};
use log::info;
use stroke_parser::Action;
use stroke_parser::{Action, ActionArgument};
use text_buffer::action::EditorOperation;
use ui_support::{
action::ActionProcessorStore,
Expand Down Expand Up @@ -129,9 +129,10 @@ impl SimpleStateCallback for SingleCharCallback {
.unwrap();
context
.post_action_queue_sender
.send(stroke_parser::Action::new_command(
.send(stroke_parser::Action::new_command_with_argument(
"system",
"change-background-image",
"kashikishi/asset/image/wallpaper.jpg",
))
.unwrap();
self.world.editor_operation(&EditorOperation::InsertEnter);
Expand Down
3 changes: 2 additions & 1 deletion ui_support/examples/save_gif.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,10 @@ impl SimpleStateCallback for SingleCharCallback {
.unwrap();
context
.post_action_queue_sender
.send(stroke_parser::Action::new_command(
.send(stroke_parser::Action::new_command_with_argument(
"system",
"change-background-image",
"kashikishi/asset/image/wallpaper.jpg",
))
.unwrap();
self.world.editor_operation(&EditorOperation::InsertEnter);
Expand Down

0 comments on commit 6df7d6c

Please sign in to comment.