For anyone wondering: if I replace
Code:
LDBIcon:Register("PoisonCharges", PC_MinimapBtn, PC_MinimapPos)
with
Code:
LDBIcon:Register("PoisonCharges", PC_MinimapBtn, self.PC_MinimapPos)
it starts working. Now the second problem: I can move the button, but how I can save the new position?