Commit Graph

17 Commits

Author SHA1 Message Date
Christine Chen 43b97fe0ad Refactor PowerStatus (now called BatteryInfo) 2021-04-12 10:52:52 -04:00
Christine Chen 08311abc5e Remove setters, cache CreatePowerStatus() and use a dummy LocalPowerStatus class in test scene 2021-04-10 00:00:21 -04:00
Christine Chen 59d13b0dd3 Fixed indentation
sorry about the style fixes... I'm using JetBrains Rider from now on.
2021-04-08 21:53:42 -04:00
Christine Chen 493c095535 Fixed code style 2021-04-08 20:28:23 -04:00
Christine Chen 6bccb3aab6 Use DI to implement battery detection, add BatteryCutoff property
- Removed the Xamarin.Essentials package from osu.Game and added it to osu.iOS and osu.Android only.
- iOS and Android implementations use Xamarin.Essentials.Battery, while the Desktop implementation
only returns 100% battery for now.
- Added a BatteryCutoff property to PowerStatus so it can be different for each platform (default 20%, 25% on iOS)
2021-04-08 19:55:11 -04:00
Lucas A 371aecfca0 Fetch OsuGameActivity through DI instead. 2020-10-18 20:07:42 +02:00
Lucas A e823575751 Lock screen rotation while in gameplay. 2020-10-15 19:36:49 +02:00
Dan Balasescu c5358cbb6b
Remove blank line 2020-06-16 21:01:10 +09:00
Dean Herbert 115ea244be Add note about substring usage 2020-06-16 20:20:46 +09:00
Dean Herbert 3f1b9edabe Fix regression in android build parsing behaviour 2020-06-16 20:19:56 +09:00
Dean Herbert 8b5de7403f Fix android usage of obsoleted VersionCode 2020-05-08 15:12:29 +09:00
Dean Herbert 6477a7b73e Centralise creation of UpdateManagers 2020-03-05 13:34:04 +09:00
Dean Herbert 07ec163daa Fix version fallback logic 2019-09-24 18:12:04 +09:00
Dean Herbert c6fe8587e3 Read build from VersionCode 2019-09-24 17:45:45 +09:00
tangalbert919 c0471019ff Very minor changes 2019-03-17 09:39:07 -05:00
tangalbert919 660be6a2a4 Remove ability to import from opsu!
This has been struck down by @ppy
2018-12-20 09:11:20 -06:00
tangalbert919 214908aaa0 Add opsu migration, fix font not rendering 2018-12-14 09:27:02 -06:00