]> git.localhorst.tv Git - l2e.git/blobdiff - test-data/test.l2s
moved menu prototypes to test.l2s
[l2e.git] / test-data / test.l2s
index 28a08ee310375adcd9845ee05e64ae2eec8e7653..65da87aa79be409fc4cba66d7242ec9a50007aae 100644 (file)
@@ -1,3 +1,7 @@
+include "ikaris.l2s"
+include "items.l2s"
+include "spells.l2s"
+
 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>
 }
 
@@ -54,7 +57,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 +66,7 @@ export Monster lizard {
 }
 
 Sprite maximSprite {
-       image: "test-data/maxim.png",
+       image: :"maxim.png",
        size: <64,64>
 }
 export Hero maxim {
@@ -130,7 +133,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 +142,7 @@ export Hero maxim {
 }
 
 Sprite selanSprite {
-       image: "test-data/selan.png",
+       image: :"selan.png",
        size: <64,64>
 }
 export Hero selan {
@@ -200,7 +203,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 +212,7 @@ export Hero selan {
 }
 
 Sprite guySprite {
-       image: "test-data/guy.png",
+       image: :"guy.png",
        size: <64,64>
 }
 export Hero guy {
@@ -253,7 +256,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 +265,7 @@ export Hero guy {
 }
 
 Sprite dekarSprite {
-       image: "test-data/dekar.png",
+       image: :"dekar.png",
        size: <64,64>
 }
 export Hero dekar {
@@ -324,7 +327,7 @@ export Hero dekar {
        },
        meleeAnimation: SimpleAnimation {
                sprite: Sprite {
-                       image: "test-data/melee-dekar.png",
+                       image: :"melee-dekar.png",
                        size: <96,96>
                },
                frametime: twoFramesTime,
@@ -333,30 +336,30 @@ export Hero dekar {
 }
 
 export Sprite swapCursor {
-       image: "test-data/swap-cursor.png",
+       image: :"swap-cursor.png",
        size: <32,32>
 }
 export Sprite attackIcons {
-       image: "test-data/attack-type-icons.png",
+       image: :"attack-type-icons.png",
        size: <32,32>
 }
 export Sprite attackChoiceIcons {
-       image: "test-data/attack-choice-icons.png",
+       image: :"attack-choice-icons.png",
        size: <16,16>
 }
 export Sprite moveIcons {
-       image: "test-data/move-icons.png",
+       image: :"move-icons.png",
        size: <32,32>
 }
 
 export Frame titleFrame {
-       image: "test-data/title-frame.png",
+       image: :"title-frame.png",
        border: <16,16>
 }
 
 export Font largeFont {
        sprite: Sprite {
-               image: "test-data/large-font.png",
+               image: :"large-font.png",
                size: <16,32>
        },
        rowoffset: -2
@@ -404,48 +407,49 @@ export ComplexAnimation numberAnimationPrototype {
        ]
 }
 export Sprite bigNumbers {
-       image: "test-data/big-numbers.png",
+       image: :"big-numbers.png",
        size: <16,32>
 }
 export Sprite bigGreenNumbers {
-       image: "test-data/big-green-numbers.png",
+       image: :"big-green-numbers.png",
        size: <16,32>
 }
 
 export Sprite heroTagLabels {
-       image: "test-data/hero-tag-sprites.png",
+       image: :"hero-tag-sprites.png",
        size: <32,16>
 }
 export Font heroTagFont {
        sprite: Sprite {
-               image: "test-data/numbers.png",
+               image: :"numbers.png",
                size: <16,16>
        },
        rowoffset: -3
 }
 
 export Frame activeHeroTagFrame {
-       image: "test-data/tag-frames.png",
+       image: :"tag-frames.png",
        border: <16,16>
 }
 export Frame heroTagFrame {
-       image: "test-data/tag-frames.png",
+       image: :"tag-frames.png",
        border: <16,16>,
        offset: < 0,33>
 }
 
 export Frame smallHeroTagFrame {
-       image: "test-data/small-tag-frame.png",
+       image: :"small-tag-frame.png",
        border: <8,16>
 }
 export Frame lastSmallHeroTagFrame {
-       image: "test-data/small-tag-frame.png",
+       image: :"small-tag-frame.png",
        border: <8,16>,
        offset: <0,33>
 }
+export Color heroesBgColor (24, 40, 49)
 
 export Gauge healthGauge {
-       image: "test-data/gauges.png",
+       image: :"gauges.png",
        full:  <0,16>,
        empty: <0, 0>,
        height: 16,
@@ -454,7 +458,7 @@ export Gauge healthGauge {
        end:     6
 }
 export Gauge manaGauge {
-       image: "test-data/gauges.png",
+       image: :"gauges.png",
        full:  <0,32>,
        empty: <0, 0>,
        height: 16,
@@ -463,7 +467,7 @@ export Gauge manaGauge {
        end:     6
 }
 export Gauge ikariGauge {
-       image: "test-data/gauges.png",
+       image: :"gauges.png",
        full:  <0,48>,
        empty: <0, 0>,
        height: 16,
@@ -473,103 +477,87 @@ export Gauge ikariGauge {
 }
 
 export Frame selectFrame {
-       image: "test-data/select-frame.png",
+       image: :"select-frame.png",
        border: <16,16>
 }
 export Font normalFont {
        sprite: Sprite {
-               image: "test-data/normal-font.png",
+               image: :"normal-font.png",
                size: <16,16>
        },
        rowoffset: -2
 }
 export Font disabledFont {
        sprite: Sprite {
-               image: "test-data/disabled-font.png",
+               image: :"disabled-font.png",
                size: <16,16>
        },
        rowoffset: -2
 }
 export Sprite handCursor {
-       image: "test-data/cursor-hand.png",
+       image: :"cursor-hand.png",
        size: <32,32>
 }
 
 export Sprite weaponTargetCursor {
-       image: "test-data/targeting-icons.png",
+       image: :"targeting-icons.png",
        size: <32,32>
 }
 export Sprite magicTargetCursor {
-       image: "test-data/targeting-icons.png",
+       image: :"targeting-icons.png",
        size: <32,32>,
        offset: <0,32>
 }
 export Sprite itemTargetCursor {
-       image: "test-data/targeting-icons.png",
+       image: :"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 MenuProperties spellMenuPrototype {
+       font: normalFont,
+       disabledFont: disabledFont,
+       cursor: handCursor,
+       charsPerEntry: 9,
+       rows: 6,
+       rowGap: 8,
+       iconSpace: 0,
+       cols: 2,
+       colGap: 32,
+       charsPerNumber: 2,
+       delimiter: ":"
 }
-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>
+
+export String itemMenuHeadline "Please choose an item."
+export MenuProperties itemMenuPrototype {
+       font: normalFont,
+       disabledFont: disabledFont,
+       cursor: handCursor,
+       charsPerEntry: 15,
+       rows: 6,
+       rowGap: 8,
+       iconSpace: 16,
+       cols: 1,
+       colGap: 32,
+       charsPerNumber: 2,
+       delimiter: ":"
 }
+
+export String ikariMenuHeadline "Please choose equipment."
+export MenuProperties ikariMenuPrototype {
+       font: normalFont,
+       disabledFont: disabledFont,
+       cursor: handCursor,
+       charsPerEntry: 12,
+       rows: 6,
+       rowGap: 8,
+       iconSpace: 16,
+       cols: 1,
+       colGap: 32,
+       charsPerAdditionalText: 12,
+       additionalTextGap: 16
+}
+export String noEquipmentText "No equip"
+
+export String escapeText "Escapes."