7 score_list
: LINKED_LIST
[SCORE_DISPLAY
]
9 init_scores(l
: LINKED_LIST
[PRESET
]) is
12 l
.do_all(agent add_new_score(?
))
15 add_new_score(p
: PRESET
) is
24 y
:= row_count
* 20 + 50
25 row_count
:= row_count
+ 1
26 add_widget(sd
.level_l
, x
, y
)
27 add_widget(sd
.name_l
, 70 + x
, y
)
28 add_widget(sd
.score_l
, 120 + x
, y
)
29 add_widget(sd
.time_l
, 170 + x
, y
)
30 score_list
.add_last(sd
)
33 update_score(p
: PRESET
) is
35 it
: ITERATOR
[SCORE_DISPLAY
]
39 it
:= score_list
.get_new_iterator
44 if sd
.name
.is_equal(p
.name
) then
46 sd
.name_l
.put_string(sc
.name
)
47 sd
.time_l
.put_string(sc
.time
.to_string
)
48 sd
.score_l
.put_string(sc
.score
.to_string
)
66 !COMMAND_ACTIVATE
!c
.make(Current)
67 b
.put_command(c
, b
.signal_activate
)
68 add_widget(b
, 100, 175)
79 add_widget(l
, 70 + x
, y
)
83 add_widget(l
, 120 + x
, y
)
87 add_widget(l
, 170 + x
, y
)