ó
VBµ\c        <   @  sÒ  d  d l  m Z d  d l Td  d l Z d  d l Z d  d l j j Z d  d l	 j j
 Z
 d Z d Z d Z d Z e Z d Z e Z e Z e Z e Z e j Z d Z i  Z d Z e Z e Z d e f d „  ƒ  YZ  d Z! e  ƒ  Z e Z" e j# j$ Z% e j j& j' Z' e j j& j( Z( e j j& j) Z) e j j& j* Z* e j j& j+ Z+ e j j, j- Z- e j j, j. Z. e j j j, Z/ e j j0 j1 Z1 e j j0 j2 Z2 e j j0 j3 Z3 e j j0 j4 Z4 e j j5 j6 Z6 e j j5 j7 Z7 e j j5 j8 Z8 e j j5 j9 Z9 e j j5 j: Z: e j j5 j; Z; e j j5 j< Z< e j j5 j= Z= e j j5 j> Z> e j j? j@ Z@ e j j5 jA ZA e j j5 jB ZB e j j5 jC ZC e j j5 jD ZD e j jE jF ZF e
 jG ZG e j jH jI ZI e j jJ jK ZK e j jJ jL ZL e jM jM jN ZN e jM jO jP ZP e jM jQ jR ZR e j jS jT ZT e j jS jU ZU e j jJ jV ZV e j jJ jW ZW e jX jX e j j5 jY ƒ ZY e jX jX e j j5 jZ ƒ ZZ e jX jX e j jE j[ ƒ Z[ e jX jX e j jE j\ ƒ Z\ e jX jX e j jE j] ƒ Z] e jX jX e j jE j^ ƒ Z^ e jX jX e j jE j_ ƒ Z_ e jX jX e j jE j` ƒ Z` e jX jX e j jE ja ƒ Za e jX jX e j jE jb ƒ Zb e jX jX e j jc jd ƒ Zd e jX jX e j jc je ƒ Ze e jX jX e j jc jf ƒ Zf e jX jX e j jc jg ƒ Zg e jX jX e j jc jh ƒ Zh e jX jX e j jc ji ƒ Zi e jX jX e j jc jj ƒ Zj e jX jX e j jk jl ƒ Zl e jX jX e j jk jm ƒ Zm e jX jX e j jk jn ƒ Zn e jX jX e j jk jo ƒ Zo e jX jX e j jk jp ƒ Zp e jX jX e j jk jq ƒ Zq e jX jX e j jk jr ƒ Zr e jX jX e j jc js ƒ Zs e jX jX e j jc jt ƒ Zt e jX jX e j jc ju ƒ Zv e jX jX e j jc jw ƒ Zw e jx jy Zz Zy e jx j{ Z| Z{ e jx j} Z} e j~ j Z e j€ j Z e j€ j‚ Z‚ e j! jƒ Zƒ e j# j„ Z„ d e… d f d	 „  ƒ  YZ† e† e j j5 j‡ d
 d d ƒZˆ e† e j j5 j‡ d d d ƒZ‰ e† e j j5 j‡ d d d ƒZŠ e† e j j5 j‹ d d d d d ƒZ‹ e d „ ZŒ d „  Z e jŽ j Z e jŽ j ZŽ d  d l j‘ Z e j’ Z“ e j” Z” d Z• e Z– e Z— ey d d d d d d d d d d e j˜ d e j™ d d d e d d d e d  e d! e d" e d# d d$ d d% d d& d' d( e d) d d* d d+ d, d- e d. d/ d0 d1 d2 d3 d4 d, d5 d, d6 d d7 e ƒZš d8 „  Z› e d9 „ Zœ d Z d Zž d; ZŸ i  Z  e¡ ƒ  Z¢ e¡ ƒ  Z£ e¤ ƒ  Z¥ d Z¦ d Z§ d Z¨ e Z© e Z d Zª d Z« d  d l¬ Z¬ d  d l­ Z­ d: „  Z® [® d S(<   iÿÿÿÿ(   t   print_function(   t   *Nt    t   _Configc           B  sD   e  Z d  „  Z d „  Z d d d „ Z d „  Z d „  Z d „  Z RS(   c         C  s   d  S(   N(   t   None(   t   self(    (    s   renpy/defaultstore.pyt   __getstate__L   s    c         C  s   d  S(   N(    (   R   t   data(    (    s   renpy/defaultstore.pyt   __setstate__O   s    c         C  s-   t  |  | | ƒ t j j | | | f ƒ d  S(   N(   t   setattrt   _configt   helpt   append(   R   t   namet   defaultt   catR   (    (    s   renpy/defaultstore.pyt   registerR   s    c         C  s3   t  t ƒ } | | k r+ t d | ƒ ‚ n  | | S(   Ns0   config.%s is not a known configuration variable.(   t   varsR
   t	   Exception(   R   R   t   cvars(    (    s   renpy/defaultstore.pyt   __getattr__V   s    c         C  s¡   t  t ƒ } | | k r7 t j j r7 t d | ƒ ‚ n  | d k rV t j j | ƒ n  | d k r“ | d k r“ | t j _ t j j	 t j _
 d  Sn  | | | <d  S(   Ns0   config.%s is not a known configuration variable.t   script_versiont	   developert   auto(   R   R
   t   renpyt   configt   lockedR   t   storet   _set_script_versiont   original_developert   default_developerR   (   R   R   t   valueR   (    (    s   renpy/defaultstore.pyt   __setattr__^   s    c         C  s/   t  j j r t d ƒ ‚ n t t  j | ƒ d  S(   Ns2   Deleting configuration variables is not supported.(   R   R   R   R   t   delattr(   R   R   (    (    s   renpy/defaultstore.pyt   __delattr__o   s    N(	   t   __name__t
   __module__R   R   R   R   R   R    R"   (    (    (    s   renpy/defaultstore.pyR   J   s   				t   _layout_classt   objectc           B  s#   e  Z d  Z d d „ Z d „  Z RS(   sM   
    This is used to generate declarative versions of MultiBox and Grid.
    i    c         K  s(   | |  _  | |  _ | |  _ | |  _ d  S(   N(   t   clst   nargst   extra_kwargst   __doc__(   R   R'   t   docR(   R)   (    (    s   renpy/defaultstore.pyt   __init__é   s    			c         O  sv   | |  j   } | |  j  } |  j j ƒ  } | j | ƒ |  j | | Ž  } x' | D] } | j t j j | ƒ ƒ qO W| S(   N(	   R(   R)   t   copyt   updateR'   t   addR   t   easyt   displayable(   R   t   argst
   propertiest   conargst   kidst   kwargst   rvt   i(    (    s   renpy/defaultstore.pyt   __call__ð   s    (   R#   R$   R*   R,   R9   (    (    (    s   renpy/defaultstore.pyR%   ä   s   sÀ   
:name: Fixed
:doc: disp_box
:args: (*args, **properties)

A box that fills the screen. Its members are laid out
from back to front, with their position properties
controlling their position.
t   layoutt   fixedsb   
:doc: disp_box
:args: (*args, **properties)

A box that lays out its members from left to right.
t
   horizontalse   
:doc: disp_box
:args: (*args, **properties)

A layout that lays out its members from top to bottom.
t   verticals  
:doc: disp_grid
:args: (cols, rows, *args, **properties)

Lays out displayables in a grid. The first two positional arguments
are the number of columns and rows in the grid. This must be followed
by `columns * rows` positional arguments giving the displayables that
fill the grid.
R(   i   c      	   C  s(   t  j j j |  d d | d | d | ƒS(   sí  
    :doc: disp_effects

    This transition uses a `control` displayable (almost always some sort of
    animated transform) to transition from one displayable to another. The
    transform is evaluated. The `new` displayable is used where the transform
    is opaque, and the `old` displayable is used when it is transparent.

    `alpha`
        If true, the image is composited with what's behind it. If false,
        the default, the image is opaque and overwrites what's behind it.
    g        t
   old_widgett
   new_widgett   alpha(   R   t   displayt
   transitiont   AlphaDissolve(   t   controlt   oldt   newR@   (    (    s   renpy/defaultstore.pyt
   AlphaBlend"  s    c         G  s]   t  j j |  ƒ } xD | D]< } t | t  j j j ƒ rI | d | ƒ } q | | ƒ } q W| S(   sŸ  
    :doc: disp_at

    Given a displayable `d`, applies each of the transforms in `args`
    to it. The transforms are applied in left-to-right order, so that
    the outermost transform is the rightmost argument. ::

        transform birds_transform:
             xpos -200
             linear 10 xpos 800
             pause 20
             repeat

        image birds = At("birds.png", birds_transform)
        t   child(   R   R0   R1   t
   isinstanceRA   t   motiont	   Transform(   t   dR2   R7   R8   (    (    s   renpy/defaultstore.pyt   At3  s    t
   who_prefixt
   who_suffixt   what_prefixt   what_suffixt   show_functiont   predict_functiont	   conditiont   dynamict   imaget   interactt   slowt   slow_abortablet   afmt   ctct	   ctc_pauset   ctc_timedpauset   ctc_positiont   nestledt   all_at_oncet	   with_nonet   callbackt   typet   sayt   advancet	   who_stylet	   say_labelt
   what_stylet   say_dialoguet   window_stylet
   say_windowt   screent   modet	   voice_tagt   kindc         C  s1   t  |  d t ƒ}  y |  j | ƒ Wn n Xd  S(   NRo   (   t	   Charactert   advt   predict(   t   whot   what(    (    s   renpy/defaultstore.pyt   predict_sayŽ  s
    c         O  s,   t  |  d t ƒ}  |  | d | | | Žd  S(   NRo   RW   (   Rp   Rq   (   Rs   Rt   RW   R2   R6   (    (    s   renpy/defaultstore.pyRd   –  s    c           C  s    t  t t t t t t d  S(   N(   t   uit   imR&   t   ranget   sortedt   ost   sys(    (    (    s   renpy/defaultstore.pyt
   public_apiÅ  s    (    (¯   t
   __future__R    t   renpy.minstoret   renpy.displayR   t
   renpy.textt   renpy.display.imRA   Rw   t   renpy.display.animt   animR   t   _restartt   _returnt   _argst   _kwargst   Falset   _windowt   _window_subtitlet   Truet	   _rollbackt   _begin_rollbackt	   _skippingt   _dismiss_pauseR   R
   t   _widget_by_idt   _widget_propertiest
   _text_rectt   _menut	   main_menuR&   R   t   stylet   libraryt   pythont   py_evalt   evalt   behaviort   Bart   Buttont   ImageButtont   Inputt
   TextButtonRV   t   ImageReferencet   DynamicImaget   Imaget	   imageliket   Framet   Borderst   Solidt   FileCurrentScreenshotR:   t   LiveCompositet   LiveCropt   LiveTilet	   Compositet   Cropt   Tilet   Flattent   Nullt   Windowt   viewportt   Viewportt   DynamicDisplayablet   ConditionSwitcht   ShowingSwitcht	   AlphaMaskRJ   RK   t	   Animationt   videot   Moviet   particlet	   Particlest   SnowBlossomt   textt   Textt   extrast   ParameterizedTextt   fontt	   FontGroupt   dragdropt   Dragt	   DragGroupt   Spritet   SpriteManagert   curryt   Alphat   Positiont   Pant   Movet   Motiont   Revolvet   Zoomt   RotoZoomt
   FactorZoomt   SizeZoomRB   t   Fadet   Dissolvet   ImageDissolveRC   t   CropMovet   PushMovet	   Pixellatet   movetransitiont   OldMoveTransitiont   MoveTransitiont   MoveFactoryt   MoveInt   MoveOutt	   ZoomInOutt   RevolveInOutt   MultipleTransitiont   ComposeTransitiont   NoTransitiont   Pauset   SubTransitiont	   charactert   ADVCharactert
   ADVSpeakerRp   t   Speakert   DynamicCharactert
   persistentt   MultiPersistentRv   t   Actiont   BarValuet   Stylet
   NoRollbackt   __builtins__R%   t   MultiBoxt   Fixedt   HBoxt   VBoxt   GridRG   RM   t   colort   Colort   renpy.exportst   exportst   display_menut   menut   predict_menut   default_transitiont   mouse_visiblet   suppress_overlayt   show_display_sayt   predict_show_display_sayRq   Ru   Rd   t   _last_say_whot   _last_say_whatt   _last_say_argst   _last_say_kwargst   sett   _cache_pin_sett   _predict_sett   dictt   _predict_screent   _overlay_screenst
   _in_replayt   _side_image_attributest   _side_image_attributes_resett   _ignore_actiont
   _quit_slotR{   Rz   R|   (    (    (    s   renpy/defaultstore.pyt   <module>   sR  
	-														
