<commit_before>#include "database\dialogs.hpp"
#include "dialogs\recruitUnit\dialogs.hpp"
#include "dialogs\recruitSquad\dialogs.hpp"
#include "dialogs\manageGarrisons\dialogs.hpp"
#include "dialogs\manageMissions\dialogs.hpp"
#include "dialogs\manageLocations\dialogs.hpp"
#include "dialogs\manageHQ\dialogs.hpp"
#include "dialogs\manageNATO\dialogs.hpp"
#include "dialogs\buyVehicle\dialogs.hpp"

class build_menu
{
	idd=-1;
	movingenable=false;

	class controls
	{
AS_DIALOG(3,"Building Options", "closeDialog 0; if (player == AS_commander) then {createDialog ""radio_comm_commander""} else {createDialog ""radio_comm_player""};");

BTN_M(1,-1,"Manage Locations", "", "closeDialog 0; [] spawn AS_fnc_UI_manageLocations_menu;");
BTN_M(2,-1,"Build Minefield", "", "closeDialog 0; createDialog ""AS_createMinefield"";");
BTN_M(3, -1, "HQ Fortifications", "", "closeDialog 0; nul= createDialog ""HQ_fort_dialog"";");
	};
};

class squad_manager
{
	idd=-1;
	movingenable=false;

	class controls
	{
AS_DIALOG(2,"HC Squad Options", "closeDialog 0; createDialog ""radio_comm_commander"";");

BTN_L(1,-1, "Squad Add Vehicle", "", "closeDialog 0; [] spawn AS_fnc_addSquadVehicle;");
BTN_L(2,-1, "Squad Vehicle Stats", "Hints the status of the vehicle of the selected HC squad", "call AS_fnc_UI_squadVehicleStatus;");

BTN_R(1,-1, "Mount / Dismount", "Makes an HC squad board/dismount its vehicle", "call AS_fnc_UI_squadVehicleDismount");
BTN_R(2,-1, "Static Autotarget", "", "closeDialog 0; [] execVM ""AI\staticAutoT.sqf"";");

	};
};

class veh_query
{
	idd=100;
	movingenable=false;

	class controls
	{
AS_DIALOG(1,"Add Vehicle to Squad?", "closeDialog 0; vehQuery = nil; nul= [] execVM ""Dialogs\squad_recruit.sqf"";");

BTN_L(1,104, "YES", "", "closeDialog 0; vehQuery = true");
BTN_R(1,105, "NO", "", "closeDialog 0; vehQuery = nil");

	};
};
class player_money
{
	idd=-1;
	movingenable=false;

	class controls
	{
AS_DIALOG(1,"Donate money", "closeDialog 0; if (player == AS_commander) then {createDialog ""radio_comm_commander""} else {createDialog ""radio_comm_player""};");

BTN_L(1,-1, "Donate 100 € to player in front of you", "", "true call AS_fnc_UI_donateMoney;");
BTN_R(1,-1, "Donate 100 € to FIA", "", "false call AS_fnc_UI_donateMoney;");

	};
};

class vehicle_manager
{
	idd=-1;
	movingenable=false;

	class controls
	{
AS_DIALOG(2,"Vehicle Manager", "closeDialog 0; if (player == AS_commander) then {createDialog ""radio_comm_commander""} else {createDialog ""radio_comm_player""};");

BTN_L(1,-1, "Garage\Sell Vehicle", "", "closeDialog 0; nul = createDialog ""garage_sell"";");
BTN_R(1,-1, "Vehicles and Squads", "", "closeDialog 0; if (player == AS_commander) then {nul = createDialog ""squad_manager""} else {hint ""Only Player Commander has access to this function""};");

BTN_M(2, -1, "Unlock Vehicle", "", "closeDialog 0; if !(isMultiplayer) then {hint ""It's unlocked already.""} else {if (player != AS_commander) then {nul = [false] call AS_fnc_unlockVehicle} else {nul = [true] call AS_fnc_unlockVehicle};};");

	};
};

class garage_sell
{
	idd=-1;
	movingenable=false;

	class controls
	{
AS_DIALOG(1,"Sell or Garage Vehicle", "closeDialog 0; createDialog ""vehicle_manager"";");

BTN_L(1,-1, "Garage Vehicle", "", "closeDialog 0; if (player != AS_commander) then {nul = [false] call AS_fnc_putVehicleInGarage} else {if (isMultiplayer) then {createDialog ""garage_check""} else {nul = [true] call AS_fnc_putVehicleInGarage}};");
BTN_R(1,-1, "Sell Vehicle", "", "closeDialog 0; if (player == AS_commander) then {nul = [] call AS_fnc_sellVehicle} else {hint ""Only the Commander can sell vehicles""};");

	};
};
class garage_check
{
	idd=-1;
	movingenable=false;

	class controls
	{
AS_DIALOG(1,"Personal or FIA Garage?", "closeDialog 0; createDialog ""garage_sell"";");

BTN_L(1,-1, "Personal Garage", "", "closeDialog 0; nul = [false] call AS_fnc_putVehicleInGarage;");
BTN_R(1,-1, "FIA Garage", "", "closeDialog 0; nul = [true] call AS_fnc_putVehicleInGarage;");

	};
};
class carpet_bombing
{
	idd=-1;
	movingenable=false;

