You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
Currently, I noticed you have to use a Database for each module you make. The below example should explain more.
localGeneral=LibStub("Wasabi"):New(K.Title, "GeneralDB", C.General)
General:AddSlash("/kkthnxui")
General:Initialize(function(self)
localTitle=self:CreateTitle()
Title:SetPoint("TOPLEFT", 16, -16)
Title:SetText("General Options")
localAutoScale_OnEnter=function(self)
GameTooltip:SetOwner(self, "ANCHOR_TOPLEFT")
GameTooltip:AddLine("Automatically scale the User Interface based on your screen resolution", 0, 1, 0)
GameTooltip:Show()
endlocalAutoScale=self:CreateCheckButton("AutoScale")
AutoScale:SetPoint("TOPLEFT", Title, "BOTTOMLEFT", 0, -8)
AutoScale:SetText("Auto Scale Resolution")
AutoScale:SetScript("OnEnter", AutoScale_OnEnter)
AutoScale:SetScript("OnLeave", GameTooltip_Hide)
localFontSize_OnEnter=function(self)
GameTooltip:SetOwner(self, "ANCHOR_TOPLEFT")
GameTooltip:AddLine("Set the font size for everything in UI. Note: This doesn't effect somethings that have their own seperate options (UnitFrame Font, Datatext Font, ect..)", 0, 1, 0)
GameTooltip:Show()
endlocalFontSize=self:CreateSlider("FontSize")
FontSize:SetRange(10, 20)
FontSize:SetStep(1)
FontSize:SetPoint("TOPLEFT", AutoScale, "BOTTOMLEFT", 0, -8)
FontSize:SetText("Set UI Font Size")
FontSize:SetScript("OnEnter", FontSize_OnEnter)
FontSize:SetScript("OnLeave", GameTooltip_Hide)
end)
localActionBar=General:CreateChild("ActionBar", "ActionBarDB", C.ActionBar)
ActionBar:Initialize(function(self)
localTitle=self:CreateTitle()
Title:SetPoint("TOPLEFT", 16, -16)
Title:SetText("ActionBar Options")
end)
So, in theory, I am wondering something here. I am wanting to just use one SavedVariable for everything. I just want to use KkthnxUIDB instead of filling ActionBarDB, GeneralDB, NameplatesDB and so on. Now I could have overlooked this as I am still checking out your Lib.
To kinda show what I am wanting is more of a compact Database from your config. Would be a lot cleaner.
I could add an option to specify a table key to use within an existing table. It wouldn't be completely merged like you wanted, but it would be in one parent table.
Something like this: Wasabi:New(name, 'KkthnxUIData', 'General', defaults)
This one is sadly delayed as I can't really find a good way to implement this.
Profiles are still being considered though, but sub-tables sadly won't be.
This is just a reminder for the Database rework.
https://www.wowinterface.com/downloads/info24061-Wasabi.html#comments
From the link above you can see my examples.
Hey, p3lim. Once again thank you for your work.
Currently, I noticed you have to use a Database for each module you make. The below example should explain more.
So, in theory, I am wondering something here. I am wanting to just use one SavedVariable for everything. I just want to use KkthnxUIDB instead of filling ActionBarDB, GeneralDB, NameplatesDB and so on. Now I could have overlooked this as I am still checking out your Lib.
To kinda show what I am wanting is more of a compact Database from your config. Would be a lot cleaner.
The text was updated successfully, but these errors were encountered: