]> git.localhorst.tv Git - l2e.git/blobdiff - test-data/test.l2s
tuned menu selected cusor animation
[l2e.git] / test-data / test.l2s
index 8491b37316fa9867848ba3cae311a35fa826ff14..342d98f829c4c1267ef8f27cc9ae5af76a3a035d 100644 (file)
@@ -20,7 +20,8 @@ export PartyLayout heroesLayout {
                < 48,136>,
                <128,136>,
                < 80,152>,
-               <160,152>
+               <160,152>,
+               <216,144>
        ]
 }
 
@@ -432,7 +433,7 @@ export BattleResources battleResources {
                image: :"move-icons.png",
                size: <32,32>
        },
-       
+
        titleFrame: Frame {
                image: :"title-frame.png",
                border: <16,16>
@@ -444,7 +445,7 @@ export BattleResources battleResources {
                },
                rowoffset: -2
        },
-       
+
        numberAnimationPrototype: ComplexAnimation {
                frametime: frameTime,
                repeat: false,
@@ -495,7 +496,7 @@ export BattleResources battleResources {
                image: :"big-green-numbers.png",
                size: <16,32>
        },
-       
+
        heroTagLabels: Sprite {
                image: :"hero-tag-sprites.png",
                size: <32,16>
@@ -517,7 +518,7 @@ export BattleResources battleResources {
                },
                rowoffset: -3
        },
-       
+
        activeHeroTagFrame: Frame {
                image: :"tag-frames.png",
                border: <16,16>
@@ -527,7 +528,7 @@ export BattleResources battleResources {
                border: <16,16>,
                offset: < 0,33>
        },
-       
+
        smallHeroTagFrame: Frame {
                image: :"small-tag-frame.png",
                border: <8,16>
@@ -538,7 +539,7 @@ export BattleResources battleResources {
                offset: <0,33>
        },
        heroesBgColor: (24, 40, 49),
-       
+
        healthGauge: Gauge {
                image: :"gauges.png",
                full:  <0,16>,
@@ -566,7 +567,7 @@ export BattleResources battleResources {
                repeat:  1,
                end:     6
        },
-       
+
        selectFrame: Frame {
                image: :"select-frame.png",
                border: <16,16>
@@ -577,7 +578,7 @@ export BattleResources battleResources {
                image: :"cursor-hand.png",
                size: <32,32>
        },
-       
+
        weaponTargetCursor: Sprite {
                image: :"targeting-icons.png",
                size: <32,32>
@@ -592,14 +593,14 @@ export BattleResources battleResources {
                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,
@@ -614,7 +615,7 @@ export BattleResources battleResources {
                charsPerNumber: 2,
                delimiter: ":"
        },
-       
+
        itemMenuHeadline: "Please choose an item.",
        itemMenuProperties: MenuProperties {
                font: normalFont,
@@ -629,7 +630,7 @@ export BattleResources battleResources {
                charsPerNumber: 2,
                delimiter: ":"
        },
-       
+
        ikariMenuHeadline: "Please choose equipment.",
        ikariMenuProperties: MenuProperties {
                font: normalFont,
@@ -645,7 +646,7 @@ export BattleResources battleResources {
                additionalTextGap: 16
        },
        noEquipmentText: "No equip",
-       
+
        escapeText: "Escapes."
 }
 
@@ -671,6 +672,32 @@ Sprite menuActiveCursor {
        image: :"menu-cursor-active.png",
        size: <32, 18>
 }
+SimpleAnimation menuCursorAnimation {
+       sprite: menuCursor,
+       frametime: fourFramesTime,
+       framecount: 6,
+       repeat: true
+}
+ComplexAnimation menuActiveCursorAnimation {
+       sprite: menuActiveCursor,
+       frametime: fourFramesTime,
+       repeat: true,
+       frames:
+       [ ComplexAnimationFrame
+               { row: 0 },
+               { row: 0 },
+               { row: 0 },
+               { row: 0 },
+               { row: 0 },
+               { row: 0 },
+               { row: 0 },
+               { row: 0 },
+               { row: 1 },
+               { row: 2 },
+               { row: 3 },
+               { row: 4 }
+       ]
+}
 
 export MenuResources menuResources {
        menubg: Texture {
@@ -696,7 +723,9 @@ export MenuResources menuResources {
                rowGap: 8,
                colGap: 32,
                cursor: menuCursor,
+               cursorAnimation: menuCursorAnimation,
                font: menuFont,
+               disabledFont: menuInactiveFont,
                wrapX: true,
                wrapY: true
        },
@@ -727,7 +756,9 @@ export MenuResources menuResources {
        intLabel: "INT",
        gutLabel: "GUT",
        mgrLabel: "MGR",
+       hpLabel: "HP",
        ipLabel: "IP",
+       levelLabel: "LEVEL",
        experienceLabel: "NOW EXP",
        nextLevelLabel: "NEXT LEVEL",
        statusMenu: MenuProperties {
@@ -736,6 +767,7 @@ export MenuResources menuResources {
                charsPerEntry: 6,
                colGap: 16,
                cursor: menuCursor,
+               cursorAnimation: menuCursorAnimation,
                font: menuFont,
                wrapX: true
        },
@@ -749,6 +781,8 @@ export MenuResources menuResources {
                colGap: 16,
                cursor: menuCursor,
                selectedCursor: menuActiveCursor,
+               cursorAnimation: menuCursorAnimation,
+               selectedCursorAnimation: menuActiveCursorAnimation,
                font: menuFont,
                wrapX: true,
                wrapY: true
@@ -756,6 +790,7 @@ export MenuResources menuResources {
        itemMenuUseText: "USE",
        itemMenuSortText: "SORT",
        itemMenuDropText: "DROP",
+       itemMenuSelectText: "SELECT",
        inventoryMenu: MenuProperties {
                cols: 1,
                rows: 6,
@@ -763,11 +798,14 @@ export MenuResources menuResources {
                rowGap: 8,
                cursor: menuCursor,
                selectedCursor: menuActiveCursor,
+               cursorAnimation: menuCursorAnimation,
+               selectedCursorAnimation: menuActiveCursorAnimation,
                font: menuFont,
                disabledFont: menuInactiveFont,
                iconSpace: 16,
                charsPerNumber: 2,
-               delimiter: ":"
+               delimiter: ":",
+               thirdColumnHack: 1
        },
        spellMenu: MenuProperties {
                cols: 2,
@@ -777,6 +815,8 @@ export MenuResources menuResources {
                colGap: 48,
                cursor: menuCursor,
                selectedCursor: menuActiveCursor,
+               cursorAnimation: menuCursorAnimation,
+               selectedCursorAnimation: menuActiveCursorAnimation,
                font: menuFont,
                disabledFont: menuInactiveFont,
                charsPerNumber: 2,
@@ -789,6 +829,8 @@ export MenuResources menuResources {
                rowGap: 8,
                cursor: menuCursor,
                selectedCursor: menuActiveCursor,
+               cursorAnimation: menuCursorAnimation,
+               selectedCursorAnimation: menuActiveCursorAnimation,
                font: menuFont
        },
        equipmentMenu: MenuProperties {
@@ -798,6 +840,8 @@ export MenuResources menuResources {
                rowGap: 16,
                cursor: menuCursor,
                selectedCursor: menuActiveCursor,
+               cursorAnimation: menuCursorAnimation,
+               selectedCursorAnimation: menuActiveCursorAnimation,
                font: normalFont,
                iconSpace: 16,
                wrapY: true
@@ -813,6 +857,7 @@ export MenuResources menuResources {
                charsPerEntry: 8,
                rowGap: 32,
                cursor: menuCursor,
+               cursorAnimation: menuCursorAnimation,
                font: menuFont,
                wrapY: true
        },
@@ -833,7 +878,128 @@ export MenuResources menuResources {
                charsPerEntry: 14,
                rowGap: 8,
                cursor: menuCursor,
+               cursorAnimation: menuCursorAnimation,
                font: menuFont
        },
-       scenarioMenuHeadline: "SCENARIO ITEM"
+       scenarioMenuHeadline: "SCENARIO ITEM",
+       capsulebg: Texture {
+               image: :"capsulebg.png",
+               size: <64, 64>
+       },
+       capsuleMenu: MenuProperties {
+               cols: 3,
+               rows: 1,
+               charsPerEntry: 7,
+               cursor: menuCursor,
+               selectedCursor: menuActiveCursor,
+               cursorAnimation: menuCursorAnimation,
+               selectedCursorAnimation: menuActiveCursorAnimation,
+               font: menuFont,
+               thirdColumnHack: 2
+       },
+       capsuleFeedMenu: MenuProperties {
+               cols: 2,
+               rows: 1,
+               charsPerEntry: 7,
+               colGap: 32,
+               cursor: menuCursor,
+               selectedCursor: menuActiveCursor,
+               cursorAnimation: menuCursorAnimation,
+               selectedCursorAnimation: menuActiveCursorAnimation,
+               font: menuFont
+       },
+       capsuleFeedLabel: "FEED",
+       capsuleChangeLabel: "CHANGE",
+       capsuleNameLabel: "NAME",
+       capsuleClassLabel: "CLASS",
+       capsuleAlignmentLabel: "ALI.",
+       capsuleTribeLabel: "TRIBE",
+       capsuleAttack1Label: "SP.1",
+       capsuleAttack2Label: "SP.2",
+       capsuleAttack3Label: "SP.3",
+       capsuleNoAttackText: "Nothing",
+       capsuleNotHungryText: "I'm not hungry.",
+       capsuleNameSelect: CharSelect {
+               font: menuFont,
+               cursor: Sprite {
+                       image: :"alpha-cursor.png",
+                       size: <20, 28>
+               },
+               chars: "0123456789ABCDEabcdeFGHIJfghijKLMNOklmnoPQRSTpqrstUVWXYuvwxyZ!?  z!?  ",
+               width: 10,
+               groupX: 5
+       },
+       capsuleSelectTopLeft: Sprite {
+               image: :"capsule-sprites.png",
+               size: <32, 8>,
+               offset: <64, 0>
+       },
+       capsuleSelectTopRight: Sprite {
+               image: :"capsule-sprites.png",
+               size: <32, 8>,
+               offset: <128, 0>
+       },
+       capsuleSelectTopRepeat: Texture {
+               image: :"capsule-sprites.png",
+               size: <32, 8>,
+               offset: <96, 0>
+       },
+       capsuleSelectBottomLeft: Sprite {
+               image: :"capsule-sprites.png",
+               size: <32, 32>,
+               offset: <0, 32>
+       },
+       capsuleSelectBottomRight: Sprite {
+               image: :"capsule-sprites.png",
+               size: <32, 32>,
+               offset: <128, 64>
+       },
+       capsuleSelectBottomRepeat: Sprite {
+               image: :"capsule-sprites.png",
+               size: <32, 32>,
+               offset: <0, 64>
+       },
+       capsuleSelectLeftRepeat: Texture {
+               image: :"capsule-sprites.png",
+               size: <32, 32>
+       },
+       capsuleSelectRightRepeat: Texture {
+               image: :"capsule-sprites.png",
+               size: <32, 32>,
+               offset: <128, 32>
+       },
+       capsuleSelectLadder: Sprite {
+               image: :"capsule-sprites.png",
+               size: <32, 24>,
+               offset: <64, 8>
+       },
+       capsuleSelectCursor: Sprite {
+               image: :"capsule-sprites.png",
+               size: <32, 24>,
+               offset: <128, 8>
+       },
+       capsuleAlignmentWheel: Sprite {
+               image: :"capsule-sprites.png",
+               size: <128, 128>,
+               offset: <0, 128>
+       },
+       capsuleAlignmentCursor: Sprite {
+               image: :"capsule-sprites.png",
+               size: <32, 32>,
+               offset: <128, 128>
+       },
+       capsuleGrowthLabel: Sprite {
+               image: :"capsule-feed.png",
+               size: <32, 10>
+       },
+       capsuleGrowthBar: Sprite {
+               image: :"capsule-feed.png",
+               size: <8, 10>,
+               offset: <8, 10>
+       },
+       capsuleGrowthBarFilled: Sprite {
+               image: :"capsule-feed.png",
+               size: <8, 10>,
+               offset: <0, 10>
+       }
 }