	class controls
	{
AS_DIALOG(2,"Carpet Bombing Strike","closeDialog 0; nul = createDialog ""NATO_Missions"";");

BTN_L(1,-1, "HE Bombs", "Cost: 10 points", "closeDialog 0; ""HE"" call AS_fnc_UI_natoAirstrike;");
BTN_R(1,-1, "Carpet Bombing", "Cost: 10 points", "closeDialog 0; ""CARPET"" call AS_fnc_UI_natoAirstrike;");

BTN_M(2, -1, "NAPALM Bomb", "Cost: 10 points", "closeDialog 0; ""NAPALM"" call AS_fnc_UI_natoAirstrike;");

	};
};

class AI_management
{
	idd=-1;
	movingenable=false;

	class controls
	{
AS_DIALOG(2,"AI Management","closeDialog 0; if (player == AS_commander) then {createDialog ""radio_comm_commander""} else {createDialog ""radio_comm_player""};");

BTN_L(1,-1, "Control selected AI", "", "[] spawn AS_fnc_UI_controlUnit;");
BTN_R(1,-1, "Auto Rearm", "", "closeDialog 0; if (count groupselectedUnits player == 0) then {nul = (units group player) execVM ""AI\rearmCall.sqf""} else {nul = (groupselectedUnits player) execVM ""AI\rearmCall.sqf""};");
BTN_M(2,-1, "Dismiss Units/Squads", "Dismisses selected units or HC squads", "closeDialog 0; [] spawn AS_fnc_dismissSelected;");

	};
};

class rounds_number
{
	idd=-1;
	movingenable=false;

	class controls
	{
AS_DIALOG(4,"Select No. Rounds to be fired",A_CLOSE);

BTN_L(1,-1, "1", "", "closeDialog 0; rondas = 1;");
BTN_L(2,-1, "2", "", "closeDialog 0; rondas = 2;");
BTN_L(3,-1, "3", "", "closeDialog 0; rondas = 3;");
BTN_L(4,-1, "4", "", "closeDialog 0; rondas = 4;");

BTN_R(1,-1, "5", "", "closeDialog 0; rondas = 5;");<commit_msg>Fixed #57 -- Dismiss button now working<commit_after>#include "database\dialogs.hpp"
#include "dialogs\recruitUnit\dialogs.hpp"
#include "dialogs\recruitSquad\dialogs.hpp"
#include "dialogs\manageGarrisons\dialogs.hpp"
#include "dialogs\manageMissions\dialogs.hpp"
#include "dialogs\manageLocations\dialogs.hpp"
#include "dialogs\manageHQ\dialogs.hpp"
#include "dialogs\manageNATO\dialogs.hpp"
#include "dialogs\buyVehicle\dialogs.hpp"

class build_menu
{
	idd=-1;
	movingenable=false;

	class controls
	{
AS_DIALOG(3,"Building Options", "closeDialog 0; if (player == AS_commander) then {createDialog ""radio_comm_commander""} else {createDialog ""radio_comm_player""};");

BTN_M(1,-1,"Manage Locations", "", "closeDialog 0; [] spawn AS_fnc_UI_manageLocations_menu;");
BTN_M(2,-1,"Build Minefield", "", "closeDialog 0; createDialog ""AS_createMinefield"";");
BTN_M(3, -1, "HQ Fortifications", "", "closeDialog 0; nul= createDialog ""HQ_fort_dialog"";");
	};
};

class squad_manager
{
	idd=-1;
	movingenable=false;

	class controls
	{
AS_DIALOG(2,"HC Squad Options", "closeDialog 0; createDialog ""radio_comm_commander"";");

BTN_L(1,-1, "Squad Add Vehicle", "", "closeDialog 0; [] spawn AS_fnc_addSquadVehicle;");
BTN_L(2,-1, "Squad Vehicle Stats", "Hints the status of the vehicle of the selected HC squad", "call AS_fnc_UI_squadVehicleStatus;");

BTN_R(1,-1, "Mount / Dismount", "Makes an HC squad board/dismount its vehicle", "call AS_fnc_UI_squadVehicleDismount");
BTN_R(2,-1, "Static Autotarget", "", "closeDialog 0; [] execVM ""AI\staticAutoT.sqf"";");

	};
};

class veh_query
{
	idd=100;
	movingenable=false;

	class controls
	{
AS_DIALOG(1,"Add Vehicle to Squad?", "closeDialog 0; vehQuery = nil; nul= [] execVM ""Dialogs\squad_recruit.sqf"";");

BTN_L(1,104, "YES", "", "closeDialog 0; vehQuery = true");
BTN_R(1,105, "NO", "", "closeDialog 0; vehQuery = nil");

	};
};
class player_money
{
	idd=-1;
	movingenable=false;

