Add a location picker for selecting a location in a town or outdoor sector.
It's currently used in special node editing and in advanced town details.
This commit is contained in:
19
rsrc/dialogs/choose-location.xml
Normal file
19
rsrc/dialogs/choose-location.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||||
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
|
||||
<dialog defbtn='done'>
|
||||
<pict name='mainpic' type='dlog' num='16' top='6' left='6'/>
|
||||
<text name='prompt' anchor='mainpic' relative='pos pos-in' size='large' top='0' left='12' width='248' height='14'>Select a location:</text>
|
||||
<tilemap name='map' anchor='mainpic' relative='pos-in pos' framed='true' top='8' left='0' rows='18' cols='18'>
|
||||
<pict framed='false' type='map' num='0' top='0' left='0'/>
|
||||
</tilemap>
|
||||
<!-- The name begins with Z to ensure it's drawn on top of the map picts, whose auto-generated names begin with X -->
|
||||
<pict name='zpointer' type='item' anchor='map' relative='pos-in' size='small' outline='double' filled='false' num='131' top='3' left='3'/>
|
||||
<text name='help' anchor='left' relative='pos-in pos' top='0' left='6' width='422' height='16'>Click on a space to select.<br/>Use arrows to change pages.</text>
|
||||
<button name='left' anchor='map' relative='pos-in pos' type='left' top='10' left='0' def-key='left'/>
|
||||
<button name='down' anchor='left' relative='pos pos-in' type='down' top='0' left='121' def-key='down'/>
|
||||
<button name='right' anchor='down' relative='pos pos-in' type='right' top='0' left='121' def-key='right'/>
|
||||
<button name='cancel' anchor='done' relative='neg pos-in' type='regular' top='0' left='67' def-key='esc'>Cancel</button>
|
||||
<button name='done' anchor='right' relative='pos-in pos' type='done' top='4' left='0'/>
|
||||
<button name='up' anchor='down' relative='pos-in neg' type='up' top='473' left='0' def-key='up'/>
|
||||
<button name='switch' anchor='right' relative='pos-in neg' type='regular' top='473' left='0'>Switch</button>
|
||||
</dialog>
|
@@ -35,16 +35,16 @@
|
||||
<text relative='pos-in' anchor='exits' top='3' left='3' width='197' height='15'>Exit town locations:</text>
|
||||
<text name='exit-x' relative='pos-in pos' rel-anchor='prev' top='4' left='100' width='35' height='15'>X</text>
|
||||
<text name='exit-y' relative='pos pos-in' rel-anchor='prev' top='0' left='12' width='35' height='15'>Y</text>
|
||||
<text name='exit1' relative='pos-in pos' anchor='exit-x' top='4' left='-100' width='96' height='15'>Top</text>
|
||||
<button name='exit1' relative='pos-in pos' anchor='exit-x' type='tiny' top='4' left='-100' width='96' height='15' text-size='10'>Top</button>
|
||||
<field name='exit1-x' relative='pos-in pos' anchor='exit-x' top='4' left='-8' width='39' height='16'/>
|
||||
<field name='exit1-y' relative='pos-in pos' anchor='exit-y' top='4' left='-8' width='39' height='16'/>
|
||||
<text name='exit2' relative='pos-in pos' anchor='exit1' top='9' left='0' width='96' height='15'>Left</text>
|
||||
<button name='exit2' relative='pos-in pos' anchor='exit1' type='tiny' top='9' left='0' width='96' height='15' text-size='10'>Left</button>
|
||||
<field name='exit2-x' relative='pos-in pos' anchor='exit1-x' top='8' left='0' width='39' height='16'/>
|
||||
<field name='exit2-y' relative='pos-in pos' anchor='exit1-y' top='8' left='0' width='39' height='16'/>
|
||||
<text name='exit3' relative='pos-in pos' anchor='exit2' top='9' left='0' width='96' height='15'>Bottom</text>
|
||||
<button name='exit3' relative='pos-in pos' anchor='exit2' type='tiny' top='9' left='0' width='96' height='15' text-size='10'>Bottom</button>
|
||||
<field name='exit3-x' relative='pos-in pos' anchor='exit2-x' top='8' left='0' width='39' height='16'/>
|
||||
<field name='exit3-y' relative='pos-in pos' anchor='exit2-y' top='8' left='0' width='39' height='16'/>
|
||||
<text name='exit4' relative='pos-in pos' anchor='exit3' top='9' left='0' width='96' height='15'>Right</text>
|
||||
<button name='exit4' relative='pos-in pos' anchor='exit3' type='tiny' top='9' left='0' width='96' height='15' text-size='10'>Right</button>
|
||||
<field name='exit4-x' relative='pos-in pos' anchor='exit3-x' top='8' left='0' width='39' height='16'/>
|
||||
<field name='exit4-y' relative='pos-in pos' anchor='exit3-y' top='8' left='0' width='39' height='16'/>
|
||||
<button name='exit-help' type='help' relative='neg-in pos-in' anchor='exits' top='2' left='18'/>
|
||||
|
Reference in New Issue
Block a user