mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-29 02:08:48 -06:00
replace .into_workload().run_if()
with .run_if()
This commit is contained in:
parent
e0872b331f
commit
d28069e9e6
|
@ -1,4 +1,4 @@
|
||||||
use shipyard::{UniqueView, UniqueViewMut, Workload, IntoWorkload, WorkloadModificator, EntityId, Unique, AllStoragesViewMut, ViewMut, View, IntoIter, Get};
|
use shipyard::{UniqueView, UniqueViewMut, Workload, IntoWorkload, EntityId, Unique, AllStoragesViewMut, ViewMut, Get, SystemModificator};
|
||||||
use glam::{Mat3, vec2};
|
use glam::{Mat3, vec2};
|
||||||
use crate::{
|
use crate::{
|
||||||
world::ChunkStorage,
|
world::ChunkStorage,
|
||||||
|
@ -82,10 +82,10 @@ fn despawn_loading_screen_if_switching_state(
|
||||||
|
|
||||||
pub fn update_loading_screen() -> Workload {
|
pub fn update_loading_screen() -> Workload {
|
||||||
(
|
(
|
||||||
spawn_loading_screen.into_workload().run_if_missing_unique::<ProgressbarId>(),
|
spawn_loading_screen.run_if_missing_unique::<ProgressbarId>(),
|
||||||
resize_progress_bar.into_workload().run_if(if_resized),
|
resize_progress_bar.run_if(if_resized),
|
||||||
update_progress_bar_progress,
|
update_progress_bar_progress,
|
||||||
switch_to_ingame_if_loaded,
|
switch_to_ingame_if_loaded,
|
||||||
despawn_loading_screen_if_switching_state.into_workload().run_if(is_changing_state),
|
despawn_loading_screen_if_switching_state.run_if(is_changing_state),
|
||||||
).into_workload()
|
).into_workload()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue