|
|
@ -953,30 +953,18 @@ INTERIOR_MEDIUM_FRAME = FRAME_INTERIOR_MEDIUM
|
|
|
|
|
|
|
|
|
|
|
|
-- for compatibility with dynamic textures
|
|
|
|
-- for compatibility with dynamic textures
|
|
|
|
local function choose_frame_style(style)
|
|
|
|
local function choose_frame_style(style)
|
|
|
|
if style == FRAME_WINDOW then return make_frame('Window', true) end
|
|
|
|
if style == FRAME_WINDOW or style == WINDOW_FRAME then return make_frame('Window', true) end
|
|
|
|
if style == FRAME_PANEL then return make_frame('Panel', true) end
|
|
|
|
if style == FRAME_PANEL or style == GREY_LINE_FRAME or style == PANEL_FRAME then
|
|
|
|
if style == FRAME_MEDIUM then return make_frame('Medium', true) end
|
|
|
|
return make_frame('Panel', true)
|
|
|
|
if style == FRAME_BOLD then return make_frame('Bold', true) end
|
|
|
|
|
|
|
|
if style == FRAME_INTERIOR then
|
|
|
|
|
|
|
|
local frame = make_frame('Thin', true)
|
|
|
|
|
|
|
|
frame.signature_pen = false
|
|
|
|
|
|
|
|
return frame
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
if style == FRAME_INTERIOR_MEDIUM then
|
|
|
|
if style == FRAME_MEDIUM or style == MEDIUM_FRAME then return make_frame('Medium', true) end
|
|
|
|
local frame = make_frame('Medium', true)
|
|
|
|
if style == FRAME_BOLD then return make_frame('Bold', true) end
|
|
|
|
frame.signature_pen = false
|
|
|
|
if style == FRAME_INTERIOR or style == INTERIOR_FRAME then
|
|
|
|
return frame
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
if style == GREY_LINE_FRAME then return make_frame('Panel', true) end
|
|
|
|
|
|
|
|
if style == WINDOW_FRAME then return make_frame('Window', true) end
|
|
|
|
|
|
|
|
if style == PANEL_FRAME then return make_frame('Panel', true) end
|
|
|
|
|
|
|
|
if style == MEDIUM_FRAME then return make_frame('Medium', true) end
|
|
|
|
|
|
|
|
if style == INTERIOR_FRAME then
|
|
|
|
|
|
|
|
local frame = make_frame('Thin', true)
|
|
|
|
local frame = make_frame('Thin', true)
|
|
|
|
frame.signature_pen = false
|
|
|
|
frame.signature_pen = false
|
|
|
|
return frame
|
|
|
|
return frame
|
|
|
|
end
|
|
|
|
end
|
|
|
|
if style == INTERIOR_MEDIUM_FRAME then
|
|
|
|
if style == FRAME_INTERIOR_MEDIUM or style == INTERIOR_MEDIUM_FRAME then
|
|
|
|
local frame = make_frame('Medium', true)
|
|
|
|
local frame = make_frame('Medium', true)
|
|
|
|
frame.signature_pen = false
|
|
|
|
frame.signature_pen = false
|
|
|
|
return frame
|
|
|
|
return frame
|
|
|
|