TABLE OF CONTENTS


MUI3/MUI3.Missions_Sort_Orders [ Types ]

[ Top ] [ MUI3 ] [ Types ]

FUNCTION

 Sorting orders for the list of available missions

SOURCE

   type Missions_Sort_Orders is
     (TYPEASC, TYPEDESC, DISTANCEASC, DISTANCEDESC, DETAILSASC, DETAILSDESC,
      TIMEASC, TIMEDESC, REWARDASC, REWARDDESC, COORDASC, COORDDESC, NONE) with
      Default_Value => NONE;

OPTIONS

 TYPEASC      - Sort missions by type ascending
 TYPEDESC     - Sort missions by type descending
 DISTANCEASC  - Sort missions by distance ascending
 DISTANCEDESC - Sort missions by distance descending
 DETAILSASC   - Sort missions by details ascending
 DETAILSDESC  - Sort missions by details descending
 TIMEASC      - Sort missions by time ascending
 TIMEDESC     - Sort missions by time descending
 REWARDASC    - Sort missions by reward ascending
 REWARDDESC   - Sort missions by reward descending
 COORDASC     - Sort missions by coordinates ascending
 COORDDESC    - Sort missions by coordinates descending
 NONE         - No sorting missions (default)

HISTORY

 6.5 - Added
 8.4 - Added sorting by coordinates

MUI3/MUI3.Default_Missions_Sort_Order [ Constants ]

[ Top ] [ MUI3 ] [ Constants ]

FUNCTION

 Default sorting order for the list of available missions

SOURCE

   Default_Missions_Sort_Order: constant Missions_Sort_Orders := NONE;

HISTORY

 6.5 - Added

MUI3/MIU3.Base_Index [ Variables ]

[ Top ] [ MUI3 ] [ Variables ]

FUNCTION

 Index of the base in which available missions will be show

SOURCE

   Base_Index: Natural;

MUI3/MUI3.Missions_Indexes [ Variables ]

[ Top ] [ MUI3 ] [ Variables ]

FUNCTION

 Indexes of the available missions in base

SOURCE

   Missions_Indexes: Positive_Container.Vector;

HISTORY

 6.5 - Added

MUI3/MUI3.Missions_Sort_Order [ Variables ]

[ Top ] [ MUI3 ] [ Variables ]

FUNCTION

 The current sorting order for the list of available missions

SOURCE

   Missions_Sort_Order: Missions_Sort_Orders := Default_Missions_Sort_Order;

HISTORY

 6.5 - Added

MUI3/MUI3.Missions_Table [ Variables ]

[ Top ] [ MUI3 ] [ Variables ]

FUNCTION

 Table with info about the known Missions

SOURCE

   Missions_Table: Table_Widget (Amount => 6);

MUI3/MIU3.Show_Mission_Command [ Subprograms ]

[ Top ] [ MUI3 ] [ Subprograms ]

FUNCTION

 Show mission on map

