From 7a3ee623e848db400924fcb4905b0eccbd3189d4 Mon Sep 17 00:00:00 2001 From: DarkGod <darkgod@net-core.org> Date: Sat, 15 Feb 2014 16:25:05 +0100 Subject: [PATCH] death is darker --- game/engines/default/engine/ui/Dialog.lua | 3 ++- game/modules/tome/data/gfx/ui/definitions/deathbox.lua | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/game/engines/default/engine/ui/Dialog.lua b/game/engines/default/engine/ui/Dialog.lua index 407b158ceb..5ee9a60bc5 100644 --- a/game/engines/default/engine/ui/Dialog.lua +++ b/game/engines/default/engine/ui/Dialog.lua @@ -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 diff --git a/game/modules/tome/data/gfx/ui/definitions/deathbox.lua b/game/modules/tome/data/gfx/ui/definitions/deathbox.lua index 0890497c4c..81f112591f 100644 --- a/game/modules/tome/data/gfx/ui/definitions/deathbox.lua +++ b/game/modules/tome/data/gfx/ui/definitions/deathbox.lua @@ -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, -- GitLab