summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-11-12 11:10:58 +0100
committerDaniel Friesel <derf@finalrewind.org>2022-11-12 11:10:58 +0100
commit6594d74edd87b350d2c9f1e510429a040cd402b1 (patch)
treec8d301354da13f15dc079a6991e4724b861afe65 /lib
parentc92b6bc9492d1d2cd8147354885d0a89f0fbfdb9 (diff)
show expected utilization alongsie train route
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Travelynx.pm15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index d04171e..d473fd2 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -467,6 +467,21 @@ sub startup {
);
$self->helper(
+ 'load_icon' => sub {
+ my ( $self, $load ) = @_;
+ my $first = $load->{FIRST} // 0;
+ my $second = $load->{SECOND} // 0;
+
+ my @symbols
+ = (
+ qw(help_outline person_outline people priority_high not_interested)
+ );
+
+ return ( $symbols[$first], $symbols[$second] );
+ }
+ );
+
+ $self->helper(
'checkin' => sub {
my ( $self, %opt ) = @_;