Skip to content
Snippets Groups Projects
Commit 7a3ee623 authored by DarkGod's avatar DarkGod
Browse files

death is darker

parent f7f27655
No related branches found
No related tags found
No related merge requests found
......@@ -219,6 +219,7 @@ function _M:init(title, w, h, x, y, alpha, font, showup, skin)
b5 = "ui/dialogframe_5.png",
shadow = conf.frame_shadow,
a = conf.frame_alpha or 1,
darkness = conf.frame_darkness or 1,
particles = table.clone(conf.particles, true),
}
self.frame.ox1 = self.frame.ox1 or conf.frame_ox1
......@@ -659,7 +660,7 @@ function _M:toScreen(x, y, nb_keyframes)
-- Draw the frame and shadow
if self.frame.shadow then self:drawFrame(x + self.frame.shadow.x, y + self.frame.shadow.y, 0, 0, 0, self.frame.shadow.a) end
self:drawFrame(x, y, 1, 1, 1, self.frame.a)
self:drawFrame(x, y, self.frame.darkness, self.frame.darkness, self.frame.darkness, self.frame.a)
-- Title
if self.title then
......
......@@ -20,6 +20,7 @@
deathbox = {
frame_shadow = {x=15, y=15, a=0.5},
frame_alpha = 1,
frame_darkness = 0.6,
frame_ox1 = -60,
frame_ox2 = 60,
frame_oy1 = -60,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment