File: KSpider.ad

package info (click to toggle)
kgames 1.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 2,820 kB
  • sloc: ansic: 26,802; yacc: 1,067; lex: 216; makefile: 6
file content (109 lines) | stat: -rw-r--r-- 2,302 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
*deck.numCols: 1
*deck.numRows: 1

*piles.numCols: 8
*piles.numRows: 1

*Cards.immediateUpdate: False

*stacks.numCols: 10
*stacks.numRows: 7
*stacks.rowsHint: True
*stacks.overlap: vertical
*stacks.immediate_update: false

*deck.translations: #override \
	<BtnDown>:	select()

*stacks.translations: #override \
	Shift<BtnDown>:	select(noop)\n\
	Shift<BtnUp>:	select(expand)\n\
	:<Key>1:	select(stack_source 0) select(dest 0)\n\
	:<Key>2:	select(stack_source 1) select(dest 1)\n\
	:<Key>3:	select(stack_source 2) select(dest 2)\n\
	:<Key>4:	select(stack_source 3) select(dest 3)\n\
	:<Key>5:	select(stack_source 4) select(dest 4)\n\
	:<Key>6:	select(stack_source 5) select(dest 5)\n\
	:<Key>7:	select(stack_source 6) select(dest 6)\n\
	:<Key>8:	select(stack_source 7) select(dest 7)\n\
	:<Key>9:	select(stack_source 8) select(dest 8)\n\
	:<Key>0:	select(stack_source 9) select(dest 9)\n\
	<Key>u:		spiderUndo()\n\
	<Key>n:		spiderNewGame()\n\
	<Key>s:		spiderScore()\n\
	<Key>?:		spiderFindAMove()\n\
	:<Btn1Down>:	select(stack_source)\n\
	:<Btn2Down>:	select(card_source)\n\
	:<BtnUp>:	select(dest)

*message.justify: left
*message.label: Keith's Spider, Version 1.0
*stacks.borderWidth: 0
*deck.borderWidth: 0
*piles.borderWidth: 0
*menuBar.layout: vertical { \
	5 < -5 >\
	horizontal { \
		5 < -5 > \
		fileMenuButton \
		5 < -5 > \
		newGame \
		5 < -5 > \
		undo \
		5 < -5 > \
		hint \
		5 < -5 > \
		score \
		0 <+inf -inf> \
	} \
	5 < -5 > \
}
*frame.layout: vertical {\
	-1 \
	horizontal {\
		-1 \
		menuBar < +inff -100% * >\
		-1 \
	} \
	10 < -inf > \
	horizontal { \
		10 < -inf > \
		deck < -75% * -90% > \
		10 < +inf -inf > \
		piles < -100% * -90% > \
		10 < -inf > \
	} \
	10 < -inf > \
	stacks < -50% * +inf -50% > \
	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

*Command.shapeStyle: oval

*frame.translations: #override \
	<Key>u:		spiderUndo()\n\
	<Key>n:		spiderNewGame()\n\
	<Key>s:		spiderScore()\n\
	<Key>?:		spiderFindAMove()