Remove all def-key='enter' in favour of defbtn attribute

In addition, the default button is finally properly outlined when specified with the defbtn attribute.
(It would also be outlined if specified with def-key='enter'.)
The following preset buttons (available to special nodes) now respond to the enter key:
- "Leave", "Done", "OK"
This commit is contained in:
2015-10-03 03:35:41 -04:00
parent da58f09fca
commit 8b5396c980
14 changed files with 25 additions and 37 deletions

View File

@@ -6,5 +6,5 @@
This item will be gone forever. Still drop it?
</text>
<button name='cancel' type='regular' def-key='esc' top='42' left='238'>Cancel</button>
<button name='okay' type='regular' def-key='enter' top='42' left='169'>OK</button>
<button name='okay' type='regular' top='42' left='169'>OK</button>
</dialog>

View File

@@ -100,7 +100,7 @@
<field name='map' top='62' left='495' width='80' height='16'/>
<button name='pickmap' type='regular' top='86' left='495'>Choose</button>
<text top='110' left='431' height='32' width='157'>(Enter -1 to scale down the large picture)</text>
<button name='done' type='regular' def-key='enter' top='455' left='517'>OK</button>
<button name='done' type='regular' top='455' left='517'>OK</button>
<button name='cancel' type='regular' def-key='esc' top='455' left='451'>Cancel</button>
<button name='left' type='left' top='455' left='11'/>
<button name='right' type='right' top='455' left='74'/>

View File

@@ -38,5 +38,5 @@
TODO: Originally had top=242; if it doesn't work right in-game, try reverting to that.
-->
<pict type='full' num='1300' top='232' left='284' width='275' height='100'/>
<button name='okay' type='regular' top='403' left='500' def-key='enter'>OK</button>
<button name='okay' type='regular' top='403' left='500'>OK</button>
</dialog>

View File

@@ -78,5 +78,5 @@
Very dangerous.
</text>
<pict type='field' num='14' top='265' left='250'/>
<button name='okay' type='regular' top='391' left='441' def-key='enter'>OK</button>
<button name='okay' type='regular' top='391' left='441'>OK</button>
</dialog>

View File

@@ -31,5 +31,5 @@
When you register, the documentation comes with a hint book
for the 3 Blades of Exile scenarios!
</text>
<button name='okay' type='regular' top='242' left='471' def-key='enter'>OK</button>
<button name='okay' type='regular' top='242' left='471'>OK</button>
</dialog>

View File

@@ -52,5 +52,5 @@
Press the number of the character to cast, the button by the spell,
and then the target button by the PC to cast the spell on (if needed).
</text>
<button name='okay' type='regular' top='391' left='441' def-key='enter'>OK</button>
<button name='okay' type='regular' top='391' left='441'>OK</button>
</dialog>

View File

@@ -35,5 +35,5 @@
<!-- TODO: Originally this had top=78 and height=360; if it doesn't work right in-game, try reverting to that.
-->
<pict type='full' num='1400' top='68' left='118' width='320' height='125'/>
<button name='okay' type='regular' top='381' left='424' def-key='enter'>OK</button>
<button name='okay' type='regular' top='381' left='424'>OK</button>
</dialog>

View File

@@ -33,5 +33,5 @@
TODO: Originally had width=340 and height=100; if it doesn't work right in-game, try reverting to that.
-->
<pict type='full' num='1402' top='87' left='107' width='320' height='125'/>
<button name='okay' type='regular' top='388' left='432' def-key='enter'>OK</button>
<button name='okay' type='regular' top='388' left='432'>OK</button>
</dialog>

View File

@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog>
<dialog defbtn='okay'>
<pict type='dlog' num='2' left='8' top='8'/>
<text left='52' top='4' width='255' height='18'>No room in your inventory.</text>
<button name='okay' type='regular' def-key='enter' left='249' top='30'>OK</button>
<button name='okay' type='regular' left='249' top='30'>OK</button>
</dialog>

View File

@@ -3,5 +3,5 @@
<dialog defbtn='okay'>
<pict name='ter' type='ter' num='0' top='10' left='9'/>
<text name='sign' framed='true' top='9' left='47' width='273' height='77'>Fred</text>
<button name='okay' type='done' def-key='enter' top='93' left='260'/>
<button name='okay' type='done' top='93' left='260'/>
</dialog>