Update the in-game item info dialog and restore support for long item descriptions

This commit is contained in:
2015-01-21 21:26:23 -05:00
parent 41fbd73ef9
commit e689ed93ef
7 changed files with 45 additions and 63 deletions

View File

@@ -90,4 +90,5 @@
Click Edit Abilities to edit item abilities.
</text>
<button name="abils" type='large' top='357' left='155'>Abilities</button>
<button name="desc" type='large' top='357' left='263'>Description</button>
</dialog>

View File

@@ -7,6 +7,6 @@
<text name='num' top='8' left='315' width='40' height='14'/>
<pict type='dlog' num='16' top='8' left='8'/>
<text size='large' top='6' left='50' width='138' height='17'>Editing text:</text>
<text top='8' left='197' width='111' height='14'>Text number:</text>
<text name='num-lbl' top='8' left='197' width='111' height='14'>Text number:</text>
<button name='okay' type='regular' top='141' left='279'>OK</button>
</dialog>

View File

@@ -1,32 +1,35 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<!--<!DOCTYPE dialog SYSTEM "dialog.dtd">-->
<dialog skin='dark' defbtn='done'>
<pict name='pic' type='item' num='0' top='9' left='8'/>
<text size='large' top='6' left='45' width='102'>Item Info:</text>
<text top='33' left='47' width='52' height='16'>Name:</text>
<text name='name' framed='true' top='33' left='101' width='141' height='16'/>
<text top='61' left='4' width='52' height='16'>Type:</text>
<text name='type' framed='true' top='61' left='58' width='141' height='16'/>
<text top='61' left='203' width='40' height='16'>Value:</text>
<text name='val' framed='true' top='61' left='245' width='47' height='16'/>
<text top='89' left='4' width='52' height='16'>Damage:</text>
<text name='dmg' framed='true' top='89' left='58' width='25' height='15'/>
<text top='89' left='96' width='48' height='16'>Bonus:</text>
<text name='bonus' framed='true' top='89' left='146' width='25' height='15'/>
<text top='89' left='179' width='50' height='16'>Defend:</text>
<text name='def' framed='true' top='89' left='231' width='25' height='15'/>
<text top='117' left='5' width='58' height='16'>Encumb.:</text>
<text name='enc' framed='true' top='117' left='65' width='25' height='16'/>
<text top='118' left='98' width='38' height='16'>Uses:</text>
<text name='use' framed='true' top='118' left='138' width='26' height='16'/>
<text top='118' left='179' width='74' height='16'>Item Level:</text>
<text name='lvl' framed='true' top='118' left='255' width='25' height='16'/>
<text top='168' left='7' width='52' height='16'>Ability:</text>
<text name='abil' framed='true' top='168' left='61' width='230' height='16'/>
<button name='done' type='done' top='191' left='228'/>
<button name='left' type='left' def-key='left' top='191' left='84'/>
<button name='right' type='right' def-key='right' top='191' left='153'/>
<led name='id' state='off' top='8' left='213'/>
<led name='magic' state='off' top='8' left='280'/>
<!--
TODO: This originally had width=11 height=6; if it looks wrong in-game, try reverting to that
TODO: Reinstate item descriptions
-->
<text size='large' top='192' left='8' width='0' height='0'>Description:</text>
<text name='desc' framed='true' top='210' left='8' width='12' height='6'/>
<button name='done' type='done' top='307' left='228'/>
<button name='left' type='left' def-key='left' top='307' left='84'/>
<button name='right' type='right' def-key='right' top='307' left='153'/>
<led name='id' font='bold' top='8' left='167' width='60'>Magic?</led>
<led name='magic' font='bold' top='8' left='252' width='42'>ID?</led>
<text size='large' top='192' left='8' width='100' height='15'>Description:</text>
<text name='desc' framed='true' top='210' left='8' width='283' height='90'/>
<text top='142' left='4' width='54' height='16'>Weight</text>
<text name='weight' framed='true' top='142' left='60' width='44' height='15'/>
<!--
TODO: Add the labels to the XML definition
-->
</dialog>