TABLE OF CONTENTS


KMissions/KMissions.Missions_Sort_Orders [ Types ]

[ Top ] [ KMissions ] [ Types ]

FUNCTION

 Sorting orders for the accepted missions list

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.4 - Added
 8.4 - Added sorting by coordinates

KMissions/KMissions.Default_Missions_Sort_Order [ Constants ]

[ Top ] [ KMissions ] [ Constants ]

FUNCTION

 Default sorting order for the known missions

SOURCE

   Default_Missions_Sort_Order: constant Missions_Sort_Orders := NONE;

HISTORY

 6.4 - Added

KMissions/KMissions.Missions_Indexes [ Variables ]

[ Top ] [ KMissions ] [ Variables ]

FUNCTION

 Indexes of the accepted missions

SOURCE

   Missions_Indexes: Positive_Container.Vector;

KMissions/KMissions.Missions_Sort_Order [ Variables ]

[ Top ] [ KMissions ] [ Variables ]

FUNCTION

 The current sorting order for accepted missions list

SOURCE

   Missions_Sort_Order: Missions_Sort_Orders := Default_Missions_Sort_Order;

HISTORY

 6.4 - Added

KMissions/KMissions.Missions_Table [ Variables ]

[ Top ] [ KMissions ] [ Variables ]

FUNCTION

 Table with info about the known Missions

SOURCE

   Missions_Table: Table_Widget (Amount => 6);

KMissions/KMissions.Show_Missions_Menu_Command [ Subprograms ]

[ Top ] [ KMissions ] [ Subprograms ]

FUNCTION

 Show the menu with available the selected mission options

SOURCE

   function Show_Missions_Menu_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

 ShowMissionsMenu missionindex
 MissionIndex is the index of the mission's menu to show

KMissions/KMissions.Show_Missions_Command [ Commands ]

[ Top ] [ KMissions ] [ Commands ]

FUNCTION

 Show the list of known missions to the player

SOURCE

   function Show_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.
 Argv        - Values of arguments passed to the command.

RESULT

 This function always return TCL_OK

COMMANDS

 ShowMissions ?startindex?
 Page parameter is a page number which will be show

KMissions/KMissions.Sort_Missions_Command [ Commands ]

[ Top ] [ KMissions ] [ Commands ]

FUNCTION

 Sort the accepted missions list

SOURCE

   function Sort_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

COMMANDS

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