@@ -224,20 +224,19 @@ fn menu(
224224 tutorial_state : Res < State < TutorialState > > ,
225225 mut next_tutorial : ResMut < NextState < TutorialState > > ,
226226 mut interaction_query : Query <
227- ( & Interaction , & mut UiImage , & MenuButton ) ,
227+ ( & Interaction , & mut BackgroundColor , & MenuButton ) ,
228228 ( Changed < Interaction > , With < Button > ) ,
229229 > ,
230230) {
231- for ( interaction, mut image, menu_button) in & mut interaction_query {
232- let color = & mut image. color ;
231+ for ( interaction, mut color, menu_button) in & mut interaction_query {
233232 match * interaction {
234233 Interaction :: Pressed => {
235234 * color = if menu_button == & MenuButton :: Tutorial
236235 && tutorial_state. get ( ) == & TutorialState :: Active
237236 {
238- PRESSED_ACTIVE_BUTTON
237+ PRESSED_ACTIVE_BUTTON . into ( )
239238 } else {
240- PRESSED_BUTTON
239+ PRESSED_BUTTON . into ( )
241240 } ;
242241
243242 match menu_button {
@@ -255,18 +254,18 @@ fn menu(
255254 if menu_button == & MenuButton :: Tutorial
256255 && tutorial_state. get ( ) == & TutorialState :: Active
257256 {
258- * color = HOVERED_ACTIVE_BUTTON ;
257+ * color = HOVERED_ACTIVE_BUTTON . into ( ) ;
259258 } else {
260- * color = HOVERED_BUTTON ;
259+ * color = HOVERED_BUTTON . into ( ) ;
261260 }
262261 }
263262 Interaction :: None => {
264263 if menu_button == & MenuButton :: Tutorial
265264 && tutorial_state. get ( ) == & TutorialState :: Active
266265 {
267- * color = ACTIVE_BUTTON ;
266+ * color = ACTIVE_BUTTON . into ( ) ;
268267 } else {
269- * color = NORMAL_BUTTON ;
268+ * color = NORMAL_BUTTON . into ( ) ;
270269 }
271270 }
272271 }
0 commit comments