(self)
| 2895 | |
| 2896 | class TitleKeysLabel: |
| 2897 | def __init__(self): |
| 2898 | str_list = [] |
| 2899 | if not (cfg.JAEGGI_MODE or CLINICAL_MODE): |
| 2900 | str_list.append(_('C: Choose Game Mode\n')) |
| 2901 | str_list.append(_('S: Choose Sounds\n')) |
| 2902 | str_list.append(_('I: Choose Images\n')) |
| 2903 | if not CLINICAL_MODE: |
| 2904 | str_list.append(_('U: Choose User\n')) |
| 2905 | str_list.append(_('G: Daily Progress Graph\n')) |
| 2906 | str_list.append(_('H: Help / Tutorial\n')) |
| 2907 | if not CLINICAL_MODE: |
| 2908 | str_list.append(_('D: Donate\n')) |
| 2909 | str_list.append(_('F: Go to Forum / Mailing List\n')) |
| 2910 | str_list.append(_('O: Edit configuration file')) |
| 2911 | |
| 2912 | self.keys = pyglet.text.Label( |
| 2913 | ''.join(str_list), |
| 2914 | multiline = True, width = scale_to_width(260), |
| 2915 | font_size=calc_fontsize(12), bold = True, color = cfg.COLOR_TEXT, |
| 2916 | x = from_width_center(65), y = from_bottom_edge(230), |
| 2917 | anchor_x = 'center', anchor_y = 'top') |
| 2918 | |
| 2919 | self.space = pyglet.text.Label( |
| 2920 | _('Press SPACE to enter the Workshop'), |
| 2921 | font_size=calc_fontsize(20), bold = True, color = (32, 32, 255, 255), |
| 2922 | x = width_center(), y = from_bottom_edge(35), |
| 2923 | anchor_x = 'center', anchor_y = 'center') |
| 2924 | def draw(self): |
| 2925 | self.space.draw() |
| 2926 | self.keys.draw() |
nothing calls this directly
no test coverage detected