TABLE OF CONTENTS
- 1. LUI/LUI.Sort_Items_Command
- 2. LUI/LUI.Show_Trade_Loot_Info_Command
- 3. LUI/LUI.Show_Loot_Command
- 4. LUI/LUI.Loot_Item_Command
- 5. LUI/LUI.Loot_Amount_Command
- 6. LUI/LUI.Item_Index
- 7. LUI/LUI.Get_Item_Index
- 8. LUI/LUI.Loot_Table
- 9. LUI/LUI.Items_Sort_Order
- 10. LUI/LUI.Items_Indexes
- 11. LUI/LUI.Default_Items_Sort_Order
- 12. LUI/LUI.Items_Sort_Orders
LUI/LUI.Items_Sort_Orders [ Types ]
FUNCTION
Sorting orders for the looting list
SOURCE
type Items_Sort_Orders is (NAMEASC, NAMEDESC, TYPEASC, TYPEDESC, DURABILITYASC, DURABILITYDESC, 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 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
LUI/LUI.Default_Items_Sort_Order [ Constants ]
FUNCTION
Default sorting order for the looting list
SOURCE
Default_Items_Sort_Order: constant Items_Sort_Orders := NONE;
HISTORY
6.4 - Added
LUI/LUI.Items_Indexes [ Variables ]
FUNCTION
Indexes of the items for loot
SOURCE
Items_Indexes: Natural_Container.Vector;
LUI/LUI.Items_Sort_Order [ Variables ]
FUNCTION
The current sorting order for the looting list
SOURCE
Items_Sort_Order: Items_Sort_Orders := Default_Items_Sort_Order;
HISTORY
6.4 - Added
LUI/LUI.Loot_Table [ Variables ]
FUNCTION
Table with info about the available items to loot
SOURCE
Loot_Table: Table_Widget (Amount => 5);
LUI/LUI.Get_Item_Index [ Subprograms ]
[ Top ] [ LUI ] [ Subprograms ]
FUNCTION
Get the index of the currently selected item
SOURCE
function Get_Item_Index return Integer is
RESULT
The index of the currently selected item
LUI/LUI.Item_Index [ Subprograms ]
[ Top ] [ LUI ] [ Subprograms ]
FUNCTION
Index of the currently selected item
SOURCE
Item_Index: Integer;
LUI/LUI.Loot_Amount_Command [ Commands ]
FUNCTION
Show dialog to enter amount of items to drop or take
SOURCE
function Loot_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
LootAmount action maxamount Action which will be taken. Can be take or drop. Maxamount is the maximum allowed amount of items to take
LUI/LUI.Loot_Item_Command [ Commands ]
FUNCTION
Take or drop the selected item
SOURCE
function Loot_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
LootItem actiontype actiontype can be: drop, dropall, take, takeall
LUI/LUI.Show_Loot_Command [ Commands ]
FUNCTION
Show information about looting
SOURCE
function Show_Loot_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
ShowLoot
LUI/LUI.Show_Trade_Loot_Info_Command [ Commands ]
FUNCTION
Show information about the selected item
SOURCE
function Show_Loot_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
ShowLootItemInfo itemindex ItemIndex is a index of the item which info will be shown.
LUI/LUI.Sort_Items_Command [ Commands ]
FUNCTION
Sort the looting 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
SortLootItems x X is X axis coordinate where the player clicked the mouse button