	class controls
	{
AS_DIALOG(1,"Donate money", "closeDialog 0; if (player == AS_commander) then {createDialog ""radio_comm_commander""} else {createDialog ""radio_comm_player""};");

BTN_L(1,-1, "Donate 100 € to player in front of you", "", "true call AS_fnc_UI_donateMoney;");
BTN_R(1,-1, "Donate 100 € to FIA", "", "false call AS_fnc_UI_donateMoney;");

	};
};

class vehicle_manager
{
	idd=-1;
	movingenable=false;

	class controls
	{
AS_DIALOG(2,"Vehicle Manager", "closeDialog 0; if (player == AS_commander) then {createDialog ""radio_comm_commander""} else {createDialog ""radio_comm_player""};");

BTN_L(1,-1, "Garage\Sell Vehicle", "", "closeDialog 0; nul = createDialog ""garage_sell"";");
BTN_R(1,-1, "Vehicles and Squads", "", "closeDialog 0; if (player == AS_commander) then {nul = createDialog ""squad_manager""} else {hint ""Only Player Commander has access to this function""};");

BTN_M(2, -1, "Unlock Vehicle", "", "closeDialog 0; if !(isMultiplayer) then {hint ""It's unlocked already.""} else {if (player != AS_commander) then {nul = [false] call AS_fnc_unlockVehicle} else {nul = [true] call AS_fnc_unlockVehicle};};");

	};
};

class garage_sell
{
	idd=-1;
	movingenable=false;

	class controls
	{
AS_DIALOG(1,"Sell or Garage Vehicle", "closeDialog 0; createDialog ""vehicle_manager"";");

BTN_L(1,-1, "Garage Vehicle", "", "closeDialog 0; if (player != AS_commander) then {nul = [false] call AS_fnc_putVehicleInGarage} else {if (isMultiplayer) then {createDialog ""garage_check""} else {nul = [true] call AS_fnc_putVehicleInGarage}};");
BTN_R(1,-1, "Sell Vehicle", "", "closeDialog 0; if (player == AS_commander) then {nul = [] call AS_fnc_sellVehicle} else {hint ""Only the Commander can sell vehicles""};");

	};
};
class garage_check
{
	idd=-1;
	movingenable=false;

	class controls
	{
AS_DIALOG(1,"Personal or FIA Garage?", "closeDialog 0; createDialog ""garage_sell"";");

BTN_L(1,-1, "Personal Garage", "", "closeDialog 0; nul = [false] call AS_fnc_putVehicleInGarage;");
BTN_R(1,-1, "FIA Garage", "", "closeDialog 0; nul = [true] call AS_fnc_putVehicleInGarage;");

	};
};
class carpet_bombing
{
	idd=-1;
	movingenable=false;

	class controls
	{
AS_DIALOG(2,"Carpet Bombing Strike","closeDialog 0; nul = createDialog ""NATO_Missions"";");

BTN_L(1,-1, "HE Bombs", "Cost: 10 points", "closeDialog 0; ""HE"" call AS_fnc_UI_natoAirstrike;");
BTN_R(1,-1, "Carpet Bombing", "Cost: 10 points", "closeDialog 0; ""CARPET"" call AS_fnc_UI_natoAirstrike;");

BTN_M(2, -1, "NAPALM Bomb", "Cost: 10 points", "closeDialog 0; ""NAPALM"" call AS_fnc_UI_natoAirstrike;");

	};
};

class AI_management
{
	idd=-1;
	movingenable=false;

	class controls
	{
AS_DIALOG(2,"AI Management","closeDialog 0; if (player == AS_commander) then {createDialog ""radio_comm_commander""} else {createDialog ""radio_comm_player""};");

BTN_L(1,-1, "Control selected AI", "", "[] spawn AS_fnc_UI_controlUnit;");
BTN_R(1,-1, "Auto Rearm", "", "closeDialog 0; if (count groupselectedUnits player == 0) then {nul = (units group player) execVM ""AI\rearmCall.sqf""} else {nul = (groupselectedUnits player) execVM ""AI\rearmCall.sqf""};");
BTN_M(2,-1, "Dismiss Units/Squads", "Dismisses selected units or HC squads", "closeDialog 0; [] spawn AS_fnc_UI_dismissSelected;");

	};
};

class rounds_number
{
	idd=-1;
	movingenable=false;

	class controls
	{
AS_DIALOG(4,"Select No. Rounds to be fired",A_CLOSE);

BTN_L(1,-1, "1", "", "closeDialog 0; rondas = 1;");
BTN_L(2,-1, "2", "", "closeDialog 0; rondas = 2;");
BTN_L(3,-1, "3", "", "closeDialog 0; rondas = 3;");
BTN_L(4,-1, "4", "", "closeDialog 0; rondas = 4;");

BTN_R(1,-1, "5", "", "closeDialog 0; rondas = 5;");
{'fraction_non_alphanumeric': 0.1778953978648964, 'fraction_numerical': 0.025298286534493584, 'mean_word_length': 6.2720156555773, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2718176', 'n_tokens_mistral': 4540, 'n_tokens_neox': 4287, 'n_words': 1006}