View Single Post
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