Commit Graph

260 Commits

Author SHA1 Message Date
Raffson
31630b4d42 Allow squadron switch in flight's edit-dialog 2024-06-09 00:52:09 +02:00
MetalStormGhost
dc52457d80 Off-map spawns are now ignored in on_pilot_selected(). 2024-06-08 14:01:17 +02:00
Raffson
8562c48753 Account for 'is_ownfor' in package dialog 2024-05-25 23:42:58 +02:00
Raffson
0ab07c3878 Offset by 1 for UI 2024-05-25 23:42:58 +02:00
Raffson
f203a5cf7a Babysteps towards full OPFOR control 2024-05-11 23:23:10 +02:00
Raffson
b61f625828 Fix bug in earlier bugfix -_- 2024-05-11 19:00:56 +02:00
Raffson
d3e1a1df92 Fix bug w.r.t. OffMapSpawn CPs starting cold 2024-05-11 17:26:36 +02:00
MetalStormGhost
a27663e4b6 Default start type for player flights (#303)
* Implemented a new option in settings: Default start type for Player flights.

* Updated changelog.

* Removed unnecessary country parameter.

* Restore missing parameter

* on_pilot_changed should emit pilots_changed in its finally block, otherwise the start-type isn't updated if you have a single client pilot which you switch to a non-client pilot.

Also implemented other changes suggested by @Raffson, such as a more streamlined start_type QComboBox handling and moving the pilots_changed Signal to FlightRosterEditor.

* Decouple Signal from QFlighStartType

---------

Co-authored-by: Raffson <Raffson@users.noreply.github.com>
2024-05-09 10:19:30 +00:00
Raffson
ab32c44b9d Ability to configure liveries on flight/flight-member level 2024-03-22 20:41:28 +01:00
Raffson
eb6afbdf02 Ignore range when manually using auto-create 2024-03-09 22:31:47 +01:00
Raffson
9303e1cb9e Configurable cruise & combat altitude + randomized offsets (phase 1) 2024-03-04 00:01:29 +01:00
Raffson
7158a5e60d Don't degrade flight-plan when adding waypoints 2024-03-03 13:43:33 +01:00
Raffson
e36e213b76 Selectable aircraft type in AutoCreateDialog
Resolves #165
2024-02-25 00:38:17 +01:00
Raffson
dad5e7c146 Fix TOT-offset issues 2024-01-28 17:39:46 +01:00
Raffson
ade81f4548 Ability to set callsigns 2023-11-18 23:06:56 +01:00
Raffson
84c9098dba Add missing colon in departure time 2023-10-15 12:27:42 +02:00
Raffson
3c921198af PySide6 steamlining 2023-10-14 18:42:48 +02:00
Raffson
7adbe71475 Fix payload saver 2023-10-14 15:40:29 +02:00
Raffson
c4be00d11b Migrate to PySide6 2023-10-08 00:53:51 +02:00
Raffson
93b83f2bc8 Streamlining 2023-10-08 00:37:39 +02:00
Dan Albert
59673e7911 Convert TOTs to datetime.
https://github.com/dcs-liberation/dcs_liberation/issues/1680
2023-10-07 21:09:25 +02:00
Dan Albert
97ee6ba19f Force dumping debug info on recreate.
We need a way to debug successful solvers that's still targeting to a
specific flight. This will do for now.
2023-10-07 17:07:57 +02:00
Raffson
60172d0e52 Streamlining 2023-10-07 15:23:29 +02:00
Dan Albert
47add7848f Always re-enable loadout UI for member 0. 2023-10-07 14:42:51 +02:00
Dan Albert
0b7acbc94e Fix synchronization of loadouts on change.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/3111.
2023-10-07 14:42:51 +02:00
Dan Albert
c11b4149a0 Fix negative starts when changing TOT offsets. 2023-10-07 14:31:08 +02:00
Dan Albert
091d523516 Fix altering negative TOT offsets.
https://github.com/dcs-liberation/dcs_liberation/issues/3107
2023-10-07 14:31:04 +02:00
Dan Albert
62e43f1169 Clarify that the assigned code is for the TGP. 2023-10-07 14:13:52 +02:00
Dan Albert
dc22e0a577 Hide properties that have better controls.
The weapon laser codes can be set more easily from the weapon laser code
combo box. Setting the properties explicitly here will just cause
conflicts and annoying UI bugs. Hide those properties from the UI.
2023-10-07 14:13:52 +02:00
Dan Albert
51f578b9e3 Add UI for selecting weapon laser codes.
This makes it possible to have the right laser code set for hot start
aircraft that (typically) do not allow changing laser codes when the
engine is on.
2023-10-07 14:13:51 +02:00
Dan Albert
2a8f34ea25 Do not draw empty property rows. 2023-10-07 14:13:51 +02:00
Dan Albert
17e539e524 Add UI for acquiring/releasing TGP laser codes. 2023-10-07 14:06:13 +02:00
Dan Albert
177f357492 Pre-allocate laser codes for FLOTs and flights. 2023-10-07 14:06:12 +02:00
MetalStormGhost
54777a9045 Helicopter waypoint altitude configurable (#207)
* Helicopter waypoint altitude configurable

Added a new option in Settings: Helicopter waypoint altitude (feet AGL).
It sets the waypoint altitude for helicopters in feet AGL. In campaigns in more mountainous areas, you might want to increase this setting to avoid the AI flying into the terrain.

* black?

* Distinguish cruise/combat altitudes for helicopters

Also includes a refactor for WaypointBuilder so it doesn't need a coalition. It can already reference the coalition from the flight.

* Update changelog.md

---------

Co-authored-by: Raffson <Raffson@users.noreply.github.com>
2023-10-02 18:54:21 +02:00
Raffson
226a171550 Fix missing argument exception 2023-10-02 17:50:55 +02:00
Raffson
d4eefd0b55 Streamlining 2023-10-01 21:56:30 +02:00
Dan Albert
485229b92f Allow per pilot loadouts and properties.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/3092.
2023-10-01 20:10:16 +02:00
Dan Albert
bce6a170b8 Improve UI for flight properties.
Use the new data from pydcs to improve the properties UI:

* Use human readable names
* Use appropriate control types
* Limit min and max values as appropriate for each property
* Show labels

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/3090.
2023-10-01 19:28:52 +02:00
Dan Albert
f89ac52bf3 Clean up remaining Flight.from_cp users.
The preferred API for this has been `Flight.departure` for a while.
2023-10-01 19:26:20 +02:00
Raffson
0cb3702eb9 Fix exception after new payload file was saved
When a new payload file would be saved, the subsequent flight would always throw an exception (until Retribution would be restarted) because the payload_cache wasn't updated until now.
2023-09-09 12:03:47 +02:00
Raffson
66d741d0b3 Allow user to add navigation waypoints where possible 2023-08-27 21:11:10 +02:00
M Chimiste
16b7ff2bb4 Create payloads folder in ME folder if needed (#200)
Added a check for the existence of a payloads folder.  Also made the _save_payloads lookup and path generation the same as _backup_payloads method to have consistency.
2023-08-27 19:10:00 +02:00
Raffson
f5cb293e44 Allow editing pretty_name for waypoints 2023-08-26 19:19:54 +02:00
Raffson
da75f41b01 Refactor payloads folder logic 2023-07-22 23:26:32 +02:00
Raffson
63e65744f1 Formatting -_- 2023-07-22 21:34:52 +02:00
Raffson
b8cce988f8 Fix wrong serialization when saving payload in new file 2023-07-22 21:33:45 +02:00
Raffson
85bbda4234 Notify user when save/backup was successful 2023-07-22 20:35:26 +02:00
Raffson
0e5df2fd21 Get rid of all pydcs' PayloadDirectories usages 2023-07-22 20:01:00 +02:00
Raffson
0027c64e57 Add & Select newly saved payload to selector 2023-07-22 00:03:22 +02:00
Raffson
493e69eb40 Use base_path instead 2023-07-21 22:51:13 +02:00