promotional bannermobile promotional banner

Gold Digger

Real-time gold tracking. Tracks income, expenses, profit, and gold/hour with source breakdowns, session history, event log, and a clean Blizzard-style UI. Lightweight, no libraries required.

File Details

GoldDigger-3.0.0.zip

  • R
  • Mar 8, 2026
  • 24.59 KB
  • 42
  • 12.0.1
  • Retail

File Name

GoldDigger-3.0.0.zip

Supported Versions

  • 12.0.1

v3.0.0

Main Window

  • Gold separator line — added a gold-coloured separator between the title/session ID area and the content rows, consistent with the History and Log windows
  • Persist income/expense expanded state — expanding the income or expense breakdown is now remembered across logins via GoldDiggerDB.incomeExpanded / GoldDiggerDB.expenseExpanded
  • GPH comparison row — new "vs Best" row below Gold per Hour shows the percentage difference against your best recorded session (green = above best, red = below, gold = equal); toggleable in options

Options Panel

  • New "UI" section — added a dedicated UI section before Session containing:
    • Show Minimap Button (moved from Session section)
    • Lock Main Window — new checkbox to lock/unlock window dragging without needing the gear menu
  • Show GPH Comparison checkbox — controls the new GPH comparison row; automatically disabled and greyed out when "Show Gold per Hour" is unchecked

Session Log Viewer

  • Opens at last page — log viewer now opens at the most recent page instead of page 1
  • Entry count in pagination bar — pagination now shows Page X of Y (N entries) for a quick overview of log size
  • Session ID in window title — the log window title now includes the session number, e.g. Session Log — #12
  • /gd log opens the viewer/gd log now opens the log viewer UI for the current session; /gd log N still prints the last N entries to chat

History Window

  • Persist sort state — the active sort column and direction are saved to GoldDiggerDB and restored each time the history window is opened
  • Fixed "Best GPH" stat — Best GPH is now tracked independently; previously it reflected the GPH of the best-profit session, which could be misleading

Internal

  • Split UI_Main.lua — extracted UI_Rows.lua (row creation and layout system) and UI_Update.lua (update loop, income/expense rendering) from the monolithic UI_Main.lua
  • Explicit layout dirty flag — replaced hash-based layout change detection with an explicit layoutDirty flag; GD.MarkLayoutDirty() is exposed for external callers (e.g. the options panel)
  • Reduced GD table pollution — intermediate UI frame references removed from the shared GD table; moved into module-level locals or the shared R context table
  • Replaced deprecated UIDropDownMenu API — all three menus (main options, history options, row context menu) now use Menu.CreateContextMenu / MenuUtil

v2.8.0

New Features

  • /gd status — prints a compact one-line session status to chat: session ID, profit, GPH, duration, and paused state if applicable

Fixed

  • Repair detection — repairs are now correctly detected by hooking RepairAllItems before the money event fires, instead of checking GetRepairAllCost() after the fact (which always returned 0)
  • Bank event compatibility — removed invalid event registrations (VOID_STORAGE_OPEN, VOID_STORAGE_CLOSE, GUILDBANKFRAME_OPENED, GUILDBANKFRAME_CLOSED) that caused startup errors in The War Within; regular Bank, Guild Bank, and Warband Bank all fire BANKFRAME_OPENED / BANKFRAME_CLOSED

Performance

  • OnUpdate budget guard — the UI update accumulator is now capped after each tick; lag spikes no longer cause burst back-to-back UpdateUI() calls on subsequent frames (drift-prevention subtract is kept, excess is discarded)

Session Log Viewer

  • Paginated log viewer — replaced the scrollbar with page-based navigation
    • Prev / Next buttons at the bottom with a "Page X of Y" indicator
    • Buttons are disabled when at the first or last page
    • Rows are pre-created and reused — no dynamic frame allocation per render
    • Always opens at page 1

History Window

  • Sortable columns — clicking any column header (Date, Profit, Duration, GPH) cycles through sort states: first click sorts descending (▼), second click ascending (▲), third click resets to default order (session ID descending); active sort column is highlighted with a gold arrow indicator
  • Delete individual sessions — right-clicking a history row now shows a "Delete" option with a confirmation dialog to remove that session without clearing the full history

v2.7.0

