A feature flag denotes whether a scenario uses the new or old format for its metadata. With the old format (legacy scenarios and openBoE scenarios created prior to this PR) everything displays in the scenario picker as before, and scenario designers get 2 text fields to display however they want, and 2 text fields that are pretty much useless.
With the new format, Author and Contact info are formatted onto the first line in the scenario picker display. The scenario designer gets 1 line to write a teaser. Fix #593 Also fix a bug where scenario ratings were appearing as integers ingame instead of the correct "G", "PG", etc.
This commit is contained in:
@@ -2,23 +2,31 @@
|
||||
<!-- NOTE: This file should be updated to use relative positioning the next time it changes. -->
|
||||
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
|
||||
<dialog 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'/>
|
||||
<field name='who1' top='104' left='181' width='243' height='47'/>
|
||||
<field name='who2' top='159' left='181' width='243' height='47'/>
|
||||
<field name='contact' top='214' left='181' width='243' height='65'/>
|
||||
<button name='okay' type='regular' top='528' left='395'>OK</button>
|
||||
<pict type='dlog' num='16' top='8' left='8'/>
|
||||
<text size='large' top='6' left='50' width='256' height='17'>Scenario Details</text>
|
||||
|
||||
<text top='23' left='50' width='372' height='53'>
|
||||
This is where you can define the various pieces of information the user will see when deciding whether or not to play your scenario.
|
||||
The meanings of all these fields are given in the documentation.
|
||||
</text>
|
||||
<text size='large' top='6' left='50' width='256' height='17'>Scenario Details</text>
|
||||
<text top='81' left='50' width='120' height='14'>Version number:</text>
|
||||
<text top='102' left='50' width='120' height='14'>Credits, Part 1:</text>
|
||||
<text top='150' left='50' width='120' height='14'>Credits, Part 2:</text>
|
||||
<text top='213' left='50' width='120' height='14'>Contact Information:</text>
|
||||
|
||||
<text name='title-label' top='65' left='50' width='120' height='14'>Title:</text>
|
||||
<field name='title' relative='pos-in pos-in' rel-anchor='prev' top='0' left='131' width='243' height='16' max-chars='30'/>
|
||||
|
||||
<text name='version-label' relative='pos-in pos-in' anchor='title-label' top='20' left='0' width='120' height='14'>Version number:</text>
|
||||
<field name='ver1' relative='pos-in neg' rel-anchor='prev' type='uint' top='1' left='131' width='43' height='16'/>
|
||||
<field name='ver2' relative='pos-in' rel-anchor='prev' type='uint' top='0' left='53' width='43' height='16'/>
|
||||
<field name='ver3' relative='pos-in' rel-anchor='prev' type='uint' top='0' left='53' width='43' height='16'/>
|
||||
|
||||
<text name='teaser1-label' top='102' left='50' width='120' height='14'>Teaser:</text>
|
||||
<field name='teaser1' top='104' left='181' width='243' height='47'/>
|
||||
<text name='teaser2-label' top='150' left='50' width='120' height='14'></text>
|
||||
<field name='teaser2' top='159' left='181' width='243' height='47'/>
|
||||
<text name='author-label' top='212' left='50' width='160' height='14'>Author:</text>
|
||||
<field name='author' top='214' left='181' width='243' height='16'/>
|
||||
<text name='contact-label' top='233' left='50' width='160' height='14'>Contact Information<br/>(optional):</text>
|
||||
<field name='contact' top='234' left='181' width='243' height='35'/>
|
||||
|
||||
<text top='285' left='50' width='50' height='14'>Rating:</text>
|
||||
<group name='rating'>
|
||||
<led name='rate1' state='off' top='288' left='107'>G</led>
|
||||
@@ -26,6 +34,7 @@
|
||||
<led name='rate3' state='off' top='322' left='107'>R</led>
|
||||
<led name='rate4' state='off' top='339' left='107'>NC-17</led>
|
||||
</group>
|
||||
|
||||
<text top='285' left='199' width='71' height='14'>Difficulty:</text>
|
||||
<!--
|
||||
TODO: Isn't there a level cap? If so, this should probably say "30-cap" (with cap replaced with the actual cap) rather than 30+.
|
||||
@@ -36,22 +45,6 @@
|
||||
<led name='lvl3' state='off' top='322' left='281'>High Level (19-30)</led>
|
||||
<led name='lvl4' state='off' top='339' left='281'>Very High Level (30+)</led>
|
||||
</group>
|
||||
<led name='adjust' top='356' left='50' size='small'>Adjust difficulty if played by a party stronger than recommended</led>
|
||||
<text top='379' left='50' width='120' height='14'>Special on Start:</text>
|
||||
<field name='oninit' top='378' left='181' width='100' height='16'/>
|
||||
<button name='pickinit' type='large' top='374' left='290'>Create/Edit</button>
|
||||
<text top='407' left='50' width='120' height='14'>Campaign ID:</text>
|
||||
<field name='cpnid' top='406' left='181' width='100' height='16'/>
|
||||
<text top='430' left='50' width='400' height='44'>
|
||||
If your scenario is part of a campaign of several scenarios,
|
||||
the ID specified here makes it easy to carry information from one scenario to the next.
|
||||
It should be the same in each scenario in the series.
|
||||
</text>
|
||||
<text top='484' left='50' width='120' height='60'>Default backgrounds:<br/>
|
||||
Set the default patterns to be shown behind the game screen.
|
||||
</text>
|
||||
<button name='bg-out' type='tiny' top='484' left='180'>Outdoors:</button>
|
||||
<button name='bg-town' type='tiny' top='501' left='180'>In towns:</button>
|
||||
<button name='bg-dungeon' type='tiny' top='518' left='180'>In dungeons:</button>
|
||||
<button name='bg-fight' type='tiny' top='535' left='180'>In combat:</button>
|
||||
</dialog>
|
||||
|
||||
<button name='okay' type='regular' top='354' left='395'>OK</button>
|
||||
</dialog>
|
Reference in New Issue
Block a user