TABLE OF CONTENTS


TUI/TUI.Items_Sort_Orders [ Types ]

[ Top ] [ TUI ] [ Types ]

FUNCTION

 Sorting orders for the trading list

SOURCE

   type Items_Sort_Orders is
     (NAMEASC, NAMEDESC, TYPEASC, TYPEDESC, DURABILITYASC, DURABILITYDESC,
      PRICEASC, PRICEDESC, PROFITASC, PROFITDESC, WEIGHTASC, WEIGHTDESC,
      OWNEDASC, OWNEDDESC, AVAILABLEASC, AVAILABLEDESC, NONE) with
      Default_Value => NONE;

OPTIONS

 NAMEASC        - Sort items by name ascending
 NAMEDESC       - Sort items by name descending
 TYPEASC        - Sort items by type ascending
 TYPEDESC       - Sort items by type descending
 DURABILITYASC  - Sort items by durability ascending
 DURABILITYDESC - Sort items by durability descending
 PRICEASC       - Sort items by price ascending
 PRICEDESC      - Sort items by price descending
 PROFITASC      - Sort items by profit ascending
 PROFITDESC     - Sort items by profit descending
 WEIGHTASC      - Sort items by weight ascending
 WEIGHTDESC     - Sort items by weight descending
 OWNEDASC       - Sort items by owned amount ascending
 OWNEDDESC      - Sort items by owned amount descending
 AVAILABLEASC   - Sort items by available amount ascending
 AVAILABLEDESC  - Sort items by available amount descending
 NONE           - No sorting modules (default)

HISTORY

 6.4 - Added

TUI/TUI.Default_Items_Sort_Order [ Constants ]

[ Top ] [ TUI ] [ Constants ]

FUNCTION

 Default sorting order for the trading list

SOURCE

   Default_Items_Sort_Order: constant Items_Sort_Orders := NONE;

HISTORY

 6.4 - Added

TUI/TUI.Items_Indexes [ Variables ]

[ Top ] [ TUI ] [ Variables ]

FUNCTION

 Indexes of the items for trade

SOURCE

   Items_Indexes: Natural_Container.Vector;

TUI/TUI.Items_Sort_Order [ Variables ]

[ Top ] [ TUI ] [ Variables ]

FUNCTION

 The current sorting order for the trading list

SOURCE

   Items_Sort_Order: Items_Sort_Orders := Default_Items_Sort_Order;

HISTORY

 6.4 - Added

TUI/TUI.Trade_Table [ Variables ]

[ Top ] [ TUI ] [ Variables ]

FUNCTION

 Table with info about the available items to trade

SOURCE

   Trade_Table: Table_Widget (Amount => 8);

TUI/TUI.Item_Index [ Subprograms ]

[ Top ] [ TUI ] [ Subprograms ]

FUNCTION

 Index of the currently selected item

SOURCE

   Item_Index: Integer;

TUI/TUI.Search_Trade_Command [ Commands ]

[ Top ] [ TUI ] [ Commands ]

FUNCTION

 Show only this items which contains the selected sequence

SOURCE

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

 SearchTrade

TUI/TUI.Show_Trade_Command [ Commands ]

[ Top ] [ TUI ] [ Commands ]

FUNCTION

 Show information about trading

SOURCE

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

 ShowTrade ?itemtype? ?searchstring?
 Itemtype is type of items to show, searchstring is string which is
 looking for in items names

TUI/TUI.Show_Trade_Item_Info_Command [ Commands ]

[ Top ] [ TUI ] [ Commands ]

FUNCTION

 Show information about the selected item

SOURCE

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

 ShowTradeItemInfo itemindex
 ItemIndex is the index of the item which menu will be show. If index
 starts with minus means item in base/trader cargo only. Otherwise it is
 index in the player ship cargo.

TUI/TUI.Sort_Items_Command [ Commands ]

[ Top ] [ TUI ] [ Commands ]

FUNCTION

 Sort the trading list

SOURCE

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

COMMANDS

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

TUI/TUI.Trade_Amount_Command [ Commands ]

[ Top ] [ TUI ] [ Commands ]

FUNCTION

 Show dialog to enter amount of items to sell or buy

SOURCE

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

 TradeAmount action baseindex
 Action which will be taken. Can be buy or sell. BaseIndex is the index
 of the base from which item will be bought. If zero it mean buying from
 trader ship.

TUI/TUI.Trade_Item_Command [ Commands ]

[ Top ] [ TUI ] [ Commands ]

FUNCTION

 Buy or sell the selected item

SOURCE

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

 TradeItem tradetype
 Tradetype is type of trade action. Can be buy, buymax, sell, sellmax