SOURCE

   function Show_Mission_Command
     (Client_Data: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
      Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with
      Convention => C;

PARAMETERS

 Client_Data - Custom data send to the command.
 Interp      - Tcl interpreter in which command was executed.
 Argc        - Number of arguments passed to the command. Unused
 Argv        - Values of arguments passed to the command.

RESULT

 This function always return TCL_OK

COMMANDS

 ShowMission missionindex
 MissionIndex is the index of the mission to show on map

MUI3/MUI3.Count_Missions_Amount [ Subprograms ]

[ Top ] [ MUI3 ] [ Subprograms ]

FUNCTION

 Count the amount of missions which the player can get from the selected
 base

SOURCE

   function Count_Missions_Amount return Natural is

RESULT

 The amount of missions which the player can get from the base

MUI3/MUI3.Get_Base_Index [ Subprograms ]

[ Top ] [ MUI3 ] [ Subprograms ]

FUNCTION

 Get the base index

SOURCE

   function Get_Base_Index return Natural is

RESULT

 The current base index in the list of bases

MUI3/MUI3.Refresh_Missions_List [ Subprograms ]

[ Top ] [ MUI3 ] [ Subprograms ]

FUNCTION

 Refresh the list of available missions

SOURCE

   procedure Refresh_Missions_List
     (List: in out Mission_Container.Vector; Page: Positive := 1) is

PARAMETERS

 List - The list of available missions in the selected base
 Page - The current page of the list to show. Can be empty. Default value
        is 1.

MUI3/MIU3.Accept_Mission_Command [ Commands ]

[ Top ] [ MUI3 ] [ Commands ]

FUNCTION

 Accept the mission in a base

SOURCE

   function Accept_Mission_Command
     (Client_Data: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
      Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with
      Convention => C;

PARAMETERS

 Client_Data - Custom data send to the command. Unused
 Interp      - Tcl interpreter in which command was executed.
 Argc        - Number of arguments passed to the command. Unused
 Argv        - Values of arguments passed to the command.

RESULT

 This function always return TCL_OK

COMMANDS

 AcceptMission missionindex
 MissionIndex is the index of the mission to accept

MUI3/MIU3.Mission_More_Info_Command [ Commands ]

[ Top ] [ MUI3 ] [ Commands ]

FUNCTION

 Show more info about the selected mission

SOURCE

   function Mission_More_Info_Command
     (Client_Data: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
      Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with
      Convention => C;

PARAMETERS

 Client_Data - Custom data send to the command. Unused
 Interp      - Tcl interpreter in which command was executed. Unused
 Argc        - Number of arguments passed to the command. Unused
 Argv        - Values of arguments passed to the command.

RESULT

 This function always return TCL_OK

COMMANDS

 MissionMoreInfo missionindex
 MissionIndex is the index of the mission's info to show

MUI3/MIU3.Set_Mission_Command [ Commands ]

[ Top ] [ MUI3 ] [ Commands ]

FUNCTION

 Accept the mission in a base

SOURCE

   function Set_Mission_Command
     (Client_Data: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
      Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with
      Convention => C;

PARAMETERS

 Client_Data - Custom data send to the command. Unused
 Interp      - Tcl interpreter in which command was executed. Unused
 Argc        - Number of arguments passed to the command. Unused
 Argv        - Values of arguments passed to the command.

RESULT

 This function always return TCL_OK

COMMANDS

 SetMission missionindex
 MissionIndex is the index of the mission to accept

MUI3/MIU3.Show_Base_Missions_Command [ Commands ]

[ Top ] [ MUI3 ] [ Commands ]

FUNCTION

 Show the list of available missions in the base

SOURCE

   function Show_Base_Missions_Command
     (Client_Data: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
      Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with
      Convention => C;

PARAMETERS

 Client_Data - Custom data send to the command. Unused
 Interp      - Tcl interpreter in which command was executed.
 Argc        - Number of arguments passed to the command. Unused
 Argv        - Values of arguments passed to the command. Unused

RESULT

 This function always return TCL_OK

COMMANDS

 ShowBaseMissions ?page?
 Page is the number of page of the missions list to show. If not
 set then it is 1

MUI3/MIU3.Update_Mission_Reward_Command [ Commands ]

[ Top ] [ MUI3 ] [ Commands ]

FUNCTION

 Update the information about the selected mission reward

SOURCE

   function Update_Mission_Reward_Command
     (Client_Data: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
      Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with
      Convention => C;

PARAMETERS

 Client_Data - Custom data send to the command. Unused
 Interp      - Tcl interpreter in which command was executed.
 Argc        - Number of arguments passed to the command. Unused
 Argv        - Values of arguments passed to the command.

RESULT

 This function always return TCL_OK

COMMANDS

 UpdateMissionReward missionindex
 MissionIndex is the index of the mission to update info

MUI3/MUI3.Sort_Available_Missions_Command [ Commands ]

[ Top ] [ MUI3 ] [ Commands ]

FUNCTION

 Sort the list of available missions

SOURCE

   function Sort_Available_Missions_Command
     (Client_Data: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
      Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with
      Convention => C;

PARAMETERS

 Client_Data - Custom data send to the command. Unused
 Interp      - Tcl interpreter in which command was executed. Unused
 Argc        - Number of arguments passed to the command. Unused
 Argv        - Values of arguments passed to the command.

RESULT

 This function always return TCL_OK

HISTORY

 6.5 - Added

COMMANDS

 SortAvailableMissions x
 X is X axis coordinate where the player clicked the mouse button