File: Cribbage.ad

package info (click to toggle)
kgames 1.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,820 kB
  • sloc: ansic: 26,802; yacc: 1,067; lex: 216; makefile: 6
file content (89 lines) | stat: -rw-r--r-- 1,545 bytes parent folder | download
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
*layout.translations: #override \
	<Key>:	cribbageKey()

*Cards.immediateUpdate: False
*message.numRows: 10
*message.numCols: 48
*player.numRows: 6
*player.numCols: 6
*player.overlap: both
*player.borderWidth: 0
*player.translations: #override \
	<BtnDown>:	select()
*computer.numRows: 6
*computer.numCols: 6
*computer.overlap: both
*computer.borderWidth: 0

*tableScore.borderWidth: 0
*tableScore.label:

*table.numRows: 6
*table.numCols: 6
*table.borderWidth: 0
*table.overlap: both

*playcrib.numRows: 1
*playcrib.numCols: 1
*playcrib.borderWidth: 0

*compcrib.numRows: 1
*compcrib.numCols: 1
*compcrib.borderWidth: 0

*fileMenuButton.leftBitmap: menu12
*fileMenuButton.menuName: fileMenu
*fileMenuButton.label: File
*fileMenuButton.shapeStyle: oval

*fileMenu.save.label: Save To File
*fileMenu.restore.label: Restore From File
*fileMenu.quit.label: Quit

*menuBar.layout: vertical { \
	5 < -inf > \
	horizontal { \
		5 < -inf > \
		fileMenuButton \
		5 < -inf > \
		0 < +inf > \
	} \
	5 < -inf > \
}
*layout.layout: vertical { \
	-1 \
	horizontal { \
		-1 \
		menuBar < +inf -inf * > \
		-1 \
	} \
	horizontal { \
		vertical { \
			horizontal { \
				player < -50% * -50% > \
				vertical { \
					tableScore < +inf -inf * > \
					table < -50% * -50% > \
				} \
				computer < -50% * -50% > \
			} \
			horizontal { \
				0 < +inf > \
				playcrib \
				0 < +inf > \
				compcrib \
				0 < +inf > \
			} \
		} \
		vertical { \
			-1 \
			playscore \
			-1 \
			compscore \
			-1 \
			message < * +inf -inf > \
			-1 \
		} \
		-1 \
	} \
}