§
   H˜È)0^‘ã                   ó&  — d Z ddlmZmZ ddlZddlmZ dZdZddd	d
œZ	 G d„ de¦  «        Z
d„ Z e
dddi  ee	¦  «        ¥ddddœ¥i dd¬¦  «        Zdddd
œZ e
dddi  ee¦  «        ¥dddd d!d"d#œ¥d$„ ej                             ¦   «         D ¦   «         ¥i d%d“d&d'“d(d“d)d'“d*d'“d+d,“d-d'“d.d/“d0d“d1d2“d3d4“d5d/“d6d“d7d/“d8d2“d9d:“d;d'“¥d<d=dd'd'd:d'd>œ¥d?„  ed@¦  «        D ¦   «         ¥dAdd2dBœ¥dCd%d(d*dDd+d.d3d6d9dEœ
dCd¬¦  «        ZeedFœZeZdG„ ZdS )Haª  The looks of the Millionaire game window and how each one is operated (addon setting `milionar_game_design`).

Both designs are driven by the same adapter and controller; a design is an XML file plus a map from its controls to
intents (what the player asked for). Intents: answer0-3, life5050, lifetip, lifeaudience, primary / secondary (the
first / second menu button of the classic card), start, rules, back, next, again, results, retry (menu buttons of the
modern card), title (choose another title), home, end (leave the game), exit_stay (stay after "leave the game?"),
settings (open the settings of the title card), set_<key> (a row of the settings: OK takes its next value).
é    )ÚDictÚ
NamedTupleN)Úgame_settingsÚmilionar_game_design)é%  i%  i%  i%  i&%  i'%  i(%  )Úlife5050ÚlifetipÚlifeaudiencec                   óv   — e Zd ZU eed<   eed<   eed<   eeef         ed<   eeef         ed<   eed<   eed<   dS )	ÚDesignÚkeyÚxmlÚmodernÚclicksÚprimaryÚmenu_primaryÚconfirm_exitN)Ú__name__Ú
__module__Ú__qualname__ÚstrÚ__annotations__Úboolr   Úint© ó    ú_/Users/chudy/Library/Application Support/Kodi/addons/plugin.video.milionar/wcs/games/designs.pyr   r      sm   € € € € € € Ø	€H€H�HØ	€H€H�HØ€L€L�LØ��c�ŒNÐÐÑØ�#�s�(Œ^ÐÐÑØÐÐÑØÐÐÑÐÐr   r   c                 ó¤   — d„ t          t          ¦  «        D ¦   «         }|                     d„ |                      ¦   «         D ¦   «         ¦  «         |S )Nc                 ó@   — i | ]\  }}|d                       |¦  «        “ŒS )úanswer{}©Úformat)Ú.0ÚindexÚcontrols      r   ú
<dictcomp>z_answers.<locals>.<dictcomp>    s,   € Ð\Ð\Ð\±N°E¸7ˆg�z×(Ò(¨Ñ/Ô/Ð\Ð\Ð\r   c                 ó   — i | ]\  }}||“Œ	S r   r   )r#   Úintentr%   s      r   r&   z_answers.<locals>.<dictcomp>!   s   € ÐKÐKÐK¡ v¨w�7˜FÐKÐKÐKr   )Ú	enumerateÚ
ANSWER_IDSÚupdateÚitems)Úlife_idsr   s     r   Ú_answersr.      sN   € Ø\Ð\ÅiÕPZÑF[ÔF[Ð\Ñ\Ô\€FØ
‡M‚MÐKÐK¸(¿.º.Ñ:JÔ:JÐKÑKÔKÑLÔLÐLØ€Mr   Úclassiczgames/DialogMilionarGame.xmlFr   Ú	secondaryÚend)é*%  i+%  i)%  r2   )r   r   r   r   r   r   r   iŸ%  i %  i¡%  r   z"games/DialogMilionarGameModern.xmlTÚstartÚrulesÚtitleÚsettingsÚmode_millionaireÚ
mode_story)é�%  i‚%  iƒ%  i„%  i…%  i†%  c                 ó    — i | ]\  }}|d |z   “ŒS )Úset_r   )r#   r   r%   s      r   r&   r&   0   s"   € Ð
TÐ
TÐ
T¡\ S¨'ˆ7�F˜S‘LÐ
TÐ
TÐ
Tr   i‹%  iŒ%  Úbacki•%  i–%  i—%  i©%  Únextiª%  i³%  Úagaini´%  iµ%  Úhomei½%  Úresultsi¾%  iÇ%  iÈ%  iÉ%  iÑ%  ÚretryiÒ%  Ú	exit_stayÚexit_confirm)iÛ%  iÜ%  i5&  i6&  i7&  i8&  i9&  c                 ó@   — i | ]}d |z   d                      |¦  «        “ŒS )i>&  r    r!   )r#   r$   s     r   r&   r&   :   s,   € Ð
HÐ
HÐ
H°eˆ4�%‰<˜×*Ò*¨5Ñ1Ô1Ð
HÐ
HÐ
Hr   é   Ústory_primary)iB&  iD&  iE&  r9   r   )
r5   r4   ÚintroÚloadingÚquestionÚfeedbackÚgameoverÚwinr@   Úerror)Ú0Ú1c                  óÆ   — 	 t                                t          j        d¦  «                             t
          ¦  «        t          ¦  «        S # t          $ r
 t          cY S w xY w)z]The design chosen in the addon settings (the modern card unless the classic one is selected).zplugin.video.milionar)ÚDESIGNSÚgetÚ	xbmcaddonÚAddonÚ
