File: KMontana.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 (76 lines) | stat: -rw-r--r-- 1,369 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
*cards.numCols: 13
*cards.numRows: 4
*cards.overlap: none
*smallCards: true
*cards.immediateUpdate: False
*cards.rowMajor: True

*cards.translations: #override \
	Shift<BtnDown>:	select(hint-previous)\n\
	<Btn1Down>:	select(hint-or-select)\n\
	<BtnDown>:	select(hint)\n\
	<BtnUp>:	select(unhint-or-move)
	
*message.justify: left
*message.label: Keith's Montana, Version 1.0
*cards.borderWidth: 0
*menuBar.layout: vertical { \
	5 < -5 >\
	horizontal { \
		5 < -5 > \
		fileMenuButton \
		5 < -5 > \
		deal \
		5 < -5 > \
		newGame \
		5 < -5 > \
		undo \
		5 < -5 > \
		score \
		0 <+inf -inf> \
	} \
	5 < -5 > \
}
*frame.layout: vertical {\
	-1 \
	horizontal {\
		-1 \
		menuBar < +inff -100% * >\
		-1 \
	} \
	10 < -inf > \
	cards < +100% -100% * +100% -100% > \
	horizontal { \
		-1 \
		dealDisplay < -100% * > \
		-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

*deal.label: Deal

*score.label: Score

*Command.shapeStyle: oval

*frame.translations: #override \
	<Key>u:		montanaUndo()\n\
	<Key>n:		montanaNewGame()\n\
	<Key>s:		montanaScore()\n\
	<Key>?:		montanaBestMove()