Changeset View
Changeset View
Standalone View
Standalone View
autotests/folding/test.pbl.fold
- This file was added.
1 | # Wesnoth Markup Language | ||||
---|---|---|---|---|---|
2 | | ||||
3 | #textdomain wesnoth-libs | ||||
4 | | ||||
5 | <beginfold id='2'>#define</beginfold id='2'> __GUI_WINDOW_HEIGHT | ||||
6 | ( | ||||
7 | if(window_height = 0, 9999, window_height) | ||||
8 | )<endfold id='2'>#enddef</endfold id='2'> | ||||
9 | | ||||
10 | <beginfold id='2'>#define</beginfold id='2'> __GUI_WINDOW_FUNCTIONS | ||||
11 | def reevaluate_best_size(w, s) | ||||
12 | ( | ||||
13 | [ | ||||
14 | 0, | ||||
15 | # | ||||
16 | debug_print('window ', w), | ||||
17 | debug_print('screen ', s) | ||||
18 | # | ||||
19 | ]<beginfold id='4'>[0]</beginfold id='4'> | ||||
20 | ); | ||||
21 | <endfold id='2'>#enddef</endfold id='2'> | ||||
22 | | ||||
23 | <beginfold id='4'>[about]</beginfold id='4'> | ||||
24 | title= _ "Campaign Designer" | ||||
25 | text="Your Name" | ||||
26 | <endfold id='4'>[/about]</endfold id='4'> | ||||
27 | | ||||
28 | <beginfold id='4'>[window]</beginfold id='4'> | ||||
29 | id = "tooltip" | ||||
30 | | ||||
31 | <beginfold id='4'>[resolution]</beginfold id='4'> | ||||
32 | definition = "tooltip" | ||||
33 | automatic_placement = false | ||||
34 | functions = "{__GUI_WINDOW_FUNCTIONS<endfold id='3'>}</endfold id='3'>" | ||||
35 | | ||||
36 | <beginfold id='4'>[grid]</beginfold id='4'> | ||||
37 | | ||||
38 | <beginfold id='4'>[row]</beginfold id='4'> | ||||
39 | | ||||
40 | <beginfold id='4'>[column]</beginfold id='4'> | ||||
41 | | ||||
42 | <beginfold id='4'>[label]</beginfold id='4'> | ||||
43 | id = "label" | ||||
44 | definition = "default_small" | ||||
45 | | ||||
46 | use_markup = true | ||||
47 | wrap = true | ||||
48 | <endfold id='4'>[/label]</endfold id='4'> | ||||
49 | | ||||
50 | <endfold id='4'>[/column]</endfold id='4'> | ||||
51 | | ||||
52 | <endfold id='4'>[/row]</endfold id='4'> | ||||
53 | | ||||
54 | <endfold id='4'>[/grid]</endfold id='4'> | ||||
55 | | ||||
56 | <endfold id='4'>[/resolution]</endfold id='4'> | ||||
57 | | ||||
58 | <endfold id='4'>[/window]</endfold id='4'> |