New Features

  • Bank source tracking — gold changes at bank-type storage frames are now tracked as a distinct "Bank" source instead of being silently ignored
    • Covers regular Bank, Guild Bank, Warband Bank, and Void Storage
    • Added Void Storage (VOID_STORAGE_OPEN / VOID_STORAGE_CLOSE)
    • Added Warband Bank (ACCOUNT_BANK_OPENED / ACCOUNT_BANK_CLOSED)
    • "Bank" now appears in income/expense breakdowns with its own icon

Performance

  • Income and expense source breakdowns are now pre-aggregated and saved with each history entry
    • History row tooltips no longer need to iterate the session log on every hover
    • Old entries without saved sources fall back to log-based computation automatically

v2.6.2

Fixed

  • Fixed expense sources incorrectly recording "loot" and "quest" — these are now remapped to "other" since they cannot logically be expense sources
  • Fixed income sources incorrectly recording "repair" — remapped to "other"
  • Fixed session ID not incrementing when max history is set to 0 — the session counter now always advances on reset regardless of history settings

UI

  • Moved "Show Minimap Button" option to the Session section, above the Session Log slider

v2.6.1

Fixed

  • Fixed Minimap button icon rendering — icon is now correctly circular and fits inside the border ring
  • Fixed Minimap button border position and size to align precisely with the icon
  • Fixed Minimap button radius now dynamically calculated from Minimap:GetWidth() to correctly adapt to custom minimap sizes

v2.6.0

New Features

  • Added Minimap Button

    • Gold coin icon positioned on the minimap ring
    • Left-click to toggle the main window
    • Right-click to open the options menu
    • Draggable — position is saved and restored across sessions
    • Can be disabled in Settings → Window
  • History rows now show a source breakdown tooltip on hover

    • Displays income and expense amounts grouped by source (Loot, Vendor, Mail, Auction, etc.)
    • Income sources shown in green, expense sources in red
    • Computed from the stored session log
    • Falls back gracefully when no log data is available
  • Added Show Session Log entry to the main window options menu

    • Opens the log viewer for the current active session directly from the gear menu

UI

  • History header row now has a subtle gold background highlight for better visual separation from session rows
  • Session Log Viewer rows now use zebra-style backgrounds and a gold hover highlight, consistent with the history window
  • Unified dropdown menu styling across all three menus (main options, history options, row context menu)
    • All action items now consistently show the selection indicator on the left

Performance

  • Income and expense breakdown lines are now pooled and reused instead of being recreated every second — prevents frame accumulation and reduces GC pressure
  • LayoutRows now uses a dirty flag — layout is only recalculated when row visibility or heights actually change
  • Fixed OnUpdate timer drift — accumulator now subtracts 1 instead of resetting to 0, keeping updates on a consistent 1-second interval
  • Fixed GetRepairAllCost() being called twice per money event at the merchant

Fixed

  • Fixed windows showing through each other when overlapping — each window now uses a dedicated frame strata (Main: MEDIUM, History: HIGH, Log: DIALOG)
  • Fixed transparent window backgrounds — replaced backdrop bgFile with explicit CreateTexture for guaranteed opacity

v2.5.0

New Features

  • Added Session Log Viewer window (UI_Log.lua)
    • Opens when clicking "Show Log" on a history row
    • Displays all recorded gold events for that session
    • Shows timestamp, source, and gold amount per entry
    • Moveable window with close button and scrollable log list

UI

  • History rows are now clickable with a gold hover highlight
  • Right-clicking or left-clicking a history row opens a context menu
    • "Show Log" opens the session log viewer for that row
  • All addon windows now use a fully opaque background (removed transparency)
  • Session Log window has a title separator consistent with other windows

Fixed

  • Fixed history row mouse hit detection — rows were not registering clicks due to incorrect content frame width
  • Fixed overlapping windows showing through each other — windows now use separate frame stratas (Main: MEDIUM, History: HIGH, Log: DIALOG)

v2.4.1

Fixed

  • Fixed an issue where the current session log was not preserved after relogging
  • Session event logs are now properly saved and restored with the active session
  • Fix "Max History Entries" slider max value in options
  • Fix log chat output formatting

v2.4.0

