BG模块不再用LOG.print报背景缺失(解耦)
This commit is contained in:
@@ -34,15 +34,10 @@ function BG.setDefault(bg)
|
|||||||
end
|
end
|
||||||
function BG.set(background)
|
function BG.set(background)
|
||||||
if not background then background=BG.default end
|
if not background then background=BG.default end
|
||||||
if not BGs[background]then LOG.print("No BG file: "..background,10,COLOR.orange)return end
|
if not BGs[background]or background==BG.cur or not SETTING.bg then return end
|
||||||
if background==BG.cur or not SETTING.bg then return end
|
|
||||||
BG.discard()
|
BG.discard()
|
||||||
BG.cur=background
|
BG.cur=background
|
||||||
background=BGs[background]
|
background=BGs[background]
|
||||||
if not background then
|
|
||||||
LOG.print("No BG called"..background,"warn")
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
BG.init= background.init or NULL
|
BG.init= background.init or NULL
|
||||||
BG.resize= background.resize or NULL
|
BG.resize= background.resize or NULL
|
||||||
|
|||||||
Reference in New Issue
Block a user