@@ -213,7 +213,7 @@ fn create_buttons<T: Component + States>(builder: &mut ChildSpawnerCommands, val
213213 align_items : AlignItems :: Center ,
214214 ..default ( )
215215 } ,
216- BorderColor ( Color :: BLACK ) ,
216+ BorderColor :: all ( Color :: BLACK ) ,
217217 BorderRadius :: MAX ,
218218 BackgroundColor ( Color :: srgb ( 0.2 , 0.2 , 0.2 ) ) ,
219219 value. clone ( ) ,
@@ -233,9 +233,9 @@ fn highlight<T: Component + States>(
233233) {
234234 for ( mut border, m) in query. iter_mut ( ) {
235235 * border = if m == state. get ( ) {
236- BorderColor ( Color :: srgb ( 0.0 , 0.0 , 1.0 ) )
236+ BorderColor :: all ( Color :: srgb ( 0.0 , 0.0 , 1.0 ) )
237237 } else {
238- BorderColor ( Color :: BLACK )
238+ BorderColor :: all ( Color :: BLACK )
239239 } ;
240240 }
241241}
@@ -259,7 +259,7 @@ fn interaction<T: Component + FreelyMutableState>(
259259
260260fn change_mode (
261261 mut commands : Commands ,
262- mut reader : EventReader < StateTransitionEvent < DrawMethod > > ,
262+ mut reader : MessageReader < StateTransitionEvent < DrawMethod > > ,
263263 query : Query < Entity , With < TheObject > > ,
264264) {
265265 for event in reader. read ( ) {
@@ -278,7 +278,7 @@ fn change_mode(
278278
279279fn change_shape (
280280 mut commands : Commands ,
281- mut reader : EventReader < StateTransitionEvent < DrawShape > > ,
281+ mut reader : MessageReader < StateTransitionEvent < DrawShape > > ,
282282 query : Query < Entity , With < TheObject > > ,
283283 shapes : Res < Shapes > ,
284284) {
@@ -293,7 +293,7 @@ fn change_shape(
293293
294294fn change_orientation (
295295 mut commands : Commands ,
296- mut reader : EventReader < StateTransitionEvent < DrawOrientation > > ,
296+ mut reader : MessageReader < StateTransitionEvent < DrawOrientation > > ,
297297 query : Query < Entity , With < TheObject > > ,
298298) {
299299 for event in reader. read ( ) {
0 commit comments