X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=test-data%2Ftest.l2s;h=b2fc8b6efdff02a62dd4f37bfe403d2f3ca418fc;hb=40233fc8eea1c80e6c57a004dfe7e55dabf06edb;hp=28a08ee310375adcd9845ee05e64ae2eec8e7653;hpb=9a68d1231474bbc163b97398d3e4c87cbc4fd4ba;p=l2e.git diff --git a/test-data/test.l2s b/test-data/test.l2s index 28a08ee..b2fc8b6 100644 --- a/test-data/test.l2s +++ b/test-data/test.l2s @@ -1,3 +1,7 @@ +include "ikaris.l2h" +include "items.l2h" +include "spells.l2h" + Number frameTime 33 Number twoFramesTime 66 Number fourFramesTime 132 @@ -21,8 +25,7 @@ export PartyLayout heroesLayout { } Sprite lizardSprite { - // using pathes relative to project root until path resolution is implemented - image: "test-data/monster.png", + image: :"monster.png", size: <64,64> } @@ -45,7 +48,8 @@ export Monster lizard { sprite: lizardSprite, frametime: fourFramesTime, repeat: false, - frames: [ + frames: + [ ComplexAnimationFrame { column: 0, row: 1, disposition: < 0, 16> }, { column: 0, row: 0, disposition: < 0, 16> }, { column: 0, row: 1, disposition: < 0, 16> }, @@ -54,7 +58,7 @@ export Monster lizard { }, meleeAnimation: SimpleAnimation { sprite: Sprite { - image: "test-data/attack-monster.png", + image: :"attack-monster.png", size: <96,64> }, frametime: frameTime, @@ -63,7 +67,7 @@ export Monster lizard { } Sprite maximSprite { - image: "test-data/maxim.png", + image: :"maxim.png", size: <64,64> } export Hero maxim { @@ -88,7 +92,8 @@ export Hero maxim { sprite: maximSprite, frametime: frameTime, repeat: false, - frames: [ + frames: + [ ComplexAnimationFrame { column: 1, row: 0, disposition: < 0, 0> }, { column: 1, row: 0, disposition: < 0, 0> }, { column: 1, row: 0, disposition: < 0, 0> }, @@ -122,7 +127,8 @@ export Hero maxim { sprite: maximSprite, frametime: fiveFramesTime, repeat: false, - frames: [ + frames: + [ ComplexAnimationFrame { column: 3, row: 0, disposition: < 0, 0> }, { column: 3, row: 0, disposition: < 0, 0> }, { column: 3, row: 1, disposition: < 0, 0> } @@ -130,7 +136,7 @@ export Hero maxim { }, meleeAnimation: SimpleAnimation { sprite: Sprite { - image: "test-data/melee-maxim.png", + image: :"melee-maxim.png", size: <96,96> }, frametime: twoFramesTime, @@ -139,7 +145,7 @@ export Hero maxim { } Sprite selanSprite { - image: "test-data/selan.png", + image: :"selan.png", size: <64,64> } export Hero selan { @@ -164,7 +170,8 @@ export Hero selan { sprite: selanSprite, frametime: frameTime, repeat: false, - frames: [ + frames: + [ ComplexAnimationFrame { column: 1, row: 0, disposition: < 4, 0> }, { column: 1, row: 0, disposition: < 4, 0> }, { column: 1, row: 0, disposition: < 8, 2> }, @@ -185,7 +192,8 @@ export Hero selan { sprite: selanSprite, frametime: frameTime, repeat: false, - frames: [ + frames: + [ ComplexAnimationFrame { column: 3, row: 0, disposition: < 0, 0> }, { column: 3, row: 0, disposition: < 0, 0> }, { column: 3, row: 0, disposition: < 0, 0> }, @@ -200,7 +208,7 @@ export Hero selan { }, meleeAnimation: SimpleAnimation { sprite: Sprite { - image: "test-data/melee-selan.png", + image: :"melee-selan.png", size: <96,96> }, frametime: twoFramesTime, @@ -209,7 +217,7 @@ export Hero selan { } Sprite guySprite { - image: "test-data/guy.png", + image: :"guy.png", size: <64,64> } export Hero guy { @@ -234,7 +242,8 @@ export Hero guy { sprite: guySprite, frametime: frameTime, repeat: false, - frames: [ + frames: + [ ComplexAnimationFrame { column: 1, row: 0, disposition: <-4, 0> }, { column: 1, row: 0, disposition: <-4, 0> }, { column: 1, row: 0, disposition: <-8, 0> }, @@ -253,7 +262,7 @@ export Hero guy { }, meleeAnimation: SimpleAnimation { sprite: Sprite { - image: "test-data/melee-guy.png", + image: :"melee-guy.png", size: <96,96> }, frametime: fourFramesTime, @@ -262,7 +271,7 @@ export Hero guy { } Sprite dekarSprite { - image: "test-data/dekar.png", + image: :"dekar.png", size: <64,64> } export Hero dekar { @@ -287,7 +296,8 @@ export Hero dekar { sprite: dekarSprite, frametime: frameTime, repeat: false, - frames: [ + frames: + [ ComplexAnimationFrame { column: 1, row: 0, disposition: < 4, 0> }, { column: 1, row: 0, disposition: < 8, 2> }, { column: 2, row: 0, disposition: <12, 4> }, @@ -308,7 +318,8 @@ export Hero dekar { sprite: dekarSprite, frametime: twoFramesTime, repeat: false, - frames: [ + frames: + [ ComplexAnimationFrame { column: 3, row: 0, disposition: < 0, 0> }, { column: 3, row: 0, disposition: < 0, 0> }, { column: 3, row: 0, disposition: < 0, 0> }, @@ -324,7 +335,7 @@ export Hero dekar { }, meleeAnimation: SimpleAnimation { sprite: Sprite { - image: "test-data/melee-dekar.png", + image: :"melee-dekar.png", size: <96,96> }, frametime: twoFramesTime, @@ -332,244 +343,257 @@ export Hero dekar { } } -export Sprite swapCursor { - image: "test-data/swap-cursor.png", - size: <32,32> -} -export Sprite attackIcons { - image: "test-data/attack-type-icons.png", - size: <32,32> -} -export Sprite attackChoiceIcons { - image: "test-data/attack-choice-icons.png", - size: <16,16> -} -export Sprite moveIcons { - image: "test-data/move-icons.png", +Sprite handCursor { + image: :"cursor-hand.png", size: <32,32> } -export Frame titleFrame { - image: "test-data/title-frame.png", - border: <16,16> -} - -export Font largeFont { +Font normalFont { sprite: Sprite { - image: "test-data/large-font.png", - size: <16,32> + image: :"normal-font.png", + size: <16,16> }, rowoffset: -2 } -export ComplexAnimation numberAnimationPrototype { - frametime: frameTime, - repeat: false, - frames: [ - { column: 0, row: 0, disposition: < 0, 0> }, - { column: 0, row: 0, disposition: < 0,-26> }, - { column: 0, row: 0, disposition: < 0,-42> }, - { column: 0, row: 0, disposition: < 0,-48> }, - { column: 0, row: 0, disposition: < 0,-42> }, - { column: 0, row: 0, disposition: < 0,-26> }, - { column: 0, row: 0, disposition: < 0, 0> }, - { column: 0, row: 0, disposition: < 0,-12> }, - { column: 0, row: 0, disposition: < 0,-20> }, - { column: 0, row: 0, disposition: < 0,-24> }, - { column: 0, row: 0, disposition: < 0,-20> }, - { column: 0, row: 0, disposition: < 0,-12> }, - { column: 0, row: 0, disposition: < 0, 0> }, - { column: 0, row: 0, disposition: < 0, -6> }, - { column: 0, row: 0, disposition: < 0,-10> }, - { column: 0, row: 0, disposition: < 0,-12> }, - { column: 0, row: 0, disposition: < 0,-10> }, - { column: 0, row: 0, disposition: < 0, -6> }, - { column: 0, row: 0, disposition: < 0, 0> }, - { column: 0, row: 0, disposition: < 0, 0> }, - { column: 0, row: 0, disposition: < 0, 0> }, - { column: 0, row: 0, disposition: < 0, 0> }, - { column: 0, row: 0, disposition: < 0, 0> }, - { column: 0, row: 0, disposition: < 0, 0> }, - { column: 0, row: 0, disposition: < 0, 0> }, - { column: 0, row: 0, disposition: < 0, 0> }, - { column: 0, row: 0, disposition: < 0, 0> }, - { column: 0, row: 0, disposition: < 0, 0> }, - { column: 0, row: 0, disposition: < 0, 0> }, - { column: 0, row: 0, disposition: < 0, 0> }, - { column: 0, row: 0, disposition: < 0, 0> }, - { column: 0, row: 0, disposition: < 0, 0> }, - { column: 0, row: 0, disposition: < 0,-36> }, - { column: 0, row: 0, disposition: < 0,-32> }, - { column: 0, row: 0, disposition: < 0,-18> } - ] -} -export Sprite bigNumbers { - image: "test-data/big-numbers.png", - size: <16,32> -} -export Sprite bigGreenNumbers { - image: "test-data/big-green-numbers.png", - size: <16,32> -} - -export Sprite heroTagLabels { - image: "test-data/hero-tag-sprites.png", - size: <32,16> -} -export Font heroTagFont { +Font disabledFont { sprite: Sprite { - image: "test-data/numbers.png", + image: :"disabled-font.png", size: <16,16> }, - rowoffset: -3 -} - -export Frame activeHeroTagFrame { - image: "test-data/tag-frames.png", - border: <16,16> -} -export Frame heroTagFrame { - image: "test-data/tag-frames.png", - border: <16,16>, - offset: < 0,33> -} - -export Frame smallHeroTagFrame { - image: "test-data/small-tag-frame.png", - border: <8,16> -} -export Frame lastSmallHeroTagFrame { - image: "test-data/small-tag-frame.png", - border: <8,16>, - offset: <0,33> -} - -export Gauge healthGauge { - image: "test-data/gauges.png", - full: <0,16>, - empty: <0, 0>, - height: 16, - start: 6, - repeat: 1, - end: 6 -} -export Gauge manaGauge { - image: "test-data/gauges.png", - full: <0,32>, - empty: <0, 0>, - height: 16, - start: 6, - repeat: 1, - end: 6 -} -export Gauge ikariGauge { - image: "test-data/gauges.png", - full: <0,48>, - empty: <0, 0>, - height: 16, - start: 6, - repeat: 1, - end: 6 + rowoffset: -2 } -export Frame selectFrame { - image: "test-data/select-frame.png", - border: <16,16> -} -export Font normalFont { - sprite: Sprite { - image: "test-data/normal-font.png", - size: <16,16> +export BattleResources battleResources { + swapCursor: Sprite { + image: :"swap-cursor.png", + size: <32,32> }, - rowoffset: -2 -} -export Font disabledFont { - sprite: Sprite { - image: "test-data/disabled-font.png", + attackIcons: Sprite { + image: :"attack-type-icons.png", + size: <32,32> + }, + attackChoiceIcons: Sprite { + image: :"attack-choice-icons.png", size: <16,16> }, - rowoffset: -2 -} -export Sprite handCursor { - image: "test-data/cursor-hand.png", - size: <32,32> -} - -export Sprite weaponTargetCursor { - image: "test-data/targeting-icons.png", - size: <32,32> -} -export Sprite magicTargetCursor { - image: "test-data/targeting-icons.png", - size: <32,32>, - offset: <0,32> -} -export Sprite itemTargetCursor { - image: "test-data/targeting-icons.png", - size: <32,32>, - offset: <0,64> -} - -include "test-data/spells.l2s" - -export String spellMenuHeadline "Please choose a spell." - -export Sprite potionIcon { - image: "test-data/item-icons.png", - size: <16,16> -} -export Sprite ballIcon { - image: "test-data/item-icons.png", - size: <16,16>, - offset: <0,16> -} -export Sprite crankIcon { - image: "test-data/item-icons.png", - size: <16,16>, - offset: <0,32> -} -export Sprite spearIcon { - image: "test-data/item-icons.png", - size: <16,16>, - offset: <0,48> -} -export Sprite swordIcon { - image: "test-data/item-icons.png", - size: <16,16>, - offset: <0,64> -} -export Sprite axIcon { - image: "test-data/item-icons.png", - size: <16,16>, - offset: <0,80> -} -export Sprite rodIcon { - image: "test-data/item-icons.png", - size: <16,16>, - offset: <0,96> -} -export Sprite armorIcon { - image: "test-data/item-icons.png", - size: <16,16>, - offset: <0,112> -} -export Sprite shieldIcon { - image: "test-data/item-icons.png", - size: <16,16>, - offset: <0,128> -} -export Sprite helmetIcon { - image: "test-data/item-icons.png", - size: <16,16>, - offset: <0,144> -} -export Sprite ringIcon { - image: "test-data/item-icons.png", - size: <16,16>, - offset: <0,160> -} -export Sprite jewelIcon { - image: "test-data/item-icons.png", - size: <16,16>, - offset: <0,176> -} + moveIcons: Sprite { + image: :"move-icons.png", + size: <32,32> + }, + + titleFrame: Frame { + image: :"title-frame.png", + border: <16,16> + }, + titleFont: Font { + sprite: Sprite { + image: :"large-font.png", + size: <16,32> + }, + rowoffset: -2 + }, + + numberAnimationPrototype: ComplexAnimation { + frametime: frameTime, + repeat: false, + frames: + [ ComplexAnimationFrame + { column: 0, row: 0, disposition: < 0, 0> }, + { column: 0, row: 0, disposition: < 0,-26> }, + { column: 0, row: 0, disposition: < 0,-42> }, + { column: 0, row: 0, disposition: < 0,-48> }, + { column: 0, row: 0, disposition: < 0,-42> }, + { column: 0, row: 0, disposition: < 0,-26> }, + { column: 0, row: 0, disposition: < 0, 0> }, + { column: 0, row: 0, disposition: < 0,-12> }, + { column: 0, row: 0, disposition: < 0,-20> }, + { column: 0, row: 0, disposition: < 0,-24> }, + { column: 0, row: 0, disposition: < 0,-20> }, + { column: 0, row: 0, disposition: < 0,-12> }, + { column: 0, row: 0, disposition: < 0, 0> }, + { column: 0, row: 0, disposition: < 0, -6> }, + { column: 0, row: 0, disposition: < 0,-10> }, + { column: 0, row: 0, disposition: < 0,-12> }, + { column: 0, row: 0, disposition: < 0,-10> }, + { column: 0, row: 0, disposition: < 0, -6> }, + { column: 0, row: 0, disposition: < 0, 0> }, + { column: 0, row: 0, disposition: < 0, 0> }, + { column: 0, row: 0, disposition: < 0, 0> }, + { column: 0, row: 0, disposition: < 0, 0> }, + { column: 0, row: 0, disposition: < 0, 0> }, + { column: 0, row: 0, disposition: < 0, 0> }, + { column: 0, row: 0, disposition: < 0, 0> }, + { column: 0, row: 0, disposition: < 0, 0> }, + { column: 0, row: 0, disposition: < 0, 0> }, + { column: 0, row: 0, disposition: < 0, 0> }, + { column: 0, row: 0, disposition: < 0, 0> }, + { column: 0, row: 0, disposition: < 0, 0> }, + { column: 0, row: 0, disposition: < 0, 0> }, + { column: 0, row: 0, disposition: < 0, 0> }, + { column: 0, row: 0, disposition: < 0,-36> }, + { column: 0, row: 0, disposition: < 0,-32> }, + { column: 0, row: 0, disposition: < 0,-18> } + ] + }, + bigNumberSprite: Sprite { + image: :"big-numbers.png", + size: <16,32> + }, + greenNumberSprite: Sprite { + image: :"big-green-numbers.png", + size: <16,32> + }, + + heroTagLabels: Sprite { + image: :"hero-tag-sprites.png", + size: <32,16> + }, + levelLabelCol: 0, + levelLabelRow: 0, + healthLabelCol: 0, + healthLabelRow: 1, + manaLabelCol: 0, + manaLabelRow: 2, + moveLabelCol: 0, + moveLabelRow: 3, + ikariLabelCol: 0, + ikariLabelRow: 4, + heroTagFont: Font { + sprite: Sprite { + image: :"numbers.png", + size: <16,16> + }, + rowoffset: -3 + }, + + activeHeroTagFrame: Frame { + image: :"tag-frames.png", + border: <16,16> + }, + heroTagFrame: Frame { + image: :"tag-frames.png", + border: <16,16>, + offset: < 0,33> + }, + + smallHeroTagFrame: Frame { + image: :"small-tag-frame.png", + border: <8,16> + }, + lastSmallHeroTagFrame: Frame { + image: :"small-tag-frame.png", + border: <8,16>, + offset: <0,33> + }, + heroesBgColor: (24, 40, 49), + + healthGauge: Gauge { + image: :"gauges.png", + full: <0,16>, + empty: <0, 0>, + height: 16, + start: 6, + repeat: 1, + end: 6 + }, + manaGauge: Gauge { + image: :"gauges.png", + full: <0,32>, + empty: <0, 0>, + height: 16, + start: 6, + repeat: 1, + end: 6 + }, + ikariGauge: Gauge { + image: :"gauges.png", + full: <0,48>, + empty: <0, 0>, + height: 16, + start: 6, + repeat: 1, + end: 6 + }, + + selectFrame: Frame { + image: :"select-frame.png", + border: <16,16> + }, + normalFont: normalFont, + disabledFont: disabledFont, + menuCursor: Sprite { + image: :"cursor-hand.png", + size: <32,32> + }, + + weaponTargetCursor: Sprite { + image: :"targeting-icons.png", + size: <32,32> + }, + magicTargetCursor: Sprite { + image: :"targeting-icons.png", + size: <32,32>, + offset: <0,32> + }, + itemTargetCursor: Sprite { + image: :"targeting-icons.png", + size: <32,32>, + offset: <0,64> + }, + + weaponMenuIcon: swordIcon, + armorMenuIcon: armorIcon, + shieldMenuIcon: shieldIcon, + helmetMenuIcon: helmetIcon, + ringMenuIcon: ringIcon, + jewelMenuIcon: jewelIcon, + + spellMenuHeadline: "Please choose a spell.", + spellMenuProperties: MenuProperties { + font: normalFont, + disabledFont: disabledFont, + cursor: handCursor, + charsPerEntry: 9, + rows: 6, + rowGap: 8, + iconSpace: 0, + cols: 2, + colGap: 32, + charsPerNumber: 2, + delimiter: ":" + }, + + itemMenuHeadline: "Please choose an item.", + itemMenuProperties: MenuProperties { + font: normalFont, + disabledFont: disabledFont, + cursor: handCursor, + charsPerEntry: 15, + rows: 6, + rowGap: 8, + iconSpace: 16, + cols: 1, + colGap: 32, + charsPerNumber: 2, + delimiter: ":" + }, + + ikariMenuHeadline: "Please choose equipment.", + ikariMenuProperties: MenuProperties { + font: normalFont, + disabledFont: disabledFont, + cursor: handCursor, + charsPerEntry: 12, + rows: 6, + rowGap: 8, + iconSpace: 16, + cols: 1, + colGap: 32, + charsPerAdditionalText: 12, + additionalTextGap: 16 + }, + noEquipmentText: "No equip", + + escapeText: "Escapes." +} \ No newline at end of file