release v1.0.0

This commit is contained in:
Jim 2025-10-05 16:43:21 -04:00
parent 09e244d748
commit 6d887cfb04
Signed by: jim
GPG key ID: 3D7D94BA53088BF4
4 changed files with 8 additions and 27 deletions

2
.gitignore vendored
View file

@ -1 +1,3 @@
/target
/builds
/webbuild

View file

@ -1,11 +1,11 @@
(
map: {
MouseButton(Middle): [
CameraOrbitEnable,
],
KeyCode(ShiftLeft): [
MultiPlaceTower,
],
MouseButton(Middle): [
CameraOrbitEnable,
],
KeyCode(F1): [
ToggleDebugUI,
],

View file

@ -70,7 +70,9 @@ fn select(
mut writer: EventWriter<SelectEntity>,
) {
// avoid deselecting when clicking on ui
if physics_query.contains(trigger.event().target) {
if trigger.event().button == PointerButton::Primary
&& physics_query.contains(trigger.event().target)
{
writer.write(SelectEntity(Some(trigger.event().target)));
}
}

View file

@ -37,7 +37,6 @@ impl Plugin for UiIngamePlugin {
.run_if(in_state(GameUIState::Default).and(not(in_state(CoreState::Dead)))),
game_over.run_if(in_state(GameState::GameOver)),
plan_ui.run_if(in_state(GameUIState::Default).and(in_state(Phase::Plan))),
execute_ui.run_if(in_state(GameUIState::Default).and(in_state(Phase::Execute))),
transition_ui.run_if(
in_state(GameUIState::Default).and(
not(in_state(PhaseTransitionState::None))
@ -102,28 +101,6 @@ fn plan_ui(
});
}
fn execute_ui(mut contexts: EguiContexts, mut res: ResMut<Resources>) {
let ctx = contexts.ctx_mut().unwrap();
egui::Window::new("ExecuteUI")
.resizable(false)
.collapsible(false)
.title_bar(false)
.anchor(Align2::CENTER_TOP, [0., 0.])
.show(ctx, |ui| {
// todo - remove this
if ui
.button(RichText::new("DEBUG - $$$").size(LARGE_FONT_SIZE))
.clicked()
{
res.0 = res.0
+ Quantity {
souls: 100,
bones: 100,
}
}
});
}
#[derive(Resource, DerefMut, Deref)]
struct TransitionTimer(Timer);