TABLE OF CONTENTS
- 1. KBases/KBases.Sort_Bases_Command
- 2. KBases/KBases.Show_Bases_Command
- 3. KBases/KBases.Show_Base_Info_Command
- 4. KBases/KBases.Get_Reputation_Text
- 5. KBases/KBases.Modules_Indexes
- 6. KBases/KBases.Bases_Table
- 7. KBases/KBases.Bases_Sort_Order
- 8. KBases/KBases.Default_Bases_Sort_Order
- 9. KBases/KBases.Bases_Sort_Orders
KBases/KBases.Bases_Sort_Orders [ Types ]
FUNCTION
Sorting orders for the known bases list
SOURCE
type Bases_Sort_Orders is (NAMEASC, NAMEDESC, DISTANCEASC, DISTANCEDESC, POPULATIONASC, POPULATIONDESC, SIZEASC, SIZEDESC, OWNERASC, OWNERDESC, TYPEASC, TYPEDESC, REPUTATIONASC, REPUTATIONDESC, COORDASC, COORDDESC, NONE) with Default_Value => NONE;
OPTIONS
NAMEASC - Sort bases by name ascending NAMEDESC - Sort bases by name descending DISTANCEASC - Sort bases by distance ascending DISTANCEDESC - Sort bases by distance descending POPULATIONASC - Sort bases by population ascending POPULATIONDESC - Sort bases by population descending SIZEASC - Sort bases by size ascending SIZEDESC - Sort bases by size descending OWNERASC - Sort bases by owner ascending OWNERDESC - Sort bases by owner descending TYPEASC - Sort bases by type ascending TYPEDESC - Sort bases by type descending REPUTATIONASC - Sort bases by reputation ascending REPUTATIONDESC - Sort bases by reputation descending COORDASC - Sort bases by coordinates ascending COORDDESC - Sort bases by coordinates descending NONE - No sorting bases (default)
HISTORY
6.4 - Added 8.4 - Added sorting by coordinates
KBases/KBases.Default_Bases_Sort_Order [ Constants ]
[ Top ] [ KBases ] [ Constants ]
FUNCTION
Default sorting order for the list of known bases
SOURCE
Default_Bases_Sort_Order: constant Bases_Sort_Orders := NONE;
HISTORY
6.4 - Added
KBases/KBases.Bases_Sort_Order [ Variables ]
[ Top ] [ KBases ] [ Variables ]
FUNCTION
The current sorting order for known bases list
SOURCE
Bases_Sort_Order: Bases_Sort_Orders := Default_Bases_Sort_Order;
HISTORY
6.4 - Added
KBases/KBases.Bases_Table [ Variables ]
[ Top ] [ KBases ] [ Variables ]
FUNCTION
Table with info about the know bases
SOURCE
Bases_Table: Table_Widget (Amount => 8);
KBases/KBases.Modules_Indexes [ Variables ]
[ Top ] [ KBases ] [ Variables ]
FUNCTION
Indexes of the player ship modules
SOURCE
Bases_Indexes: Positive_Container.Vector;
KBases/KBases.Get_Reputation_Text [ Subprograms ]
[ Top ] [ KBases ] [ Subprograms ]
FUNCTION
Get the name of the reputation level in the selected base
SOURCE
function Get_Reputation_Text(Reputation_Level: Integer) return String is
PARAMETERS
Reputation_Level - The numerical level of reputation in a base
RESULT
The name of the reputation level in the selected base
KBases/KBases.Show_Base_Info_Command [ Commands ]
[ Top ] [ KBases ] [ Commands ]
FUNCTION
Show information about the selected base
SOURCE
function Show_Base_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
ShowBaseInfo baseindex BaseIndex is the index of the base to show
KBases/KBases.Show_Bases_Command [ Commands ]
[ Top ] [ KBases ] [ Commands ]
FUNCTION
Show the list of known bases to a player
SOURCE
function Show_Bases_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
ShowBases ?basename? ?page? Basename parameter is a string which will be looking for in the bases names, page parameter is a index of page from which starts showing bases.
KBases/KBases.Sort_Bases_Command [ Commands ]
[ Top ] [ KBases ] [ Commands ]
FUNCTION
Sort the list of known bases
SOURCE
function Sort_Bases_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
SortKnownBases x X is X axis coordinate where the player clicked the mouse button