Adds two buttons to the contracts menu.
With the first button, contracts/missions can be created by type. This opens a popup in the missions window where you select the mission/contract type and set a quantity of 1 to 20 contracts to be created. Afterwards, exactly those contracts of that type are generated.
Fields whose current state already matches the selected contract type are preferred. Only when no suitable fields are available anymore are fields prepared accordingly so that they become suitable for the respective contract.
This also works with mission types from other mods, provided they are registered in the MissionManager.
Additionally, there is a second button with which an existing contract can be removed.
Creating a feature to add two buttons to the contracts menu, as per your description, involves several key components. Here's a breakdown of the functionality based on your requirements:
**Button 1: Create Contracts/Missions by Type**
1. Implement a button in the contracts menu to trigger the creation of contracts/missions by type.
2. When clicked, open a popup window in the missions section that allows the user to select the mission/contract type and set a quantity (1 to 20) of contracts to be generated.
3. Utilize a mechanism to prefer fields whose current state matches the selected contract type. Only if no suitable fields are available should other fields be prepared to meet the specific contract requirements.
4. Implement logic to generate the selected number of contracts of the specified type, optimizing for suitable fields first and adjust existing fields when needed.
5. Ensure that this functionality can work with mission types from other mods if they are registered in the MissionManager.
**Button 2: Remove Existing Contract**
1. Develop a second button in the contracts menu to facilitate the removal of an existing contract when clicked.
2. Add a feature where the user can select a contract to delete from the list of existing contracts.
By following these outlined steps, you can effectively enhance the contracts menu with the ability to create contracts/missions by type and remove existing contracts as needed. The implementation would provide a user-friendly experience and streamline contract management within the game.
FS25Mods.com - Download Farming Simulator 25 Mods for FREE
Our platform is sharing all free fs25 mods created by passionate FS25 players. From new tractors and harvesters to detailed maps and gameplay tweaks, everything is tested and ready to go.
Finding and installing mods is super easy. Just browse by category, pick what you like, and download fast for free. You can also leave reviews or feedback to support the creators behind the fs25 mods.
Whether you’re new to the game or you’ve been modding for years, FS25Mods.com is a great place to discover latest game mods for FS25 game.