Thread Tools Display Modes
Prev Previous Post   Next Post Next
05-05-23, 10:32 PM   #1
redlemon
A Murloc Raider
Join Date: May 2023
Posts: 5
AceDB-3.0 dont read the saving DB

Hi,

I have a problem. AceDB-3.0 dont read the saving DB.
It'save correct.
Code:
local defaults = {
    char = {
        position = {
            x = 50,
            y = 50
        },
        Shown = true
    }
}
Code:
local AceDB = LibStub("AceDB-3.0")

EuF.DB = LibStub("AceDB-3.0"):New("EnemyUnitFrameDB", defaults)

dataPlayer = EuF.DB.char
Code:
local function Load_DB()
    Euf_mainFrame:ClearAllPoints()
    Euf_mainFrame:SetPoint("CENTER", UIParent, "CENTER", dataPlayer.position.x, dataPlayer.position.y)
    Euf_mainFrame:SetShown(dataPlayer.Shown)--Euf
    print("[INFO EUF] Load Profile " )
end
thank for your help.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » AceDB-3.0 dont read the saving DB

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off