File: KTabby.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 (123 lines) | stat: -rw-r--r-- 2,232 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
*deck.numCols: 1
*deck.numRows: 1

*piles.numCols: 4
*piles.numRows: 1

*Cards.immediateUpdate: False

*stacks.numCols: 4
*stacks.numRows: 7
*stacks.rowsHint: True
*stacks.overlap: vertical

*tail.numCols: 1
*tail.numRows: 7
*tail.rowsHint: True
*tail.overlap: vertical

*deck.translations: #override \
	<BtnDown>:	select(deck_source)\n\
	<BtnUp>:	select(dest)

*stacks.translations: #override \
	Shift<BtnDown>:	select(noop)\n\
	Shift<BtnUp>:	select(expand)\n\
	:<Btn1Down>:	select(stack_source)\n\
	:<BtnDown>:	select(card_source)\n\
	:<BtnUp>:	select(dest)

*piles.translations: #override \
	<BtnDown>:	select(stack_source)\n\
	<BtnUp>:	select(dest)
	
*tail.translations: #override \
	Shift<BtnDown>:	select(noop)\n\
	Shift<BtnUp>:	select(expand)\n\
	:<Btn1Down>:	select(stack_source)\n\
	:<BtnDown>:	select(card_source)\n\
	:<BtnUp>:	select(dest)

*message.justify: left
*message.label: Keith's Tabby Cat, Version 1.0
*stacks.borderWidth: 0
*deck.borderWidth: 0
*piles.borderWidth: 0
*tail.borderWidth: 0

*menuBar.layout: vertical { \
	5 < -5 >\
	horizontal { \
		5 < -5 > \
		fileMenuButton \
		5 < -5 > \
		newGame \
		5 < -5 > \
		undo \
		5 < -5 > \
		hint \
		5 < -5 > \
		score \
		5 < -5 > \
		pileAll \
		0 <+inf -inf> \
	} \
	5 < -5 > \
}
*frame.layout: vertical {\
	-1 \
	horizontal {\
		-1 \
		menuBar < +inff -100% * >\
		-1 \
	} \
	10 < -inf > \
	horizontal { \
		10 < -inf > \
		piles < -100% * -90% > \
		10 < +inf -inf > \
		deck < -75% * -90% > \
		10 < -inf > \
	} \
	10 < -inf > \
	horizontal { \
		10 < -inf > \
		stacks < -50% * +inf -50% > \
		10 < +inf -inf > \
		tail < -75% * +inf -50% > \
		10 < -inf > \
	} \
	horizontal { \
		-1 \
		message < +inff -100% * > \
		-1 \
	} \
	-1 \
}

*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

*newGame.label: New Game

*undo.label: Undo

*hint.label: Hint

*score.label: Score

*pileAll.label: Fill Piles

*Command.shapeStyle: oval

*frame.translations: #override \
	<Key>u:		tabbyUndo()\n\
	<Key>n:		tabbyNewGame()\n\
	<Key>s:		tabbyScore()\n\
	<Key>?:		tabbyFindAMove()