TABLE OF CONTENTS
- 1. ShipyardUI/ShipyardUI.Sort_Modules_Command
- 2. ShipyardUI/ShipyardUI.Show_Shipyard_Tab_Command
- 3. ShipyardUI/ShipyardUI.Compare_Modules_Command
- 4. ShipyardUI/ShipyardUI.Show_Shipyard_Command
- 5. ShipyardUI/ShipyardUI.Show_Remove_Info_Command
- 6. ShipyardUI/ShipyardUI.Show_Install_Info_Command
- 7. ShipyardUI/ShipyardUI.Set_Module_Info
- 8. ShipyardUI/ShipyardUI.Manipulate_Module_Command
- 9. ShipyardUI/ShipyardUI.Get_Module_Index
- 10. ShipyardUI/ShipyardUI.Remove_Table
- 11. ShipyardUI/ShipyardUI.Remove_Indexes
- 12. ShipyardUI/ShipyardUI.Modules_Sort_Order
- 13. ShipyardUI/ShipyardUI.Module_Index
- 14. ShipyardUI/ShipyardUI.Install_Table
- 15. ShipyardUI/ShipyardUI.Install_Indexes
- 16. ShipyardUI/ShipyardUI.Default_Modules_Sort_Order
- 17. ShipyardUI/ShipyardUI.Modules_Sort_Orders
ShipyardUI/ShipyardUI.Modules_Sort_Orders [ Types ]
[ Top ] [ ShipyardUI ] [ Types ]
FUNCTION
Sorting orders for the ship modules list
SOURCE
type Modules_Sort_Orders is (NAMEASC, NAMEDESC, TYPEASC, TYPEDESC, SIZEASC, SIZEDESC, MATERIALASC, MATERIALDESC, PRICEASC, PRICEDESC, NONE) with Default_Value => NONE;
OPTIONS
NAMEASC - Sort modules by name ascending NAMEDESC - Sort modules by name descending TYPEASC - Sort modules by type ascending TYPEDESC - Sort modules by type descending SIZEASC - Sort modules by size ascending SIZEDESC - Sort modules by size descending MATERIALASC - Sort modules by material ascending MATERIALDESC - Sort modules by material descending PRICEASC - Sort modules by price ascending PRICEDESC - Sort modules by price descending NONE - No sorting modules (default)
HISTORY
6.4 - Added
ShipyardUI/ShipyardUI.Default_Modules_Sort_Order [ Constants ]
[ Top ] [ ShipyardUI ] [ Constants ]
FUNCTION
Default sorting order for the player's ship's modules
SOURCE
Default_Modules_Sort_Order: constant Modules_Sort_Orders := NONE;
HISTORY
6.4 - Added
ShipyardUI/ShipyardUI.Install_Indexes [ Variables ]
[ Top ] [ ShipyardUI ] [ Variables ]
FUNCTION
Indexes of the available modules to install
SOURCE
Install_Indexes: Positive_Container.Vector;
ShipyardUI/ShipyardUI.Install_Table [ Variables ]
[ Top ] [ ShipyardUI ] [ Variables ]
FUNCTION
Table with info about the available modules
SOURCE
Install_Table: Table_Widget (Amount => 5);
ShipyardUI/ShipyardUI.Module_Index [ Variables ]
[ Top ] [ ShipyardUI ] [ Variables ]
SOURCE
Module_Index: Positive;
ShipyardUI/ShipyardUI.Modules_Sort_Order [ Variables ]
[ Top ] [ ShipyardUI ] [ Variables ]
FUNCTION
The current sorting order for modules list
SOURCE
Modules_Sort_Order: Modules_Sort_Orders := Default_Modules_Sort_Order;
HISTORY
6.4 - Added
ShipyardUI/ShipyardUI.Remove_Indexes [ Variables ]
[ Top ] [ ShipyardUI ] [ Variables ]
FUNCTION
Indexes of the modules in the player's ship (to remove)
SOURCE
Remove_Indexes: Positive_Container.Vector;
ShipyardUI/ShipyardUI.Remove_Table [ Variables ]
[ Top ] [ ShipyardUI ] [ Variables ]
FUNCTION
Table with info about the installed modules
SOURCE
Remove_Table: Table_Widget (Amount => 5);
ShipyardUI/ShipyardUI.Get_Module_Index [ Subprograms ]
[ Top ] [ ShipyardUI ] [ Subprograms ]
FUNCTION
Get the index of the currently selected module
SOURCE
function Get_Module_Index return Positive is
RESULT
The index of the currently selected module
ShipyardUI/ShipyardUI.Manipulate_Module_Command [ Subprograms ]
[ Top ] [ ShipyardUI ] [ Subprograms ]
FUNCTION
Install or remove the selected module
SOURCE
function Manipulate_Module_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
ShipyardUI/ShipyardUI.Set_Module_Info [ Subprograms ]
[ Top ] [ ShipyardUI ] [ Subprograms ]
FUNCTION
Show information about selected module
SOURCE
procedure Set_Module_Info(Installing: Boolean; Row: Positive) is
PARAMETERS
Installing - If true, player looking at installing modules list Row - The current row in the dialog
ShipyardUI/ShipyardUI.Show_Install_Info_Command [ Subprograms ]
[ Top ] [ ShipyardUI ] [ Subprograms ]
FUNCTION
Show information about the selected module to install
SOURCE
function Show_Install_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. Argv - Values of arguments passed to the command. Unused
ShipyardUI/ShipyardUI.Show_Remove_Info_Command [ Subprograms ]
[ Top ] [ ShipyardUI ] [ Subprograms ]
FUNCTION
Show information about the selected module to remove
SOURCE
function Show_Remove_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.
ShipyardUI/ShipyardUI.Show_Shipyard_Command [ Subprograms ]
[ Top ] [ ShipyardUI ] [ Subprograms ]
FUNCTION
Show the selected base shipyard
SOURCE
function Show_Shipyard_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. COMMAND ShowShipyard ?moduletype? ?modulename? Show the base shipyard and load all available and installed modules lists. Moduletype is the type of modules to show in available modules, modulename is the name of the module to search in available modules.
ShipyardUI/ShipyardUI.Compare_Modules_Command [ Commands ]
[ Top ] [ ShipyardUI ] [ Commands ]
FUNCTION
Show the comparison between the selected modules in install info
SOURCE
function Compare_Modules_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. Unused
RESULT
This function always return TCL_OK
COMMANDS
CompareModules
ShipyardUI/ShipyardUI.Show_Shipyard_Tab_Command [ Commands ]
[ Top ] [ ShipyardUI ] [ Commands ]
FUNCTION
Show the install or remove modules options in shipyard
SOURCE
function Show_Shipyard_Tab_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. Argv - Values of arguments passed to the command. Unused
RESULT
This function always return TCL_OK
COMMANDS
ShowShipyardTab
ShipyardUI/ShipyardUI.Sort_Modules_Command [ Commands ]
[ Top ] [ ShipyardUI ] [ Commands ]
FUNCTION
Sort the ship modules lists
SOURCE
function Sort_Modules_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
SortShipModules action moduletype page x Action is a type of action, can be install or remove, moduletype is a type of modules to show, page is the number of currently showed page of list and x is X axis coordinate where the player clicked the mouse button