summary refs log tree commit diff stats
path: root/tests/manyloc/keineschweine/lib/sg_gui.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manyloc/keineschweine/lib/sg_gui.nim')
-rw-r--r--tests/manyloc/keineschweine/lib/sg_gui.nim40
1 files changed, 20 insertions, 20 deletions
diff --git a/tests/manyloc/keineschweine/lib/sg_gui.nim b/tests/manyloc/keineschweine/lib/sg_gui.nim
index 83ad0d1bf..bcf415556 100644
--- a/tests/manyloc/keineschweine/lib/sg_gui.nim
+++ b/tests/manyloc/keineschweine/lib/sg_gui.nim
@@ -193,28 +193,28 @@ proc setActive*(t: PTextEntry) =
   if not t.isNil and not t.inputClient.isNil:
     input_helpers.setActive(t.inputClient)
 
+when false:
+  proc newMessageArea*(container: PGuiContainer; position: TVector2f): PMessageArea =
+    new(result)
+    result.messages = @[]
+    result.pos = position
+    container.add(result)
+  proc add*(m: PMessageArea, text: string): PText =
+    result = messageProto.copy()
+    result.setString(text)
+    m.messages.add(result)
+    let nmsgs = len(m.messages)
+    var pos   = vec2f(m.pos.x, m.pos.y)
+    for i in countdown(nmsgs - 1, max(nmsgs - 30, 0)):
+      setPosition(m.messages[i], pos)
+      pos.y -= 16.0
 
-discard """proc newMessageArea*(container: PGuiContainer; position: TVector2f): PMessageArea =
-  new(result)
-  result.messages = @[]
-  result.pos = position
-  container.add(result)
-proc add*(m: PMessageArea, text: string): PText =
-  result = messageProto.copy()
-  result.setString(text)
-  m.messages.add(result)
-  let nmsgs = len(m.messages)
-  var pos   = vec2f(m.pos.x, m.pos.y)
-  for i in countdown(nmsgs - 1, max(nmsgs - 30, 0)):
-    setPosition(m.messages[i], pos)
-    pos.y -= 16.0
+  proc draw*(window: PRenderWindow; m: PMessageArea) =
+    let nmsgs = len(m.messages)
+    if nmsgs == 0: return
+    for i in countdown(nmsgs - 1, max(nmsgs - 30, 0)):
+      window.draw(m.messages[i])
 
-proc draw*(window: PRenderWindow; m: PMessageArea) =
-  let nmsgs = len(m.messages)
-  if nmsgs == 0: return
-  for i in countdown(nmsgs - 1, max(nmsgs - 30, 0)):
-    window.draw(m.messages[i])
-"""
 proc newMessageArea*(container: PGuiContainer; position: TVector2f): PMessageArea =
   new(result)
   result.messages = @[]
Thomas E. Dickey <dickey@invisible-island.net> 2005-06-02 22:50:02 -0400 committer Thomas E. Dickey <dickey@invisible-island.net> 2005-06-02 22:50:02 -0400 snapshot of project "lynx", label v2-8-6dev_12' href='/ingrix/lynx-snapshots/commit/samples/blue-background.lss?id=1367261dc669476df3a799f0de45e4bfb2437b8b'>1367261d ^
b223937f ^
1367261d ^





b223937f ^

1367261d ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95



                                                                    
































                                                                              




                                                                

               





















                                                             
 




                                                             
 




                                                             
 


                                                             
 





                                                             

                      



                                                             
# From: Sergey Svishchev <svs@ropnet.ru> 
# Notes:
# I use this in OS/2 VIO window, and occasionally on Linux console. 
 
# Setting the normal and default types lets us keep (almost) the same colors
# whether the terminal's default colors are white-on-black or black-on-white.
# It is not exact since the default "white" is not necessarily the same color
# as the ANSI lightgray, but is as close as we can get in a standard way.
#
# If you really want the terminal's default colors, and if lynx is built using
# ncurses' default-color support, remove these two lines:
normal:		normal:			lightgray:	blue
default:	normal:			white:		blue

# Normal type styles correspond to HTML tags.
#
# The next line (beginning with "em") means:  use bold if mono, otherwise
# brightblue on <defaultbackground>
em:		bold:			brightgreen:	blue 
strong:		bold:			brightred:	blue 
b:		bold:			white:		blue 
i:		bold:			yellow:		blue 
alink:		reverse:		white:		cyan 
a:		bold:			cyan:		blue 
img:		dim:			gray:		blue 
status:		reverse:		white:		green 
fig:		normal:			gray:		blue 
caption:	reverse:		brown:		blue 
hr:		normal:			yellow:		blue 
blockquote:	normal:			brightblue:	blue 
#ul:normal:	brown:blue 
address:	normal:			magenta:	blue 
#title:	normal:magenta:blue 
tt:		dim:			gray:		blue 
h1:		bold:			yellow:		blue 
label:		normal:			magenta:	blue 
value:		normal:			green:		blue 
q:		normal:			yellow:		magenta 
small:		dim:			gray:		blue 
big:		bold:			yellow:		blue 
sup:		bold:			yellow:		blue 
sub:		dim:			gray:		blue 
 
# glitch fixes 
area:		normal:			lightgray:	blue 
body:		normal:			lightgray:	blue 
br:		normal:			lightgray:	blue 
center:		normal:			lightgray:	blue 
center.header:	normal:			lightgray:	blue 
div:		normal:			lightgray:	blue 
font:		normal:			lightgray:	blue 
font.letter:	normal:			lightgray:	blue 
h2:		normal:			lightgray:	blue 
h3:		normal:			lightgray:	blue 
h4:		normal:			lightgray:	blue 
h5:		normal:			lightgray:	blue 
h6:		normal:			lightgray:	blue 
head:		normal:			lightgray:	blue 
link:		normal:			lightgray:	blue 
map:		normal:			lightgray:	blue 
meta:		normal:			lightgray:	blue 
p:		normal:			lightgray:	blue 
table:		normal:			lightgray:	blue 
td:		normal:			lightgray:	blue 
tr:		normal:			lightgray:	blue 
title:		normal:			lightgray:	blue 
 
form:		normal:			lightgray:	blue 
input:		normal:			lightgray:	blue 
input.submit:	normal:			cyan:		blue 
select:		normal:			lightgray:	blue 
option:		normal:			lightgray:	blue 
 
pre:		normal:			lightgray:	blue 
dd:		normal:			lightgray:	blue 
dt:		normal:			lightgray:	blue 
ul:		normal:			lightgray:	blue 
li:		normal:			lightgray:	blue 
 
base:		normal:			lightgray:	blue 
iframe:		normal:			lightgray:	blue 
cite:		normal:			yellow:		blue 

span.htmlsrc_comment:normal:		green:		blue 
span.htmlsrc_tag:normal:		brightgreen:	blue 
span.htmlsrc_attrib:normal:		brightcyan:	blue 
span.htmlsrc_attrval:normal:		white:		blue 
span.htmlsrc_abracket:normal:		brightgreen:	blue 
span.htmlsrc_entity:normal:		white:		blue 
##span.htmlsrc_href:
##span.htmlsrc_entire:
span.htmlsrc_badseq:normal:		red:		blue 
span.htmlsrc_badtag:normal:		red:		blue 
span.htmlsrc_badattr:normal:		red:		blue 
span.htmlsrc_sgmlspecial:normal:	yellow:		blue