getSettingÚSETTINGÚDEFAULTÚ	Exceptionr   r   r   ÚcurrentrY   D   sY   € ðÝ�{Š{�9œ?Ð+BÑCÔC×NÒNÍwÑWÔWÕY`ÑaÔaÐaøÝð ð ð Ýˆˆˆðøøøs   ‚A	A ÁA ÁA )Ú__doc__Útypingr   r   rS   Ú	wcs.gamesr   rV   r*   ÚLIFE_IDSr   r.   ÚCLASSICÚMODERN_LIFE_IDSÚCONTROLSr,   ÚrangeÚMODERNrQ   rW   rY   r   r   r   ú<module>rc      sô  ððð ð $Ð #Ð #Ð #Ð #Ð #Ð #Ð #à Ð Ð Ð à #Ð #Ð #Ð #Ð #Ð #à
 €Ø%€
Ø¨¸tÐDÐD€ðð ð ð ð ˆZñ ô ð ðð ð ð ˆ&ØÐ5¸eØRˆhˆh�xÑ Ô ÐR¨	¸ÈEÐRÐRÐRØ˜T°ð7ñ 7ô 7€ð
  $°ÀdÐKÐK€Ø	ˆØÐ:À4ð<ˆhˆh�Ñ'Ô'ð <Ø˜W¨GØÐ 2¸,ð<ð <ð <ð UÐ
T°]Ô5K×5QÒ5QÑ5SÔ5SÐ
TÑ
TÔ
Tð<ð <ð 	ˆgð	<ð ˜Vð	<ð
 	ˆgð<ð
 ˜Vð<ð
 &*¨6ð<ð 	ˆfð<ð ˜Fð<ð 	ˆgð<ð ˜Wð<ð '+¨Fð<ð 	ˆið<ð ˜wð<ð 	ˆgð<ð ˜Wð<ð '+¨Fð<ð 	ˆgð<ð ˜Vð<ð <ð  Ø˜V¨6¸Èð<ð <ð <ð IÐ
H¸u¸uÀQ¹x¼xÐ
HÑ
HÔ
Hð<ð  W°Fð<ð <ð <ð  T°DÀTÐW[ÐimØ d°tÀdðLð Là Dð'
*ñ 
*ô 
*€ð* ˜fÐ
%Ð
%€Ø
€ðð ð ð ð r   