From dfb6d044b5a4e155c3cf33b5dd1e05967af19590 Mon Sep 17 00:00:00 2001 From: Cherry Date: Thu, 18 Jan 2024 21:50:06 -0500 Subject: [PATCH] fix deprecation warnings about `TRANS_QUAD` -> `QUAD` --- pets-lib/src/consts.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pets-lib/src/consts.rs b/pets-lib/src/consts.rs index 50652022..1af87d8f 100644 --- a/pets-lib/src/consts.rs +++ b/pets-lib/src/consts.rs @@ -24,7 +24,7 @@ pub mod dialogue { pub const UI_LAYER_NAME: &str = "UILayer"; pub const DBOX_NODE_NAME: &str = "DialogBox"; pub const DBOX_TWEEN_TIME: f64 = 0.5; - pub const DBOX_TWEEN_TRANS: TransitionType = TransitionType::TRANS_QUAD; + pub const DBOX_TWEEN_TRANS: TransitionType = TransitionType::QUAD; /// distance the dialog box is from the bottom of the screen /// to avoid the glow effect from showing while it's not active @@ -42,6 +42,6 @@ pub mod main_menu { use super::*; pub const MENU_TWEEN_TIME: f64 = 0.1; - pub const MENU_TWEEN_TRANS: TransitionType = TransitionType::TRANS_QUAD; + pub const MENU_TWEEN_TRANS: TransitionType = TransitionType::QUAD; pub const MENU_WAVE_BBCODE: &str = dialogue::DBOX_SELECTION_BBCODE; }