summaryrefslogtreecommitdiff
path: root/library/lua
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-08-22 13:06:06 +0400
committerAlexander Gavrilov2012-08-22 13:06:06 +0400
commit6e8b68fb29c52f1782938bf7aa564a516079bf61 (patch)
tree1839b3f85cef36ea8f1345136f07b8da4905adb6 /library/lua
parent2b79582e99654282a03ee10424db380942b04b10 (diff)
downloaddfhack-6e8b68fb29c52f1782938bf7aa564a516079bf61.tar.gz
dfhack-6e8b68fb29c52f1782938bf7aa564a516079bf61.tar.bz2
dfhack-6e8b68fb29c52f1782938bf7aa564a516079bf61.tar.xz
Add yet one more frame style.
Diffstat (limited to 'library/lua')
-rw-r--r--library/lua/gui.lua14
1 files changed, 13 insertions, 1 deletions
diff --git a/library/lua/gui.lua b/library/lua/gui.lua
index 3156894d..20d7526e 100644
--- a/library/lua/gui.lua
+++ b/library/lua/gui.lua
@@ -259,6 +259,18 @@ BOUNDARY_FRAME = {
signature_pen = { fg = COLOR_BLACK, bg = COLOR_DARKGREY },
}
+GREY_LINE_FRAME = {
+ frame_pen = { ch = 206, fg = COLOR_GREY, bg = COLOR_BLACK },
+ h_frame_pen = { ch = 205, fg = COLOR_GREY, bg = COLOR_BLACK },
+ v_frame_pen = { ch = 186, fg = COLOR_GREY, bg = COLOR_BLACK },
+ lt_frame_pen = { ch = 201, fg = COLOR_GREY, bg = COLOR_BLACK },
+ lb_frame_pen = { ch = 200, fg = COLOR_GREY, bg = COLOR_BLACK },
+ rt_frame_pen = { ch = 187, fg = COLOR_GREY, bg = COLOR_BLACK },
+ rb_frame_pen = { ch = 188, fg = COLOR_GREY, bg = COLOR_BLACK },
+ title_pen = { fg = COLOR_BLACK, bg = COLOR_GREY },
+ signature_pen = { fg = COLOR_DARKGREY, bg = COLOR_BLACK },
+}
+
function paint_frame(x1,y1,x2,y2,style,title)
local pen = style.frame_pen
dscreen.paintTile(style.lt_frame_pen or pen, x1, y1)
@@ -283,7 +295,7 @@ end
FramedScreen = defclass(FramedScreen, Screen)
-FramedScreen.frame_style = GREY_FRAME
+FramedScreen.frame_style = BOUNDARY_FRAME
local function hint_coord(gap,hint)
if hint and hint > 0 then