# emp_functions !! Employmnent and Event Systems !! 2023-02-12 !! Author: Hooded Silence !! !! v.01 - Initial code base !! v.02 - Event generator partially integrated !! v.03 - Job management system integrated !! v.04 - Start of event generation code integration !! v.05 - Date suffix modification !! --------------------- UI Interface for Journal if $ARGS[0] = 'gen_schedule': *clr & cla if theme['is_dark'] = 1: $header_theme = '#91B0B4' $body_theme = '#303030' $body_theme_alt = '#474747' $font_theme = '#000000' else $header_theme = '#e27c00' $body_theme = '#E0DED4' $body_theme_alt = '#D58B32' $font_theme = '#FFFFFF' end if function_sw = 1: '
Job Title: ' + $emp_job_title[j_id] + '
' $msg_body += 'Location: ' + $emp_job_loc[j_id] + '
' $msg_body += 'Notes: ' + $emp_job_notes[j_id]+ '
' $msg_body += 'Wages: ' + func('agentned', 'format_price_string', emp_job_wages[j_id]) + '₽
' msg $msg_body killvar '$msg_body' end !! Helper QoL function show current job for the journal at right time slot and to deactivate stat_display icon when all jobs are finished if $ARGS[0] = 'job_alert': !! loop indexes - internal !! s_day - track day of week s_day = week !! s_hour - track hour s_hour = 0 !! jmp_clear = end loop on qualification jmp_clear = 0 !! reset job start and end hour for stat_display job_start = 99 job_end = 99 !! Check if previous hour was booked - used to determine last working hour for stat_display prev_hour = 99 :s_hour if emp_rota_week['<