TABLE OF CONTENTS


BUI/BUI.Base_Sort_Orders [ Types ]

[ Top ] [ BUI ] [ Types ]

FUNCTION

 Sorting orders for the crafting recipes/healing/repair in bases

SOURCE

   type Base_Sort_Orders is
     (NAMEASC, NAMEDESC, COSTASC, COSTDESC, TIMEASC, TIMEDESC, NONE) with
      Default_Value => NONE;

OPTIONS

 NAMEASC  - Sort items by name ascending
 NAMEDESC - Sort items by name descending
 COSTASC  - Sort items by cost ascending
 COSTDESC - Sort items by cost descending
 TIMEASC  - Sort items by time ascending
 TIMEDESC - Sort items by time descending
 NONE     - No sorting items (default)

HISTORY

 6.5 - Added

BUI/BUI.Default_Base_Sort_Order [ Constants ]

[ Top ] [ BUI ] [ Constants ]

FUNCTION

 Default sorting order for the items

SOURCE

   Default_Base_Sort_Order: constant Base_Sort_Orders := NONE;

HISTORY

 6.5 - Added

BUI/BUI.Base_Sort_Order [ Variables ]

[ Top ] [ BUI ] [ Variables ]

FUNCTION

 The current sorting order for items

SOURCE

   Base_Sort_Order: Base_Sort_Orders := Default_Base_Sort_Order;

HISTORY

 6.5 - Added

BUI/BUI.Base_Table [ Variables ]

[ Top ] [ BUI ] [ Variables ]

FUNCTION

 Table with info about available base actions

SOURCE

   Base_Table: Table_Widget (Amount => 3);

BUI/BUI.Items_Indexes [ Variables ]

[ Top ] [ BUI ] [ Variables ]

FUNCTION

 Indexes of the crafting recipes/wounded crew members/damaged ship modules

SOURCE

   Items_Indexes: UnboundedString_Container.Vector;

HISTORY

 6.5 - Added

BUI/BUI.Base_Action_Command [ Commands ]

[ Top ] [ BUI ] [ Commands ]

FUNCTION

 Execute the selected action

SOURCE

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

 BaseAction ActionType
 ActionType can be heal, repair, recipes

BUI/BUI.Search_Recipes_Command [ Commands ]

[ Top ] [ BUI ] [ Commands ]

FUNCTION

 Show only this recipes which contains the selected sequence

SOURCE

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

 SearchRecipes TextToSearch

BUI/BUI.Show_Base_Menu_Command [ Commands ]

[ Top ] [ BUI ] [ Commands ]

FUNCTION

 Show menu with options for the selected item

SOURCE

   function Show_Base_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.
 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

 ShowBaseMenu action index
 Action is name of action (heal,repair or recipe) and index is the index
 of the item

BUI/BUI.Show_Base_Ui_Command [ Commands ]

[ Top ] [ BUI ] [ Commands ]

FUNCTION

 Show the selected base action

SOURCE

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

 ShowBaseUI UIType search page
 UIType can be heal, repair, recipes. Search is a string which will be
 looked for in names of recipes (only). Page is the number of current
 page on the list to show

BUI/BUI.Sort_Modules_Command [ Commands ]

[ Top ] [ BUI ] [ Commands ]

FUNCTION

 Sort the list with recipes to buy/healing wounded/repair ship

SOURCE

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

HISTORY

 6.5 - Added

COMMANDS

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