Compare commits
5 Commits
2.0.0
...
69f67d303e
| Author | SHA1 | Date | |
|---|---|---|---|
| 69f67d303e | |||
| 6d05440d98 | |||
| 686d24f7b5 | |||
| 972c310673 | |||
| 90b703ee30 |
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "town-of-us-updater"
|
||||
version = "2.0.0"
|
||||
version = "3.0.0"
|
||||
edition = "2021"
|
||||
build = "src/build.rs"
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ A tool to automatically install the **Town of Us R** mod for **Among Us**.
|
||||
- Caches old builds to allow you to continue playing the mod in case of a breaking Among Us update
|
||||
- GUI to select which build to play
|
||||
- Auto-detection of Among Us install directory
|
||||
- Auto-launch of BetterCrewLink if installed
|
||||
|
||||
# Contributing
|
||||
|
||||
|
||||
@@ -128,6 +128,11 @@ impl Widget<AppData> for AmongUsLauncherWidget {
|
||||
self.build_widget(data);
|
||||
ctx.children_changed();
|
||||
}
|
||||
Event::KeyDown(evt) => {
|
||||
if evt.code == druid::Code::F5 {
|
||||
ctx.submit_command(ATTEMPT_INSTALL);
|
||||
}
|
||||
}
|
||||
_ => {
|
||||
self.root.event(ctx, event, data, env);
|
||||
}
|
||||
@@ -141,7 +146,7 @@ impl Widget<AppData> for AmongUsLauncherWidget {
|
||||
self.root.update(ctx, data, env);
|
||||
if old_data.among_us_path.is_empty() && !data.among_us_path.is_empty() {
|
||||
ctx.submit_command(ATTEMPT_INSTALL);
|
||||
println!("Detect Stuff");
|
||||
// println!("Detect Stuff");
|
||||
}
|
||||
// println!("Update!");
|
||||
self.build_widget(data);
|
||||
|
||||
@@ -121,10 +121,13 @@ impl AppDelegate<AppData> for Delegate {
|
||||
fn window_added(
|
||||
&mut self,
|
||||
_id: WindowId,
|
||||
_data: &mut AppData,
|
||||
data: &mut AppData,
|
||||
_env: &Env,
|
||||
_ctx: &mut DelegateCtx,
|
||||
ctx: &mut DelegateCtx,
|
||||
) {
|
||||
if !data.among_us_path.is_empty() {
|
||||
ctx.submit_command(ATTEMPT_INSTALL);
|
||||
}
|
||||
}
|
||||
fn command(
|
||||
&mut self,
|
||||
@@ -228,6 +231,7 @@ impl AppDelegate<AppData> for Delegate {
|
||||
);
|
||||
}
|
||||
}
|
||||
data.initialized = !data.initialized;
|
||||
|
||||
return Handled::Yes;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user