Dialog formatting

- Newlines at end of file
- Remove debug attribute
- Indentation in the XSL
This commit is contained in:
2015-10-03 02:50:44 -04:00
parent 84dc913241
commit 893fa1e4ff
159 changed files with 219 additions and 203 deletions

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='dark' defbtn='cast' debug='true'>
<dialog skin='dark' defbtn='cast'>
<!-- Unexpected button control -->
<pict name='pic' type='dlog' num='12' top='9' left='9'/>
<text size='large' top='6' left='54' width='139' height='18'>Select a Spell:</text>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!-- OK button -->
<field name='from' type='uint' top='99' left='205' width='64' height='17'>0</field>
<field name='to' type='uint' top='125' left='205' width='64' height='17'>0</field>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='done' debug='true'>
<dialog defbtn='done'>
<pict name='mainpic' type='dlog' num='16' top='6' left='6'/>
<text name='prompt' size='large' top='6' left='50' width='248' height='14'>Select a graphic:</text>
<group name='group'>

View File

@@ -71,6 +71,7 @@
<xsl:template match='pict'>
<div>
<xsl:attribute name='class'>
pict
<xsl:if test='@framed = "true" or not(@framed)'>framed </xsl:if>
@@ -118,11 +119,13 @@
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</div>
</xsl:template>
<xsl:template match='button'>
<div>
<xsl:attribute name='class'>
<xsl:if test='/dialog/@debug = "true" and @type = "tiny"'>debug</xsl:if>
button <xsl:value-of select='./@type'/>
@@ -145,11 +148,13 @@
</xsl:if>
</xsl:attribute>
<xsl:value-of select='.'/>
</div>
</xsl:template>
<xsl:template match='led'>
<div>
<xsl:attribute name='class'>
led
<xsl:if test='/dialog/@debug = "true"'>debug</xsl:if>
@@ -174,11 +179,13 @@
<xsl:call-template name='set-bounds'/>
</xsl:attribute>
<xsl:value-of select='.'/>
</div>
</xsl:template>
<xsl:template match='group/led'>
<div>
<xsl:attribute name='class'>
led
<xsl:if test='/dialog/@debug = "true"'>debug</xsl:if>
@@ -203,11 +210,13 @@
<xsl:call-template name='set-bounds'/>
</xsl:attribute>
<xsl:value-of select='.'/>
</div>
</xsl:template>
<xsl:template match='text'>
<div>
<xsl:attribute name='class'>
text
<xsl:if test='@framed = "true"'>framed </xsl:if>
@@ -235,27 +244,33 @@
</xsl:when>
</xsl:choose>
</xsl:for-each>
</div>
</xsl:template>
<xsl:template match='field'>
<div class='tfield'>
<xsl:attribute name='style'>
<xsl:call-template name='set-bounds'/>
</xsl:attribute>
<div class='tfield-inner'>
<xsl:attribute name='style'>
width: <xsl:value-of select='./@width'/>px; height: <xsl:value-of select='./@height'/>px;
font-family: 'DejaVu Sans', Geneva;
font-size: 12px;
</xsl:attribute>
(<xsl:value-of select='@name'/>)
</div>
</div>
</xsl:template>
<xsl:template match='stack'>
<div class='stack'>
<xsl:attribute name='style'>
color: <xsl:value-of select='./@color'/> <xsl:value-of select='/dialog/@fore'/>;
font-family: <xsl:value-of select='./@font'/>;
@@ -269,6 +284,7 @@
<xsl:template match='pane'>
<div>
<xsl:attribute name='class'>
pane
<xsl:if test='@framed = "true"'>framed </xsl:if>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<field name='town1' type='int' top='100' left='214' width='67' height='16'/>
<field name='town2' type='int' top='128' left='214' width='67' height='16'/>
<field name='town3' type='int' top='156' left='214' width='67' height='16'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='okay' debug='true'>
<dialog defbtn='okay'>
<field name='str1' top='55' left='57' width='545' height='48'/>
<field name='str2' top='111' left='57' width='545' height='48'/>
<field name='str3' top='167' left='57' width='545' height='48'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<field name='town1' type='int' top='143' left='214' width='67' height='16'/>
<field name='town2' type='int' top='171' left='214' width='67' height='16'/>
<field name='town3' type='int' top='199' left='214' width='67' height='16'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<button name='okay' type='regular' top='281' left='471'>OK</button>
<button name='cancel' type='regular' top='281' left='405' def-key='esc'>Cancel</button>
<text name='use-title' top='140' left='8' width='135' height='13'>Item use properties</text>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<field name='item1' type='uint' top='188' left='73' width='39' height='16'/>
<field name='item2' type='uint' top='216' left='73' width='39' height='16'/>
<field name='item3' type='uint' top='244' left='73' width='39' height='16'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!--
TODO: Assign numeric types (type = 'int' or 'uint') to fields as appropriate
-->

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!--
TODO: Assign numeric types (type = 'int' or 'uint') to fields as appropriate
-->

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!-- OK button -->
<field name='name' top='51' left='162' width='151' height='16'/>
<button name='okay' type='regular' top='295' left='354'>OK</button>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!-- OK button -->
<field name='onmeet' top='216' left='361' width='46' height='16'/>
<field name='onwin' top='259' left='361' width='46' height='16'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!-- OK button -->
<field name='title' top='42' left='174' width='189' height='16'/>
<field name='dunno' top='66' left='254' width='246' height='43'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!-- OK button -->
<button name='okay' type='regular' top='195' left='316'>OK</button>
<pict name='pic' type='dlog' num='16' top='8' left='12'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='okay' debug='true'>
<dialog defbtn='okay'>
<pict type='dlog' num='16' top='8' left='8'/>
<text size='large' top='8' left='50' width='100' height='17'>Editing Quests</text>
<text top='8' left='200' width='100' height='16'>Quest number:</text>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!--
TODO: Assign numeric types (type = 'int' or 'uint') to fields as appropriate
-->

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<field name='ver1' type='uint' top='80' left='181' width='43' height='16'/>
<field name='ver2' type='uint' top='80' left='234' width='43' height='16'/>
<field name='ver3' type='uint' top='80' left='287' width='43' height='16'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!-- OK button -->
<field name='time1' top='133' left='130' width='67' height='16'/>
<field name='time2' top='161' left='130' width='67' height='16'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='okay' debug='true'>
<dialog defbtn='okay'>
<pict type='dlog' num='16' top='8' left='8'/>
<text size='large' top='8' left='50' width='150' height='17'>Editing Shop Entry</text>
<text name='item' framed='true' top='50' left='10' width='200' height='16'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='okay' debug='true'>
<dialog defbtn='okay'>
<pict type='dlog' num='16' top='8' left='8'/>
<text size='large' top='8' left='50' width='150' height='17'>Editing Shop Entry</text>
<text top='50' left='10' width='100' height='16'>Name:</text>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='okay' debug='true'>
<dialog defbtn='okay'>
<pict type='dlog' num='16' top='8' left='8'/>
<text size='large' top='8' left='50' width='200' height='17'>Editing Shop</text>
<text top='8' left='250' width='100' height='16'>Shop number:</text>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!-- OK button -->
<field name='text' top='34' left='55' width='293' height='98'/>
<button name='cancel' type='regular' top='141' left='222' def-key='esc'>Cancel</button>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<field name='name' top='57' left='195' width='252' height='16'/>
<field name='descr' top='84' left='195' width='252' height='104'/>
<field name='spec' type='int' top='249' left='268' width='87' height='16'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!-- OK button -->
<field name='who' top='26' left='186' width='64' height='16'/>
<field name='key1' top='54' left='165' width='52' height='16'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' fore='black' debug='true' defbtn='done'>
<dialog skin='light' fore='black' defbtn='done'>
<!--
TODO: Assign numeric types (type = 'int' or 'uint') to fields as appropriate
-->

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='okay' debug='true'>
<dialog defbtn='okay'>
<field name='text' type='text' top='40' left='55' width='293' height='98'/>
<button name='left' type='left' top='147' left='6'/>
<button name='right' type='right' top='147' left='69'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!-- OK button -->
<field name='onexit1' top='77' left='308' width='67' height='16'/>
<field name='onexit2' top='105' left='308' width='67' height='16'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!-- OK button -->
<field name='name' top='29' left='186' width='151' height='16'/>
<field name='chop' top='77' left='327' width='43' height='16'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!-- OK button -->
<field name='time1' top='122' left='146' width='67' height='16'/>
<field name='time2' top='150' left='146' width='67' height='16'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!--
TODO: Assign numeric types (type = 'int' or 'uint') to fields as appropriate
-->

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!-- OK button -->
<field name='group1-monst1' top='137' left='174' width='39' height='16'/>
<field name='group1-monst2' top='165' left='174' width='39' height='16'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='okay' debug='true'>
<dialog defbtn='okay'>
<!--
TODO: Assign numeric types (type = 'int' or 'uint') to fields as appropriate
-->

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='okay' debug='true'>
<dialog defbtn='okay'>
<field name='talk' top='189' left='149' width='67' height='16'/>
<button name='talk-edit' type='regular' top='186' left='228'>Choose</button>
<text name='picnum' top='189' left='375' width='40' height='16'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='done' debug='true'>
<dialog defbtn='done'>
<pict type='dlog' num='3' top='9' left='9'/>
<text size='large' top='9' left='54' width='161' height='19'>THE JOB BOARD:</text>
<text top='9' left='230' width='92' height='19'>Current day:</text>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<field name='name' top='34' left='351' width='125' height='32'>Scenario name</field>
<field name='author' top='96' left='351' width='125' height='16'>Your name</field>
<button name='okay' type='regular' top='205' left='424'>OK</button>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!-- OK Button -->
<field name='out-w' type='uint' top='99' left='309' width='75' height='16'>1</field>
<field name='out-h' type='uint' top='125' left='309' width='75' height='16'>1</field>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!-- OK Button -->
<field name='name' top='85' left='140' width='152' height='16'>Town name</field>
<button name='okay' type='regular' top='221' left='264'>OK</button>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='dark' defbtn='done' debug='true'>
<dialog skin='dark' defbtn='done'>
<text size='large' top='9' left='55' width='181' height='16'>Special Characteristics:</text>
<pict type='dlog' num='7' top='6' left='6'/>
<button name='done' type='done' top='349' left='423'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='done' debug='true'>
<dialog defbtn='done'>
<pict type='dlog' num='21' top='8' left='8'/>
<text name='name' framed='true' top='9' left='55' width='257' height='19'/>
<text name='descr' framed='true' top='39' left='55' width='257' height='87'/>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!-- OK Button -->
<field name='town' top='148' left='224' width='52' height='16'/>
<button name='okay' type='regular' top='181' left='278'>OK</button>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!-- OK button -->
<button name='okay' type='regular' top='136' left='229'>OK</button>
<button name='cancel' type='regular' def-key='esc' top='136' left='164'>Cancel</button>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!-- OK button -->
<field type='uint' name='town' top='58' left='102' width='62' height='16'/>
<button name='okay' type='regular' top='82' left='177'>OK</button>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<dialog skin='light' defbtn='okay'>
<!-- OK button -->
<field type='uint' name='town' top='71' left='119' width='62' height='16'/>
<button name='okay' type='regular' top='95' left='206'>OK</button>

View File

@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='okay' debug='true'>
<dialog defbtn='okay'>
<button name='okay' type='regular' top='276' left='232'>OK</button>
<pict type='dlog' num='21' top='6' left='6'/>
<text name='title' size='large' top='6' left='50' width='300' height='17'>Map of Somewhere:</text>