New Features

  • Added Session Event Log system to track individual gold changes during a session

  • Each log entry records:

    • Timestamp
    • Gold amount change
    • Detected source (Loot, Vendor, Mail, Auction, Trade, Repair, Quest, Other)
  • Session logs are now saved with each history entry

  • Added new command:

    • /gd log
      • Displays the last 10 log entries from the current session
    • /gd log <count>
      • Displays the last <count> log entries from the current session

Settings

  • Added Session Log settings to the addon options:
  • Show log events in chat — prints gold events live in chat
  • Max Session Log Entries — configurable log size limit

UI

  • Reintroduced Reset Session button in the main window (bottom-left)
  • Reset is now available both in the UI and the context menu

Improvements

  • Improved chat output format for session log entries
  • Log output now includes:
  • Timestamp
  • Source label
  • Coin icon display for gold amounts
  • Improved help output for /gd log command

Internal Changes

  • Added internal session event logging system
  • Session logs are now copied and stored when sessions are saved to history
  • Improved gold change handling to support log tracking
  • Minor code cleanup and stability improvements

v2.3.0

New Features

  • Added window display options:
    • Show Session ID
    • Show Income
    • Show Expenses
    • Show Gold per Hour
    • Show Session Time
  • All window options are enabled by default and update the UI immediately
  • Added "Open Settings" entry to the main window context menu
  • Added /gd settings and /gd options commands to open addon settings

UI Improvements

  • Main window height is now fully dynamic based on visible content
  • Removed empty space when rows are hidden
  • Window expands when expandable sections are opened
  • Profit display is now always visible and cannot be disabled

Bug Fixes

  • Fixed issue where sessions auto-paused due to AFK could not be manually resumed
  • Manual resume now overrides auto-pause state

Internal Changes

  • Refactored options UI with reusable checkbox helper
  • Added support for disabled options styling
  • Improved layout handling for main window rows
  • Improved settings persistence

v2.2.0

New

  • Added unique Session IDs (incremental)

  • Session ID is assigned only when a session is saved to history

  • Session ID is now shown in:

    • Main window
    • Session summary (chat)
    • Session history entries
  • Session start, pause, and resume messages now include the session number

  • Added session summary output on reset:

    • Profit
    • Duration
    • Gold per hour
    • Income
    • Expenses
    • Only shown if the session contains data
  • Replaced reset button with a Blizzard-style options menu (gear icon)

    • Lock / Unlock window
    • Show session history
    • Reset session (with confirmation)
  • Income and expense sources are now sorted by amount (highest first)

History

  • History entries now store Session IDs
  • Added Session ID column to the history list
  • Improved history statistics panel:
    • Total profit
    • Total time
    • Average profit
    • Average GPH
    • Best session profit and GPH
  • Added confirmation dialog for clearing history
  • Added options menu to history window

UI

  • Session ID now displayed in the main window
  • Gold per hour now uses profit-based coloring
  • Expandable income and expense breakdown panels
  • Automatic window height adjustment based on content
  • Improved pause/resume button behavior and tooltips

Safety

  • Reset Session now requires confirmation
  • Clear History requires confirmation
  • Window lock option prevents moving the frame
  • Window position persists between sessions

Internal

  • Improved context-based gold source detection
  • Improved session state handling
  • Better handling of empty sessions
  • Code cleanup and stability improvements

v2.1.1

Fixed

  • Fixed incorrect session duration values after pausing and logging out
  • Fixed session state not restoring correctly on login in certain cases
  • Fixed pause button text not updating after resetting a paused session

Changed

  • Increased default session history size to 100 entries
  • Increased maximum history size limit to 1000 entries
  • Improved session reset logic for better control over history saving
  • Improved session initialization on login to prevent inconsistent state

v2.1.0

Added

  • Session statistics panel at the top of the History window
  • Display of total profit across all recorded sessions
  • Display of total tracked time across sessions
  • Average profit per session
  • Average gold per hour across all sessions
  • Best session profit indicator
  • Best session GPH indicator including session duration
  • Visual separator between title and statistics
  • Visual separator between statistics and history list

Improved

  • History window layout completely reworked for better readability
  • Balanced spacing between title, statistics, and session list
  • Two-column layout for statistics to reduce vertical space usage
  • More consistent Blizzard-style panel appearance
  • Column alignment and spacing in the session table
  • Money source detection for gold gains and losses
  • Reduced number of transactions categorized as "Other"

