OneBag4

A mostly empty inventory

This is in the early stages of development and is not complete. It may not be yet suitable for full-time usage.

Since the last major development work was done on OneBag3 I've had a lot of ideas about what could be done to do it better, and being perfectly honest, I had gotten to the point where I had coded my way into a corner on OB3. Some of the ideas worked well. Some did not. So I'm going to take another stab at this, if for no other reason than to get the ideas out of my head!

Some of the goals:

  • Showing less useless information
  • Remove options that really aren't needed
  • Sorting of contents
  • Robust search
  • Keep the code clean
  • Try out some new programming ideas
  • Avoid coding myself into a corner

Please give feedback about what you think and what you think is the most important going forward.

Here is a video showing some of the dynamic display in action:

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of moonwitch moonwitch Jan 03, 2015 at 02:18 UTC - 0 likes

    Since I can't submit a ticket :P I tried fixing it, but I am just not seeing what is wrong with the return from GetItemInfo...

    2x OneBag4\main.lua:119: bad argument #2 to 'format' (string expected, got nil)
    [C]:: in function 'format'
    OneBag4\main.lua:119: in function 'SlotOrder'
    OneBag4\main.lua:156: in function 'OrganizeBagSlots'
    OneBag4\main.lua:332: in function 'UpdateAllBags'
    OneBag4\main.lua:375: in function 'OnShow'
    OneBag4\common.lua:251: in function <OneBag4\common.lua:250>
    [C]:: in function 'Show'
    OneBag4\main.lua:291: in function 'OpenBag'
    OneBag4\main.lua:282: in function <OneBag4\main.lua:274>
    (tail call): ?
    [string "OPENALLBAGS"]:1: in function <[string "OPENALLBAGS"]:1>
    
    Locals:
    self = <table> {
     SetDefaultModuleLibraries = <function> defined @s\Ace3\AceAddon-3.0\AceAddon-3.0.lua:398
     CloseBag = <function> defined @s\OneBag4\main.lua:296
     EnableModule = <function> defined @s\Ace3\AceAddon-3.0\AceAddon-3.0.lua:363
     modules = <table> {
     }
     UpdateAllBags = <function> defined @s\OneBag4\main.lua:330
     IterateEmbeds = <function> defined @s\Ace3\AceAddon-3.0\AceAddon-3.0.lua:473
     SecureHookScript = <function> defined @s\Ace3\AceHook-3.0\AceHook-3.0.lua:410
     SlotOrder = <function> defined @s\OneBag4\main.lua:110
     RawHookScript = <function> defined @s\Ace3\AceHook-3.0\AceHook-3.0.lua:395
     OnShow = <function> defined @s\OneBag4\main.lua:374
     Printf = <function> defined @s\Ace3\AceConsole-3.0\AceConsole-3.0.lua:69
     SetDefaultModulePrototype = <function> defined @s\Ace3\AceAddon-3.0\AceAddon-3.0.lua:440
     MainFrameTitle = <function> defined @s\OneBag4\main.lua:436
     defaultModuleState = true
     IsEnabled = <function> defined @s\Ace3\AceAddon-3.0\AceAddon-3.0.lua:482
     slot_frames = <table> {
     }
     DisableModule = <function> defined @s\Ace3\AceAddon-3.0\AceAddon-3.0.lua:381
     ApplySearchFilter = <function> defined @s\OneBag4\main.lua:247
     IsBagOpen = <function> defined @s\OneBag4\main.lua:266
     RegisterMessage = <function> defined @s\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:118
     UnregisterMessage = <function> defined @s\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:181
     RegisterBucketEvent = <function> defined @s\Ace3\AceBucket-3.0\AceBucket-3.0.lua:213
     hooks = <table> {
     }
     PrepareBagSlots = <function> defined @s\OneBag4\main.lua:86
     db = <table> {
     }
     OrganizeBagSlots = <function> defined @s\OneBag4\main.lua:149
     SetEnabledState = <function> defined @s\Ace3\AceAddon-3.0\AceAddon-3.0.lua:455
     Hook = <function> defined @s\Ace3\AceHook-3.0\AceHook-3.0.lua:274
     enabledState = true
     left_border = 8
     RegisterEvent = <function> defined @s\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:118
     IterateModules = <function> defined @s\Ace3\AceAddon-3.0\AceAddon-3.0.lua:468
     RawHook = <function> defined @s\Ace3\AceHook-3.0\AceHook-3.0.lua:313
     is_opened = false
     frame = OneBag4Frame {
     }
     OnSearchBoxCleared = <function> defined @s\OneBag4\main.lua:431
     OnInitialize = <function> defined @s\OneBag4\main.lua:13
     RegisterChatCommand = <function> defined @s\Ace3\AceConsole-3.0\AceConsole-3.0.lua:85
     GetModule = <function> defined @s\Ace3\AceAddon-3.0\AceAddon-3.0.lua:241
     defaultModuleLibraries = <table> {
     }
     column_width = 39
     UnregisterChatCommand = <function> defined @s\Ace3\AceConsole-3.0\AceConsole-3.0.lua:111
     OpenBag = <function> defined @s\OneBag4\main.lua:286
     OnSearchBoxTextChanged = <function> defined @s\OneBag4\main.lua:426
     GetName = <function> defined @s\Ace3\AceAddon-3.0\AceAddon-3.0.lua:310
     name = "OneBag4"
     ToggleBag = <function> defined @s\OneBag4\main.lua:274
     RegisterBucketMessage = <function> defined @s\Ace3\AceBucket-3.0\AceBucket-3.0.lua:229
     orderedModules = <table> {
     }
     bag_frames = <table> {
     }
     Disable = <function> defined @s\Ace3\AceAddon-3.0\AceAddon-3.0.lua:345
     top_border = 2
     right_border = 5
     bottom_border = 24
     bag_indexes = <table> {
     }
     row_height = 39
     Unhook = <function> defined @s\Ace3\AceHook-3.0\AceHook-3.0.lua:418
     Print = <function> defined @s\Ace3\AceConsole-3.0\AceConsole-3.0.lua:54
     baseName = "OneBag4"
     OnFrameCreate = <function> defined @s\OneBag4\main.lua:418
     OnDragStop = <function> defined @s\OneBag4\main.lua:
    
  • 1 comment

Facts

Date created
Aug 24, 2012
Category
Last update
Oct 15, 2014
Development stage
Beta
Language
  • enUS
License
All Rights Reserved
Curse link
OneBag4
Downloads
39,551
Recent files

Authors

Relationships

Embedded library
Ace3
CallbackHandler-1.0
LibStub