add tower selection UI, cancellable actions, and pause UI
This commit is contained in:
parent
138a524abd
commit
918b4884b2
18 changed files with 468 additions and 23 deletions
|
|
@ -62,6 +62,7 @@ fn on_building_removed(mut world: DeferredWorld, context: HookContext) {
|
|||
pub struct BuildingInfo {
|
||||
pub preview: Entity,
|
||||
pub size: UVec3,
|
||||
pub unlocked: bool,
|
||||
}
|
||||
|
||||
#[derive(Component)]
|
||||
|
|
@ -69,9 +70,6 @@ pub struct BuildingPreview {
|
|||
pub info: Entity,
|
||||
}
|
||||
|
||||
#[derive(Component, Default)]
|
||||
pub struct ActiveBuildingPreview(pub IVec3);
|
||||
|
||||
pub const PREVIEW_ALPHA: f32 = 0.5;
|
||||
|
||||
fn register_building_info(mut world: DeferredWorld, context: HookContext) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue