<?xml version="1.0" encoding="UTF-8"?>

<?context-directive job ctxfile x-setups.ctx ?>

<cd:interface xmlns:cd="http://www.pragma-ade.com/commands">

    <cd:command name="definebutton" file="scrn-but.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupbutton"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupbutton" file="scrn-but.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="state">
                    <cd:constant type="start" default="yes"/>
                    <cd:constant type="stop"/>
                </cd:parameter>
                <cd:parameter name="samepage">
                    <cd:constant type="yes" default="yes"/>
                    <cd:constant type="no"/>
                    <cd:constant type="empty"/>
                    <cd:constant type="none"/>
                    <cd:constant type="normal"/>
                    <cd:constant type="default"/>
                </cd:parameter>
                <cd:parameter name="style">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="color">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="contrastcolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="alternative">
                    <cd:constant type="hidden"/>
                </cd:parameter>
                <cd:inherit name="setupframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="setupbuttons" file="scrn-but.mkvi">
            <cd:arguments>
                <cd:resolve name="keyword-name-list-optional"/>
                <cd:assignments list="yes">
                    <cd:inherit name="setupbutton"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="button" generated="yes" variant="example" file="scrn-but.mkvi">
        <cd:sequence>
            <cd:variable value="button"/>
        </cd:sequence>
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupbutton"/>
            </cd:assignments>
            <cd:resolve name="argument-text"/>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
        <cd:instances>
            <cd:constant value="button"/>
        </cd:instances>
    </cd:command>

    <cd:command name="button" file="scrn-but.mkvi">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupbutton"/>
            </cd:assignments>
            <cd:resolve name="argument-text"/>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="overlaybutton" file="scrn-but.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="overlaybutton" variant="direct" file="scrn-but.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-reference"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPmenubuttons" file="scrn-but.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="overlayrollbutton" file="scrn-fld.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-reference"/>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="definepushbutton" file="scrn-fld.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupfieldcontentframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="pushbutton" file="scrn-fld.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="definepushsymbol" file="scrn-fld.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:keywords>
                <cd:constant type="n"/>
                <cd:constant type="r"/>
                <cd:constant type="d"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="psh" scope="interactionmenu" file="scrn-fld.mkvi">
            <cd:arguments>
                <cd:resolve name="keyword-reference"/>
                <cd:resolve name="string-text"/>
                <cd:delimiter name="\"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="psh" type="environment" scope="interactionmenu" file="scrn-fld.mkvi">
            <cd:arguments>
                <cd:resolve name="keyword-reference"/>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="rollbutton" variant="interactionmenu" file="scrn-fld.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupinteractionmenu"/>
            </cd:assignments>
            <cd:resolve name="string-text"/>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="rollbutton" variant="button" file="scrn-fld.mkvi">
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:inherit name="setupbutton"/>
            </cd:assignments>
            <cd:resolve name="string-text"/>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="rob" scope="interactionmenu" file="scrn-fld.mkvi">
            <cd:arguments>
                <cd:resolve name="keyword-reference"/>
                <cd:resolve name="string-text"/>
                <cd:delimiter name="\"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="rob" type="environment" scope="interactionmenu" file="scrn-fld.mkvi">
            <cd:arguments>
                <cd:resolve name="keyword-reference"/>
            </cd:arguments>
        </cd:command>

    -->

</cd:interface>
