Started working on UI localization
This commit is contained in:
1 parent
ef5b142425
commit
08eac60657
14 files changed
+570
-72
No files matched your search
@@ -0,0 +1,241 @@
|
||||
{
|
||||
"root": {
|
||||
"type": "FrameLayout",
|
||||
"name": "hud_root",
|
||||
"width": "match_parent",
|
||||
"height": "match_parent",
|
||||
"children": [
|
||||
{
|
||||
"type": "Button",
|
||||
"name": "settingsButton",
|
||||
"horizontal_gravity": "right",
|
||||
"vertical_gravity": "top",
|
||||
"x": -35,
|
||||
"y": -35,
|
||||
"width": 200,
|
||||
"height": 200,
|
||||
"clickZoneWidth": 176,
|
||||
"clickZoneHeight": 176,
|
||||
"textures": {
|
||||
"normal": "resources/w/ui/img/Settings001_State=Default001.png",
|
||||
"hover": "resources/w/ui/img/Settings001_State=Selected001.png",
|
||||
"pressed": "resources/w/ui/img/Settings001_State=Tap001.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Button",
|
||||
"name": "inventoryButton",
|
||||
"horizontal_gravity": "right",
|
||||
"vertical_gravity": "top",
|
||||
"x": -18,
|
||||
"y": 110,
|
||||
"width": 165,
|
||||
"height": 165,
|
||||
"clickZoneWidth": 151,
|
||||
"clickZoneHeight": 151,
|
||||
"textures": {
|
||||
"normal": "resources/w/ui/img/Inventory001_State=Default001.png",
|
||||
"hover": "resources/w/ui/img/Inventory001_State=Selected001.png",
|
||||
"pressed": "resources/w/ui/img/Inventory001_State=Tap001.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Button",
|
||||
"name": "journalButton",
|
||||
"horizontal_gravity": "right",
|
||||
"vertical_gravity": "top",
|
||||
"x": -18,
|
||||
"y": 220,
|
||||
"width": 165,
|
||||
"height": 165,
|
||||
"clickZoneWidth": 89,
|
||||
"clickZoneHeight": 89,
|
||||
"textures": {
|
||||
"normal": "resources/w/ui/img/Journal001_State=Default.png",
|
||||
"hover": "resources/w/ui/img/Journal001_State=Selected.png",
|
||||
"pressed": "resources/w/ui/img/Journal001_State=Tap.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "StaticImage",
|
||||
"name": "location",
|
||||
"width": 380,
|
||||
"height": 64,
|
||||
"y": 30,
|
||||
"horizontal_gravity": "center",
|
||||
"vertical_gravity": "bottom",
|
||||
"texture": "resources/w/ui_en/img/Location_uni_int.png"
|
||||
},
|
||||
{
|
||||
"type": "StaticImage",
|
||||
"name": "healthBarPanel",
|
||||
"width": 389,
|
||||
"height": 132.2,
|
||||
"y": -5,
|
||||
"x": -5,
|
||||
"horizontal_gravity": "left",
|
||||
"vertical_align": "top",
|
||||
"texture": "resources/w/ui/img/HealthBarBase002.png"
|
||||
},
|
||||
{
|
||||
"type": "StaticImage",
|
||||
"name": "healthBarBorder",
|
||||
"width": 151.2,
|
||||
"height": 22.8,
|
||||
"y": 49.8,
|
||||
"x": 100.6,
|
||||
"horizontal_gravity": "left",
|
||||
"vertical_align": "top",
|
||||
"texture": "resources/w/ui/img/HealthBarBack001.png"
|
||||
},
|
||||
{
|
||||
"type": "Slider",
|
||||
"name": "healthBarFill",
|
||||
"width": 151.2,
|
||||
"height": 22.8,
|
||||
"y": 49.8,
|
||||
"x": 100.6,
|
||||
"horizontal_gravity": "left",
|
||||
"vertical_gravity": "top",
|
||||
"orientation": "horizontal",
|
||||
"value": 1.0,
|
||||
"fillMode": true,
|
||||
"interactive": false,
|
||||
"textures": {
|
||||
"track": "resources/w/ui/img/HealthBarFill001.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "TextView",
|
||||
"name": "healthValue",
|
||||
"x": 255.0,
|
||||
"y": 45.5,
|
||||
"width": 100.0,
|
||||
"height": 44.0,
|
||||
"horizontal_gravity": "left",
|
||||
"vertical_gravity": "top",
|
||||
"text": "200/200",
|
||||
"fontSize": 20,
|
||||
"fontPath": "resources/fonts/DroidSans.ttf",
|
||||
"textCentered": false,
|
||||
"topAligned": false,
|
||||
"wrap": true,
|
||||
"color": [
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "FrameLayout",
|
||||
"vertical_align": "top",
|
||||
"horizontal_align": "center",
|
||||
"spacing": 0,
|
||||
"width": "match_parent",
|
||||
"height": 528,
|
||||
"children": [
|
||||
{
|
||||
"type": "StaticImage",
|
||||
"name": "toast001",
|
||||
"horizontal_gravity": "center",
|
||||
"width": 504,
|
||||
"height": 132,
|
||||
"y": 0,
|
||||
"visible" : false,
|
||||
"texture": "resources/w/ui/img/toast/item_received001.png"
|
||||
},
|
||||
{
|
||||
"type": "StaticImage",
|
||||
"name": "toast002",
|
||||
"horizontal_gravity": "center",
|
||||
"width": 504,
|
||||
"height": 132,
|
||||
"y": 104,
|
||||
"visible" : false,
|
||||
"texture": "resources/w/ui/img/toast/item_removed001.png"
|
||||
},
|
||||
{
|
||||
"type": "StaticImage",
|
||||
"name": "toast003",
|
||||
"horizontal_gravity": "center",
|
||||
"width": 504,
|
||||
"height": 132,
|
||||
"y": 208,
|
||||
"visible" : false,
|
||||
"texture": "resources/w/ui/img/toast/quest_completed001.png"
|
||||
},
|
||||
{
|
||||
"type": "TextView",
|
||||
"name": "toast001text",
|
||||
"horizontal_gravity": "center",
|
||||
"vertical_gravity": "top",
|
||||
"y": 62,
|
||||
"x": 54,
|
||||
"width": 400,
|
||||
"height": 100,
|
||||
"visible" : false,
|
||||
"text": "",
|
||||
"fontSize": 24,
|
||||
"fontPath": "resources/fonts/DroidSans.ttf",
|
||||
"textCentered": false,
|
||||
"topAligned": true,
|
||||
"wrap": true,
|
||||
"color": [
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "TextView",
|
||||
"name": "toast002text",
|
||||
"horizontal_gravity": "center",
|
||||
"vertical_gravity": "top",
|
||||
"y": 166,
|
||||
"x": 54,
|
||||
"width": 400,
|
||||
"height": 100,
|
||||
"visible" : false,
|
||||
"text": "",
|
||||
"fontSize": 24,
|
||||
"fontPath": "resources/fonts/DroidSans.ttf",
|
||||
"textCentered": false,
|
||||
"topAligned": true,
|
||||
"wrap": true,
|
||||
"color": [
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "TextView",
|
||||
"name": "toast003text",
|
||||
"horizontal_gravity": "center",
|
||||
"vertical_gravity": "top",
|
||||
"y": 270,
|
||||
"x": 54,
|
||||
"width": 400,
|
||||
"height": 100,
|
||||
"visible" : false,
|
||||
"text": "",
|
||||
"fontSize": 24,
|
||||
"fontPath": "resources/fonts/DroidSans.ttf",
|
||||
"textCentered": false,
|
||||
"topAligned": true,
|
||||
"wrap": true,
|
||||
"color": [
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"root": {
|
||||
"type": "FrameLayout",
|
||||
"width": "match_parent",
|
||||
"height": "match_parent",
|
||||
"children": [
|
||||
{
|
||||
"type": "StaticImage",
|
||||
"name": "languageBkg",
|
||||
"width": "match_parent",
|
||||
"height": "match_parent",
|
||||
"texture": "resources/w/ui/img/main/bkg.png"
|
||||
},
|
||||
{
|
||||
"type": "LinearLayout",
|
||||
"orientation": "vertical",
|
||||
"horizontal_gravity": "center",
|
||||
"vertical_gravity": "center",
|
||||
"horizontal_align": "left",
|
||||
"width": 500,
|
||||
"height": 600,
|
||||
"spacing": 20,
|
||||
"children": [
|
||||
{
|
||||
"type": "TextView",
|
||||
"name": "languageTitleText",
|
||||
"width": 500,
|
||||
"height": 60,
|
||||
"text": "Язык / Language",
|
||||
"fontSize": 40,
|
||||
"textCentered": true,
|
||||
"color": [1.0, 1.0, 1.0, 1.0]
|
||||
},
|
||||
{
|
||||
"type": "TextButton",
|
||||
"name": "languageRussianButton",
|
||||
"width": 500,
|
||||
"height": 80,
|
||||
"text": "Русский",
|
||||
"fontSize": 48,
|
||||
"textCentered": true,
|
||||
"color": [0.2, 0.9, 0.2, 1.0]
|
||||
},
|
||||
{
|
||||
"type": "TextButton",
|
||||
"name": "languageEnglishButton",
|
||||
"width": 500,
|
||||
"height": 80,
|
||||
"text": "English",
|
||||
"fontSize": 48,
|
||||
"textCentered": true,
|
||||
"color": [0.2, 0.9, 0.2, 1.0]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "TextButton",
|
||||
"name": "languageBackButton",
|
||||
"horizontal_gravity": "center",
|
||||
"vertical_gravity": "bottom",
|
||||
"y": 40,
|
||||
"width": 200,
|
||||
"height": 60,
|
||||
"text": "Back",
|
||||
"fontSize": 40,
|
||||
"textCentered": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"root": {
|
||||
"type": "FrameLayout",
|
||||
"width": "match_parent",
|
||||
"height": "match_parent",
|
||||
"children": [
|
||||
{
|
||||
"type": "StaticImage",
|
||||
"name": "mainMenuBkg",
|
||||
"width": 2186,
|
||||
"height": 1536,
|
||||
"texture": "resources/w/ui/img/main/MenuBkg001_v001.png"
|
||||
},
|
||||
{
|
||||
"type": "StaticImage",
|
||||
"name": "mainMenuBkg2",
|
||||
"horizontal_gravity": "center",
|
||||
"vertical_gravity": "bottom",
|
||||
"width": 720,
|
||||
"height": 720,
|
||||
"texture": "resources/w/ui/img/main/main002.png"
|
||||
},
|
||||
{
|
||||
"type": "StaticImage",
|
||||
"name": "mainMenuUnderLetterBkg",
|
||||
"horizontal_gravity": "center",
|
||||
"width": 450,
|
||||
"height": "match_parent",
|
||||
"texture": "resources/w/ui/img/main/under_letters001.png"
|
||||
},
|
||||
{
|
||||
"type": "StaticImage",
|
||||
"name": "mainMenuLogo",
|
||||
"horizontal_gravity": "center",
|
||||
"vertical_gravity": "center",
|
||||
"width": 350,
|
||||
"height": 175,
|
||||
"y": 235,
|
||||
"texture": "resources/w/ui/img/main/letters002.png"
|
||||
},
|
||||
{
|
||||
"type": "LinearLayout",
|
||||
"orientation": "vertical",
|
||||
"horizontal_align": "center",
|
||||
"vertical_align": "center",
|
||||
"spacing": 24,
|
||||
"y": 120,
|
||||
"width": "match_parent",
|
||||
"height": "match_parent",
|
||||
"children": [
|
||||
{
|
||||
"type": "TextButton",
|
||||
"name": "menuStartButton",
|
||||
"width": 300,
|
||||
"height": 60,
|
||||
"text": "Start Game",
|
||||
"fontSize": 48,
|
||||
"textCentered": true
|
||||
},
|
||||
{
|
||||
"type": "TextButton",
|
||||
"name": "menuLoadButton",
|
||||
"width": 300,
|
||||
"height": 60,
|
||||
"text": "Load Game",
|
||||
"fontSize": 48,
|
||||
"textCentered": true
|
||||
},
|
||||
{
|
||||
"type": "TextButton",
|
||||
"name": "menuSettingsButton",
|
||||
"width": 300,
|
||||
"height": 60,
|
||||
"text": "Settings",
|
||||
"fontSize": 48,
|
||||
"textCentered": true
|
||||
},
|
||||
{
|
||||
"type": "TextButton",
|
||||
"name": "menuLanguageButton",
|
||||
"width": 300,
|
||||
"height": 60,
|
||||
"text": "Язык / Language",
|
||||
"fontSize": 48,
|
||||
"textCentered": true
|
||||
},
|
||||
{
|
||||
"type": "TextButton",
|
||||
"name": "menuAboutButton",
|
||||
"width": 300,
|
||||
"height": 70,
|
||||
"text": "About Us",
|
||||
"fontSize": 48,
|
||||
"textCentered": true
|
||||
},
|
||||
{
|
||||
"type": "TextButton",
|
||||
"name": "menuExitButton",
|
||||
"width": 300,
|
||||
"height": 60,
|
||||
"text": "Exit",
|
||||
"fontSize": 48,
|
||||
"textCentered": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "TextView",
|
||||
"name": "mainMenuVersion",
|
||||
"horizontal_gravity": "right",
|
||||
"vertical_gravity": "bottom",
|
||||
"x": 10,
|
||||
"y": 10,
|
||||
"width": 160,
|
||||
"height": 36,
|
||||
"text": "v. 0.7",
|
||||
"fontSize": 24,
|
||||
"textCentered": false,
|
||||
"topAligned": true,
|
||||
"paddingY": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user