Simple console window Dedicated to displaying who looted what in group, with item links.
Standalone Mode
* start in standalone mode
Standalone Commands
Options Menu
Import Mode
1. place in your scripts folder name it looted.Lua.
2. local guiLoot = require('looted')
3. guiLoot.imported = true
4. guiLoot.shouldDrawGUI = true|false to show or hide window.
5. guiLoot.hideNames = true|false toggle showing character names default is true.
6. guiLoot.importGUIElements = table to pass Custom Menu's into the GUI with. See example code below to achieve this. You can add as many menu's as you like.
7. You can pass text output to the console with guiLoot.console:AppendText("\ay[Looted]\ax Hiding Names\ax")
you can run in both modes at once. Imported mode has the * in the title.
the example below the imported version is showing names, and the standalone is set to hide names.
title="Example Menu Export function to pass custom menu's to the looted GUI"
Reports:
Imported Custom Menu
Standalone Mode
* start in standalone mode
/lua run looted start
/lua run looted hidenames
will start with player names hidden and class names used instead.Standalone Commands
/looted show
toggles show hide on window./looted stop
exit sctipt./looted report
spits out report if data logging is enabled/looted hidenames
Toggles showing names or class names. default is names.Options Menu
Import Mode
1. place in your scripts folder name it looted.Lua.
2. local guiLoot = require('looted')
3. guiLoot.imported = true
4. guiLoot.shouldDrawGUI = true|false to show or hide window.
5. guiLoot.hideNames = true|false toggle showing character names default is true.
6. guiLoot.importGUIElements = table to pass Custom Menu's into the GUI with. See example code below to achieve this. You can add as many menu's as you like.
7. You can pass text output to the console with guiLoot.console:AppendText("\ay[Looted]\ax Hiding Names\ax")
you can run in both modes at once. Imported mode has the * in the title.
the example below the imported version is showing names, and the standalone is set to hide names.
title="Example Menu Export function to pass custom menu's to the looted GUI"
INI:
local function guiExport()
-- Define a new menu element function
local function myCustomMenuElement()
if ImGui.BeginMenu('My Custom Menu') then
-- Add menu items here
_, guiLoot.console.autoScroll = ImGui.MenuItem('Auto-scroll', nil, guiLoot.console.autoScroll)
local activated = false
activated, guiLoot.hideNames = ImGui.MenuItem('Hide Names', activated, guiLoot.hideNames)
if activated then
if guiLoot.hideNames then
guiLoot.console:AppendText("\ay[Looted]\ax Hiding Names\ax")
else
guiLoot.console:AppendText("\ay[Looted]\ax Showing Names\ax")
end
end
local act = false
act, guiLoot.showLinks = ImGui.MenuItem('Show Links', act, guiLoot.showLinks)
if act then
guiLoot.linkdb = mq.TLO.Plugin('mq2linkdb').IsLoaded()
if guiLoot.showLinks then
if not guiLoot.linkdb then guiLoot.loadLDB() end
guiLoot.console:AppendText("\ay[Looted]\ax Link Lookup Enabled\ax")
else
guiLoot.console:AppendText("\ay[Looted]\ax Link Lookup Disabled\ax")
end
end
ImGui.EndMenu()
end
end
-- Add the custom menu element function to the importGUIElements table
table.insert(guiLoot.importGUIElements, myCustomMenuElement)
end
Reports:
Imported Custom Menu
- Source Repository
- https://github.com/grimmier378/looted
- [git] Automation options?
- Yes