Fixed

  • Misaligned statistics panel in the History window
  • Inconsistent spacing between UI sections
  • Layout issues when moving the history window
  • Minor visual inconsistencies in the history display

Changed

  • History window structure updated to include analytics overview
  • Internal UI anchoring adjusted for improved stability

v2.0.0

Added

  • Expandable Income section with detailed source breakdown
  • Expandable Expenses section with detailed spending breakdown
  • Icon-based source display using Blizzard textures
  • Tooltips for individual income and expense entries
  • Gold per Hour row in the main window
  • Session Time row with paused indicator
  • Dynamic window height that adapts to visible content
  • Vertical layout manager for automatic row positioning

Improved

  • Clean hierarchical layout for expandable sections
  • Consistent indentation for detail lists
  • Reduced spacing issues between rows and sections
  • More readable main window structure

Fixed

  • Row overlapping when expanding Income or Expenses
  • Expenses visually appearing as a subcategory of Income
  • Incorrect anchoring causing layout instability
  • Excessive spacing below expandable headers
  • Layout breaking when toggling sections repeatedly

Changed

  • Window size is now fully content-driven (no manual resizing)
  • Internal UI layout system rewritten for stability

v1.6.0

Added

  • Pause and resume functionality for sessions
  • Pause button in the UI (bottom center)
  • Slash commands: /gd pause and /gd resume
  • Session timer now excludes paused time
  • Auto-pause when player goes AFK
  • Auto-resume when returning from AFK
  • New setting: Auto Pause on AFK (enabled by default)

Changed

  • Session tracking no longer counts gold changes while paused
  • Gold per hour calculation ignores paused time
  • UI timer shows “Paused” while session is paused

Fixed

  • Prevented incorrect time and GPH calculations after pausing
  • Improved session state handling across resets and resumes

v1.5.0

Added

  • Dedicated session history window with scroll support
  • Zebra-style rows for improved readability
  • Blizzard-style UI layout for the history window
  • Header row displaying Date, Profit, Duration, and Gold per Hour
  • Draggable history window with position saved per character
  • Button on the main UI to open the history window
  • Slash command /gd history to toggle the history window
  • Slash command /gd clearhistory to clear all stored sessions
  • History window now updates automatically when history changes

Improved

  • Refactored addon into multiple files for better maintainability
  • Cleaner internal architecture using a shared addon table
  • More consistent UI behavior and state handling
  • Improved session persistence logic
  • History display formatting and spacing

Changed

  • History output moved from chat-only to a dedicated UI window
  • Internal functions reorganized for modular structure

v1.4.0

Added

  • Session history system (per character)
  • Timestamp for each saved session
  • Option to automatically reset session on logout
  • Resume previous session on login when auto reset is disabled
  • Lock button on the UI (bottom-left)
  • Configurable maximum history size (1–100 entries)
  • Command to clear session history

Improved

  • History is now trimmed automatically when limit is exceeded
  • Session persistence between play sessions

v1.3.0

Added

  • Income and expense tracking
  • Profit value is now color-coded based on gain or loss
  • Reset now requires confirmation to prevent accidental data loss
  • Session summary command
  • Window lock option to prevent accidental movement or resizing

Changed

  • Improved slash command handling with help output and show subcommand
  • Improved UI layout and readability

v1.2.1

Fixed

  • Fixed error when gold profit becomes negative
  • Gold expenses no longer cause UI errors
  • Negative amounts now display correctly with coin icons

v1.2.0

Added

  • Reset button on the UI (top-left)
  • Tooltips for Reset and Close buttons
  • Gold display using in-game coin icons

Changed

  • Improved UI layout and usability
  • Refined button styling
  • Cleaner gold/time display

v1.1.0

Added

  • Close button on the UI window
  • Reset command: /gd reset or /golddigger reset
  • Persistent window position and size (saved per character)

Changed

  • Improved session initialization logic

v1.0.0

Added

  • Session gold profit tracking (income and expenses)
  • Gold per hour calculation
  • Session timer
  • Movable UI window
  • Resizable frame
  • Position and size persistence
  • Slash commands: /golddigger, /gd