Working on tutorial refactoring

This commit is contained in:
Vladislav Khorev committed 2026-10-23 22:03:55 +06:00
1 parent ea8f64c940
commit 9fa120d4ad
82 files changed
+1877 -7563

No files matched your search

+4 -10
View File
@@ -530,8 +530,7 @@
"z": 14.0 "z": 14.0
} }
] ]
}, }
"tutorialInteractiveObjectsLocked": true
}, },
"npcStates": [ "npcStates": [
{ {
@@ -737,8 +736,7 @@
"z": -55.0 "z": -55.0
} }
] ]
}, }
"tutorialInteractiveObjectsLocked": false
}, },
"npcStates": [], "npcStates": [],
"playerState": { "playerState": {
@@ -1126,8 +1124,7 @@
"taxiCarTriggerPositionY": 0.0, "taxiCarTriggerPositionY": 0.0,
"taxiCarTriggerPositionZ": 0.0, "taxiCarTriggerPositionZ": 0.0,
"taxiDefaultWaypoints": [] "taxiDefaultWaypoints": []
}, }
"tutorialInteractiveObjectsLocked": false
}, },
"npcStates": [ "npcStates": [
{ {
@@ -1653,11 +1650,8 @@
}, },
"savedAt": "2026-07-24 23:40", "savedAt": "2026-07-24 23:40",
"taxiIsCalled": false, "taxiIsCalled": false,
"tutorialJournalPickedUp": false,
"tutorialJournalScreenOpened": false, "tutorialJournalScreenOpened": false,
"tutorialNeedOpenTaxiScreen": false, "tutorialNeedOpenTaxiScreen": false,
"tutorialPhoneChatScreenOpened": false, "tutorialPhoneChatScreenOpened": false,
"tutorialPhonePickedUp": false, "tutorialStep": 0
"tutorialStep": 0,
"uniIntTutorialState": 0
} }
@@ -83,26 +83,27 @@
"vertical_gravity": "bottom", "vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Location_dorm.png" "texture": "resources/w/ui/img/Location_dorm.png"
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint6aarrow", "name": "hint6aarrow",
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity" : "bottom", "vertical_gravity": "bottom",
"width": 118, "width": 118,
"height": 118, "height": 118,
"x": 80, "x": 80,
"y": 60, "y": 60,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png" "texture": "resources/w/ui/img/hint_arrow_right_bottom.png",
"visible": false
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint6a", "name": "hint6a",
"width": 606, "width": 606,
"height": 234, "height": 234,
"x" : 110, "x": 110,
"y" : 80, "y": 80,
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity" : "bottom", "vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Hint6a.png", "texture": "resources/w/ui/img/Hint6a.png",
"pulse": { "pulse": {
"minScale": 0.92, "minScale": 0.92,
@@ -111,24 +112,26 @@
}, },
"fadeIn": { "fadeIn": {
"durationMs": 1000 "durationMs": 1000
} },
"visible": false
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint6barrow", "name": "hint6barrow",
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity": "top", "vertical_gravity": "top",
"width": 118, "width": 118,
"height": 118, "height": 118,
"x": 80, "x": 80,
"y": 200, "y": 200,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png" "texture": "resources/w/ui/img/hint_arrow_right_bottom.png",
"visible": false
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint6b", "name": "hint6b",
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity": "top", "vertical_gravity": "top",
"width": 630.4, "width": 630.4,
"height": 249.6, "height": 249.6,
"x": 80, "x": 80,
@@ -141,19 +144,20 @@
}, },
"fadeIn": { "fadeIn": {
"durationMs": 1000 "durationMs": 1000
} },
"visible": false
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint7arrow", "name": "hint7arrow",
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity" : "bottom", "vertical_gravity": "bottom",
"width": 118, "width": 118,
"height": 118, "height": 118,
"x": 80, "x": 80,
"y": 60, "y": 60,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png", "texture": "resources/w/ui/img/hint_arrow_right_bottom.png",
"visible":false, "visible": false,
"pulse": { "pulse": {
"minScale": 0.92, "minScale": 0.92,
"maxScale": 1.08, "maxScale": 1.08,
@@ -163,16 +167,16 @@
"durationMs": 1000 "durationMs": 1000
} }
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint7", "name": "hint7",
"width": 606, "width": 606,
"height": 201, "height": 201,
"x" : 110, "x": 110,
"y" : 80, "y": 80,
"visible":false, "visible": false,
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity" : "bottom", "vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Hint_m004.png", "texture": "resources/w/ui/img/Hint_m004.png",
"pulse": { "pulse": {
"minScale": 0.92, "minScale": 0.92,
@@ -182,7 +186,123 @@
"fadeIn": { "fadeIn": {
"durationMs": 1000 "durationMs": 1000
} }
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint2",
"width": 660,
"height": 201,
"horizontal_gravity": "center",
"texture": "resources/w/ui/img/Hint2.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
}
]
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint3",
"width": 692,
"height": 312,
"horizontal_gravity": "center",
"texture": "resources/w/ui/img/Hint3.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
}
]
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint4",
"width": 705,
"height": 234,
"horizontal_gravity": "center",
"texture": "resources/w/ui/img/Hint4.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
}
]
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint5",
"width": 606,
"height": 201,
"horizontal_gravity": "center",
"texture": "resources/w/ui/img/Hint5.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
}
]
} }
] ]
} }
} }
@@ -83,26 +83,27 @@
"vertical_gravity": "bottom", "vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Location_dorm.png" "texture": "resources/w/ui/img/Location_dorm.png"
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint6aarrow", "name": "hint6aarrow",
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity" : "bottom", "vertical_gravity": "bottom",
"width": 118, "width": 118,
"height": 118, "height": 118,
"x": 80, "x": 80,
"y": 60, "y": 60,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png" "texture": "resources/w/ui/img/hint_arrow_right_bottom.png",
"visible": false
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint6a", "name": "hint6a",
"width": 606, "width": 606,
"height": 234, "height": 234,
"x" : 110, "x": 110,
"y" : 80, "y": 80,
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity" : "bottom", "vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Hint6a.png", "texture": "resources/w/ui/img/Hint6a.png",
"pulse": { "pulse": {
"minScale": 0.92, "minScale": 0.92,
@@ -111,24 +112,26 @@
}, },
"fadeIn": { "fadeIn": {
"durationMs": 1000 "durationMs": 1000
} },
"visible": false
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint6barrow", "name": "hint6barrow",
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity": "top", "vertical_gravity": "top",
"width": 118, "width": 118,
"height": 118, "height": 118,
"x": 80, "x": 80,
"y": 200, "y": 200,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png" "texture": "resources/w/ui/img/hint_arrow_right_bottom.png",
"visible": false
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint6b", "name": "hint6b",
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity": "top", "vertical_gravity": "top",
"width": 630.4, "width": 630.4,
"height": 249.6, "height": 249.6,
"x": 80, "x": 80,
@@ -141,19 +144,20 @@
}, },
"fadeIn": { "fadeIn": {
"durationMs": 1000 "durationMs": 1000
} },
"visible": false
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint7arrow", "name": "hint7arrow",
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity" : "bottom", "vertical_gravity": "bottom",
"width": 118, "width": 118,
"height": 118, "height": 118,
"x": 80, "x": 80,
"y": 60, "y": 60,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png", "texture": "resources/w/ui/img/hint_arrow_right_bottom.png",
"visible":false, "visible": false,
"pulse": { "pulse": {
"minScale": 0.92, "minScale": 0.92,
"maxScale": 1.08, "maxScale": 1.08,
@@ -163,16 +167,16 @@
"durationMs": 1000 "durationMs": 1000
} }
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint7", "name": "hint7",
"width": 606, "width": 606,
"height": 201, "height": 201,
"x" : 110, "x": 110,
"y" : 80, "y": 80,
"visible":false, "visible": false,
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity" : "bottom", "vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Hint_m004.png", "texture": "resources/w/ui/img/Hint_m004.png",
"pulse": { "pulse": {
"minScale": 0.92, "minScale": 0.92,
@@ -182,7 +186,123 @@
"fadeIn": { "fadeIn": {
"durationMs": 1000 "durationMs": 1000
} }
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint2",
"width": 660,
"height": 201,
"horizontal_gravity": "center",
"texture": "resources/w/ui/img/Hint2android.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
}
]
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint3",
"width": 692,
"height": 312,
"horizontal_gravity": "center",
"texture": "resources/w/ui/img/Hint3.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
}
]
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint4",
"width": 705,
"height": 234,
"horizontal_gravity": "center",
"texture": "resources/w/ui/img/Hint4android.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
}
]
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint5",
"width": 606,
"height": 201,
"horizontal_gravity": "center",
"texture": "resources/w/ui/img/Hint5.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
}
]
} }
] ]
} }
} }
-37
View File
@@ -1,37 +0,0 @@
{
"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": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Location_dorm.png"
}
]
}
}
-65
View File
@@ -1,65 +0,0 @@
{
"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": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Location_dorm.png"
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint2",
"width": 660,
"height": 201,
"horizontal_gravity": "center",
"texture": "resources/w/ui/img/Hint2.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
]
}
}
-65
View File
@@ -1,65 +0,0 @@
{
"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": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Location_dorm.png"
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint2",
"width": 660,
"height": 201,
"horizontal_gravity": "center",
"texture": "resources/w/ui/img/Hint2android.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
]
}
}
-65
View File
@@ -1,65 +0,0 @@
{
"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": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Location_dorm.png"
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint3",
"width": 692,
"height": 312,
"horizontal_gravity": "center",
"texture": "resources/w/ui/img/Hint3.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
]
}
}
-65
View File
@@ -1,65 +0,0 @@
{
"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": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Location_dorm.png"
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint3",
"width": 692,
"height": 312,
"horizontal_gravity": "center",
"texture": "resources/w/ui/img/Hint3.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
]
}
}
-65
View File
@@ -1,65 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"children": [
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint4",
"width": 705,
"height": 234,
"horizontal_gravity": "center",
"texture": "resources/w/ui/img/Hint4.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
},
{
"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": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Location_dorm.png"
}
]
}
}
-65
View File
@@ -1,65 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"children": [
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint4",
"width": 705,
"height": 234,
"horizontal_gravity": "center",
"texture": "resources/w/ui/img/Hint4android.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
},
{
"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": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Location_dorm.png"
}
]
}
}
-65
View File
@@ -1,65 +0,0 @@
{
"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": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Location_dorm.png"
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint5",
"width": 606,
"height": 201,
"horizontal_gravity": "center",
"texture": "resources/w/ui/img/Hint5.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
]
}
}
-101
View File
@@ -1,101 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"children": [
{
"type": "Button",
"name": "phoneButton",
"horizontal_gravity": "right",
"vertical_gravity": "bottom",
"x": -46,
"y": -46,
"width": 229,
"height": 229,
"clickZoneWidth": 104,
"clickZoneHeight": 104,
"textures": {
"normal": "resources/w/ui/img/Phone001_State=Default.png",
"hover": "resources/w/ui/img/Phone001_State=Selected.png",
"pressed": "resources/w/ui/img/Phone001_State=Tap.png"
}
},
{
"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": "StaticImage",
"name": "hint6aarrow",
"horizontal_gravity": "right",
"vertical_gravity" : "bottom",
"width": 118,
"height": 118,
"x": 80,
"y": 60,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png"
},
{
"type": "StaticImage",
"name": "hint6a",
"width": 606,
"height": 234,
"x" : 110,
"y" : 80,
"horizontal_gravity": "right",
"vertical_gravity" : "bottom",
"texture": "resources/w/ui/img/Hint6a.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Location_dorm.png"
}
]
}
}
-101
View File
@@ -1,101 +0,0 @@
{
"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/img/Location_dorm.png"
},
{
"type": "StaticImage",
"name": "hint6barrow",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 118,
"height": 118,
"x": 80,
"y": 200,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png"
},
{
"type": "StaticImage",
"name": "hint6b",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 630.4,
"height": 249.6,
"x": 80,
"y": 100,
"texture": "resources/w/ui/img/Hint6b.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
}
@@ -99,38 +99,8 @@
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "bottom", "vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Location_uni_int.png" "texture": "resources/w/ui/img/Location_uni_int.png"
},
{
"type": "StaticImage",
"name": "hint_darklands001_arrow",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 118,
"height": 118,
"x": 80,
"y": 310,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png"
}, },
{ {
"type": "StaticImage",
"name": "hint_darklands001",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 470,
"height": 156,
"x": 100,
"y": 250,
"texture": "resources/w/ui/img/Hint_darklands001.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
}
},
{
"type": "FrameLayout", "type": "FrameLayout",
"vertical_align": "top", "vertical_align": "top",
"horizontal_align": "center", "horizontal_align": "center",
@@ -145,7 +115,7 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 0, "y": 0,
"visible" : false, "visible": false,
"texture": "resources/w/ui/img/toast/item_received001.png" "texture": "resources/w/ui/img/toast/item_received001.png"
}, },
{ {
@@ -155,7 +125,7 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 104, "y": 104,
"visible" : false, "visible": false,
"texture": "resources/w/ui/img/toast/item_removed001.png" "texture": "resources/w/ui/img/toast/item_removed001.png"
}, },
{ {
@@ -165,19 +135,19 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 208, "y": 208,
"visible" : false, "visible": false,
"texture": "resources/w/ui/img/toast/quest_completed001.png" "texture": "resources/w/ui/img/toast/quest_completed001.png"
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast001text", "name": "toast001text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 62, "y": 62,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "Серебряный нож.", "text": "Серебряный нож.",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -191,16 +161,16 @@
1.0 1.0
] ]
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast002text", "name": "toast002text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 166, "y": 166,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "Серебряный нож 2.", "text": "Серебряный нож 2.",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -214,16 +184,16 @@
1.0 1.0
] ]
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast003text", "name": "toast003text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 270, "y": 270,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "Серебряный нож 3.", "text": "Серебряный нож 3.",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -238,7 +208,39 @@
] ]
} }
] ]
},
{
"type": "StaticImage",
"name": "hint_darklands001_arrow",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 118,
"height": 118,
"x": 80,
"y": 310,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png",
"visible": false
},
{
"type": "StaticImage",
"name": "hint_darklands001",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 470,
"height": 156,
"x": 100,
"y": 250,
"texture": "resources/w/ui/img/Hint_darklands001.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
},
"visible": false
} }
] ]
} }
} }
@@ -99,38 +99,8 @@
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "bottom", "vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Location_uni_int.png" "texture": "resources/w/ui/img/Location_uni_int.png"
},
{
"type": "StaticImage",
"name": "hint_darklands001_arrow",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 118,
"height": 118,
"x": 80,
"y": 310,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png"
}, },
{ {
"type": "StaticImage",
"name": "hint_darklands001",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 470,
"height": 156,
"x": 100,
"y": 250,
"texture": "resources/w/ui/img/Hint_darklands001.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
}
},
{
"type": "FrameLayout", "type": "FrameLayout",
"vertical_align": "top", "vertical_align": "top",
"horizontal_align": "center", "horizontal_align": "center",
@@ -145,7 +115,7 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 0, "y": 0,
"visible" : false, "visible": false,
"texture": "resources/w/ui/img/toast/item_received001.png" "texture": "resources/w/ui/img/toast/item_received001.png"
}, },
{ {
@@ -155,7 +125,7 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 104, "y": 104,
"visible" : false, "visible": false,
"texture": "resources/w/ui/img/toast/item_removed001.png" "texture": "resources/w/ui/img/toast/item_removed001.png"
}, },
{ {
@@ -165,19 +135,19 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 208, "y": 208,
"visible" : false, "visible": false,
"texture": "resources/w/ui/img/toast/quest_completed001.png" "texture": "resources/w/ui/img/toast/quest_completed001.png"
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast001text", "name": "toast001text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 62, "y": 62,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "Серебряный нож.", "text": "Серебряный нож.",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -191,16 +161,16 @@
1.0 1.0
] ]
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast002text", "name": "toast002text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 166, "y": 166,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "Серебряный нож 2.", "text": "Серебряный нож 2.",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -214,16 +184,16 @@
1.0 1.0
] ]
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast003text", "name": "toast003text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 270, "y": 270,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "Серебряный нож 3.", "text": "Серебряный нож 3.",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -238,7 +208,39 @@
] ]
} }
] ]
},
{
"type": "StaticImage",
"name": "hint_darklands001_arrow",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 118,
"height": 118,
"x": 80,
"y": 310,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png",
"visible": false
},
{
"type": "StaticImage",
"name": "hint_darklands001",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 470,
"height": 156,
"x": 100,
"y": 250,
"texture": "resources/w/ui/img/Hint_darklands001.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
},
"visible": false
} }
] ]
} }
} }
@@ -65,62 +65,36 @@
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "bottom", "vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Location_uni_int.png" "texture": "resources/w/ui/img/Location_uni_int.png"
},
{
"type": "StaticImage",
"name": "hint_darklands003_arrow",
"width": 24,
"height": 118,
"x": 210,
"y": 110,
"texture": "resources/w/ui/img/hint_arrow_up.png"
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint_darklands003",
"width": 470,
"height": 202,
"x": 130,
"y": 200,
"texture": "resources/w/ui/img/Hint_darklands003_hp.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
}
},
{
"type": "StaticImage",
"name": "healthBarPanel", "name": "healthBarPanel",
"width": 389, "width": 389,
"height": 132.2, "height": 132.2,
"y": -5, "y": -5,
"x": -5, "x": -5,
"horizontal_gravity": "left", "horizontal_gravity": "left",
"vertical_align": "top", "vertical_align": "top",
"texture": "resources/w/ui/img/HealthBarBase002.png" "texture": "resources/w/ui/img/HealthBarBase002.png"
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "healthBarBorder", "name": "healthBarBorder",
"width": 151.2, "width": 151.2,
"height": 22.8, "height": 22.8,
"y": 49.8, "y": 49.8,
"x": 100.6, "x": 100.6,
"horizontal_gravity": "left", "horizontal_gravity": "left",
"vertical_align": "top", "vertical_align": "top",
"texture": "resources/w/ui/img/HealthBarBack001.png" "texture": "resources/w/ui/img/HealthBarBack001.png"
}, },
{ {
"type": "Slider", "type": "Slider",
"name": "healthBarFill", "name": "healthBarFill",
"width": 151.2, "width": 151.2,
"height": 22.8, "height": 22.8,
"y": 49.8, "y": 49.8,
"x": 100.6, "x": 100.6,
"horizontal_gravity": "left", "horizontal_gravity": "left",
"vertical_gravity": "top", "vertical_gravity": "top",
"orientation": "horizontal", "orientation": "horizontal",
@@ -131,7 +105,7 @@
"track": "resources/w/ui/img/HealthBarFill001.png" "track": "resources/w/ui/img/HealthBarFill001.png"
} }
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "healthValue", "name": "healthValue",
"x": 255.0, "x": 255.0,
@@ -153,7 +127,7 @@
1.0 1.0
] ]
}, },
{ {
"type": "FrameLayout", "type": "FrameLayout",
"vertical_align": "top", "vertical_align": "top",
"horizontal_align": "center", "horizontal_align": "center",
@@ -168,7 +142,7 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 0, "y": 0,
"visible" : false, "visible": false,
"texture": "resources/w/ui/img/toast/item_received001.png" "texture": "resources/w/ui/img/toast/item_received001.png"
}, },
{ {
@@ -178,7 +152,7 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 104, "y": 104,
"visible" : false, "visible": false,
"texture": "resources/w/ui/img/toast/item_removed001.png" "texture": "resources/w/ui/img/toast/item_removed001.png"
}, },
{ {
@@ -188,19 +162,19 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 208, "y": 208,
"visible" : false, "visible": false,
"texture": "resources/w/ui/img/toast/quest_completed001.png" "texture": "resources/w/ui/img/toast/quest_completed001.png"
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast001text", "name": "toast001text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 62, "y": 62,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "Серебряный нож.", "text": "Серебряный нож.",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -214,16 +188,16 @@
1.0 1.0
] ]
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast002text", "name": "toast002text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 166, "y": 166,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "Серебряный нож 2.", "text": "Серебряный нож 2.",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -237,16 +211,16 @@
1.0 1.0
] ]
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast003text", "name": "toast003text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 270, "y": 270,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "Серебряный нож 3.", "text": "Серебряный нож 3.",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -261,7 +235,55 @@
] ]
} }
] ]
},
{
"type": "StaticImage",
"name": "hint_darklands003_arrow",
"width": 24,
"height": 118,
"x": 210,
"y": 110,
"texture": "resources/w/ui/img/hint_arrow_up.png",
"visible": false
},
{
"type": "StaticImage",
"name": "hint_darklands003",
"width": 470,
"height": 202,
"x": 130,
"y": 200,
"texture": "resources/w/ui/img/Hint_darklands003_hp.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
},
"visible": false
},
{
"type": "StaticImage",
"name": "hint_darklands002",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"width": 470,
"height": 178,
"x": 0,
"y": 80,
"texture": "resources/w/ui/img/Hint_darklands002_attack.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
},
"visible": false
} }
] ]
} }
} }
@@ -56,7 +56,7 @@
"pressed": "resources/w/ui/img/Journal001_State=Tap.png" "pressed": "resources/w/ui/img/Journal001_State=Tap.png"
} }
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "location", "name": "location",
"width": 380, "width": 380,
@@ -68,52 +68,33 @@
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint_darklands002",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"width": 470,
"height": 178,
"x": 0,
"y": 80,
"texture": "resources/w/ui/img/Hint_darklands002_attack.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
}
},
{
"type": "StaticImage",
"name": "healthBarPanel", "name": "healthBarPanel",
"width": 389, "width": 389,
"height": 132.2, "height": 132.2,
"y": -5, "y": -5,
"x": -5, "x": -5,
"horizontal_gravity": "left", "horizontal_gravity": "left",
"vertical_align": "top", "vertical_align": "top",
"texture": "resources/w/ui/img/HealthBarBase002.png" "texture": "resources/w/ui/img/HealthBarBase002.png"
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "healthBarBorder", "name": "healthBarBorder",
"width": 151.2, "width": 151.2,
"height": 22.8, "height": 22.8,
"y": 49.8, "y": 49.8,
"x": 100.6, "x": 100.6,
"horizontal_gravity": "left", "horizontal_gravity": "left",
"vertical_align": "top", "vertical_align": "top",
"texture": "resources/w/ui/img/HealthBarBack001.png" "texture": "resources/w/ui/img/HealthBarBack001.png"
}, },
{ {
"type": "Slider", "type": "Slider",
"name": "healthBarFill", "name": "healthBarFill",
"width": 151.2, "width": 151.2,
"height": 22.8, "height": 22.8,
"y": 49.8, "y": 49.8,
"x": 100.6, "x": 100.6,
"horizontal_gravity": "left", "horizontal_gravity": "left",
"vertical_gravity": "top", "vertical_gravity": "top",
"orientation": "horizontal", "orientation": "horizontal",
@@ -124,7 +105,7 @@
"track": "resources/w/ui/img/HealthBarFill001.png" "track": "resources/w/ui/img/HealthBarFill001.png"
} }
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "healthValue", "name": "healthValue",
"x": 255.0, "x": 255.0,
@@ -146,7 +127,7 @@
1.0 1.0
] ]
}, },
{ {
"type": "FrameLayout", "type": "FrameLayout",
"vertical_align": "top", "vertical_align": "top",
"horizontal_align": "center", "horizontal_align": "center",
@@ -161,7 +142,7 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 0, "y": 0,
"visible" : false, "visible": false,
"texture": "resources/w/ui/img/toast/item_received001.png" "texture": "resources/w/ui/img/toast/item_received001.png"
}, },
{ {
@@ -171,7 +152,7 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 104, "y": 104,
"visible" : false, "visible": false,
"texture": "resources/w/ui/img/toast/item_removed001.png" "texture": "resources/w/ui/img/toast/item_removed001.png"
}, },
{ {
@@ -181,19 +162,19 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 208, "y": 208,
"visible" : false, "visible": false,
"texture": "resources/w/ui/img/toast/quest_completed001.png" "texture": "resources/w/ui/img/toast/quest_completed001.png"
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast001text", "name": "toast001text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 62, "y": 62,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "Серебряный нож.", "text": "Серебряный нож.",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -207,16 +188,16 @@
1.0 1.0
] ]
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast002text", "name": "toast002text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 166, "y": 166,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "Серебряный нож 2.", "text": "Серебряный нож 2.",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -230,16 +211,16 @@
1.0 1.0
] ]
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast003text", "name": "toast003text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 270, "y": 270,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "Серебряный нож 3.", "text": "Серебряный нож 3.",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -254,6 +235,54 @@
] ]
} }
] ]
},
{
"type": "StaticImage",
"name": "hint_darklands003_arrow",
"width": 24,
"height": 118,
"x": 210,
"y": 110,
"texture": "resources/w/ui/img/hint_arrow_up.png",
"visible": false
},
{
"type": "StaticImage",
"name": "hint_darklands003",
"width": 470,
"height": 202,
"x": 130,
"y": 200,
"texture": "resources/w/ui/img/Hint_darklands003_hp.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
},
"visible": false
},
{
"type": "StaticImage",
"name": "hint_darklands002",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"width": 470,
"height": 178,
"x": 0,
"y": 80,
"texture": "resources/w/ui/img/Hint_darklands002_attack.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
},
"visible": false
} }
] ]
} }
-241
View File
@@ -1,241 +0,0 @@
{
"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/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": "Серебряный нож 2.",
"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": "Серебряный нож 3.",
"fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
1.0,
1.0,
1.0,
1.0
]
}
]
}
]
}
}
-214
View File
@@ -1,214 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"children": [
{
"type": "Button",
"name": "phoneButton",
"horizontal_gravity": "right",
"vertical_gravity": "bottom",
"x": -46,
"y": -46,
"width": 229,
"height": 229,
"clickZoneWidth": 104,
"clickZoneHeight": 104,
"textures": {
"normal": "resources/w/ui/img/Phone001_State=Default.png",
"hover": "resources/w/ui/img/Phone001_State=Selected.png",
"pressed": "resources/w/ui/img/Phone001_State=Tap.png"
}
},
{
"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": "Button",
"name": "darklandsButton",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"x": -18,
"y": 330,
"width": 165,
"height": 165,
"clickZoneWidth": 89,
"clickZoneHeight": 89,
"textures": {
"normal": "resources/w/ui/img/Darklands002_State=Default003.png",
"hover": "resources/w/ui/img/Darklands002_State=Selected003.png",
"pressed": "resources/w/ui/img/Darklands002_State=Tap003.png"
}
},
{
"type": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Location_uni_int.png"
},
{
"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": "Серебряный нож 2.",
"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": "Серебряный нож 3.",
"fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
1.0,
1.0,
1.0,
1.0
]
}
]
}
]
}
}
-197
View File
@@ -1,197 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"children": [
{
"type": "Button",
"name": "phoneButton",
"horizontal_gravity": "right",
"vertical_gravity": "bottom",
"x": -46,
"y": -46,
"width": 229,
"height": 229,
"clickZoneWidth": 104,
"clickZoneHeight": 104,
"textures": {
"normal": "resources/w/ui/img/Phone001_State=Default.png",
"hover": "resources/w/ui/img/Phone001_State=Selected.png",
"pressed": "resources/w/ui/img/Phone001_State=Tap.png"
}
},
{
"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/img/Location_uni_int.png"
},
{
"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": "Серебряный нож 2.",
"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": "Серебряный нож 3.",
"fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
1.0,
1.0,
1.0,
1.0
]
}
]
}
]
}
}
@@ -1,260 +0,0 @@
{
"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/img/Location_uni_int.png"
},
{
"type": "StaticImage",
"name": "hint_darklands002",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"width": 470,
"height": 178,
"x": 0,
"y": 80,
"texture": "resources/w/ui/img/Hint_darklands002_attack.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
}
},
{
"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": "Серебряный нож 2.",
"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": "Серебряный нож 3.",
"fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
1.0,
1.0,
1.0,
1.0
]
}
]
}
]
}
}
+81 -1
View File
@@ -126,7 +126,87 @@
"hover": "resources/w/ui/img/phone2/IconMessenger001.png", "hover": "resources/w/ui/img/phone2/IconMessenger001.png",
"pressed": "resources/w/ui/img/phone2/IconMessenger001.png" "pressed": "resources/w/ui/img/phone2/IconMessenger001.png"
} }
},
{
"type": "StaticImage",
"name": "hint_m001arrow",
"width": 48,
"height": 170,
"x": -110,
"y": -400,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/hint_arrow_up.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
},
{
"type": "StaticImage",
"name": "hint_m001",
"width": 621,
"height": 234,
"x": 0,
"y": -470,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/Hint_m002.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
},
{
"type": "StaticImage",
"name": "hint_m003arrow",
"width": 48,
"height": 170,
"x": 110,
"y": 130,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/hint_arrow_down_small.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
},
{
"type": "StaticImage",
"name": "hint_m003",
"width": 636,
"height": 356,
"x": 0,
"y": 250,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/Hint_m003.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
} }
] ]
} }
} }
@@ -29,7 +29,7 @@
"y": -60, "y": -60,
"width": 882, "width": 882,
"height": 1416, "height": 1416,
"clickZoneWidth": 600, "clickZoneWidth": 600,
"clickZoneHeight": 900, "clickZoneHeight": 900,
"textures": { "textures": {
"normal": "resources/w/ui/img/phone/PhoneChatList001.png", "normal": "resources/w/ui/img/phone/PhoneChatList001.png",
@@ -241,7 +241,27 @@
] ]
} }
] ]
},
{
"type": "StaticImage",
"name": "hint_m002",
"width": 600,
"height": 234,
"x": 0,
"y": -160,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/Hint_m001.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
} }
] ]
} }
} }
@@ -1,266 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"vertical_align": "center",
"horizontal_align": "center",
"children": [
{
"type": "Button",
"name": "phoneExitButton",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 0,
"width": "match_parent",
"height": "match_parent",
"textures": {
"normal": "resources/transparent.png",
"hover": "resources/transparent.png",
"pressed": "resources/transparent.png"
}
},
{
"type": "Button",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 882,
"height": 1416,
"clickZoneWidth": 600,
"clickZoneHeight": 900,
"textures": {
"normal": "resources/w/ui/img/phone/PhoneChatList001.png",
"hover": "resources/w/ui/img/phone/PhoneChatList001.png",
"pressed": "resources/w/ui/img/phone/PhoneChatList001.png"
}
},
{
"type": "LinearLayout",
"orientation": "vertical",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"spacing": 0,
"x": 0,
"y": 0,
"width": 637.5,
"height": 800,
"children": [
{
"type": "FrameLayout",
"name": "chat1frame",
"width": 637.5,
"height": 126,
"children": [
{
"type": "TextButton",
"name": "chat1button",
"x": 0.0,
"y": 0.0,
"width": 637.5,
"height": 126,
"text": "Айпери",
"textPaddingY": 16.0,
"textPaddingX": 128.0,
"fontSize": 40,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
1.0,
1.0,
1.0,
1.0
],
"textures": {
"normal": "resources/w/ui/img/phone/ChatListItem001.png",
"hover": "resources/w/ui/img/phone/ChatListItem001.png",
"pressed": "resources/w/ui/img/phone/ChatListItem001.png"
}
},
{
"type": "StaticImage",
"name": "chat1Unread",
"x": 570,
"y": 50,
"width": 41,
"height": 41,
"texture": "resources/w/ui/img/phone/ChatListUnread1.png"
},
{
"type": "TextView",
"name": "chat1msg",
"x": 128.0,
"y": 60.0,
"width": 637.5,
"height": 126,
"text": "Бекзат, помнишь мы ски...",
"fontSize": 32,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
0.8,
0.8,
0.8,
1.0
]
}
]
},
{
"type": "FrameLayout",
"name": "chat2frame",
"width": 637.5,
"height": 126,
"children": [
{
"type": "TextButton",
"name": "chat2button",
"x": 0.0,
"y": 0.0,
"width": 637.5,
"height": 126,
"text": "Атам",
"textPaddingY": 16.0,
"textPaddingX": 128.0,
"fontSize": 40,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
1.0,
1.0,
1.0,
1.0
],
"textures": {
"normal": "resources/w/ui/img/phone/ChatListItem002.png",
"hover": "resources/w/ui/img/phone/ChatListItem002.png",
"pressed": "resources/w/ui/img/phone/ChatListItem002.png"
}
},
{
"type": "StaticImage",
"name": "chat2Unread",
"x": 570,
"y": 50,
"width": 41,
"height": 41,
"texture": "resources/w/ui/img/phone/ChatListUnread1.png"
},
{
"type": "TextView",
"name": "chat2msg",
"x": 128.0,
"y": 60.0,
"width": 637.5,
"height": 126,
"text": "Бекзат, сынок, мы c мамой...",
"fontSize": 32,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
0.8,
0.8,
0.8,
1.0
]
}
]
},
{
"type": "FrameLayout",
"name": "chat3frame",
"width": 637.5,
"height": 126,
"children": [
{
"type": "TextButton",
"name": "chat3button",
"x": 0.0,
"y": 0.0,
"width": 637.5,
"height": 126,
"text": "БишкекНовости",
"textPaddingY": 16.0,
"textPaddingX": 128.0,
"fontSize": 40,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
1.0,
1.0,
1.0,
1.0
],
"textures": {
"normal": "resources/w/ui/img/phone/ChatListItem003.png",
"hover": "resources/w/ui/img/phone/ChatListItem003.png",
"pressed": "resources/w/ui/img/phone/ChatListItem003.png"
}
},
{
"type": "StaticImage",
"name": "chat3Unread",
"x": 570,
"y": 50,
"width": 41,
"height": 41,
"texture": "resources/w/ui/img/phone/ChatListUnread1.png"
},
{
"type": "TextView",
"name": "chat3msg",
"x": 128.0,
"y": 60.0,
"width": 637.5,
"height": 124,
"text": "Жители Бишкека все чаще...",
"fontSize": 32,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
0.8,
0.8,
0.8,
1.0
]
}
]
}
]
},
{
"type": "StaticImage",
"name": "hint_m002",
"width": 600,
"height": 234,
"x": 0,
"y": -160,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/Hint_m001.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
}
@@ -1,170 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"vertical_align": "center",
"horizontal_align": "center",
"children": [
{
"type": "Button",
"name": "phoneExitButton",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 0,
"width": "match_parent",
"height": "match_parent",
"textures": {
"normal": "resources/transparent.png",
"hover": "resources/transparent.png",
"pressed": "resources/transparent.png"
}
},
{
"type": "Button",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 882,
"height": 1416,
"clickZoneWidth": 600,
"clickZoneHeight": 900,
"textures": {
"normal": "resources/w/ui/img/phone2/Phone002.png",
"hover": "resources/w/ui/img/phone2/Phone002.png",
"pressed": "resources/w/ui/img/phone2/Phone002.png"
}
},
{
"type": "StaticImage",
"name": "phoneTimeDay",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 200,
"width": 637.5,
"height": 172,
"texture": "resources/w/ui/img/phone2/ClockDay001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeNight",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 200,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui/img/phone2/ClockNight001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeDawn",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 200,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui/img/phone2/ClockMorning001.png"
},
{
"type": "Button",
"name": "phoneBank",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -110,
"y": -60,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconBank001.png",
"hover": "resources/w/ui/img/phone2/IconBank001.png",
"pressed": "resources/w/ui/img/phone2/IconBank001.png"
}
},
{
"type": "Button",
"name": "phoneTaxi",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 110,
"y": -60,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconTaxi001.png",
"hover": "resources/w/ui/img/phone2/IconTaxi001.png",
"pressed": "resources/w/ui/img/phone2/IconTaxi001.png"
}
},
{
"type": "Button",
"name": "phoneVideo",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 110,
"y": -240,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconVideo001.png",
"hover": "resources/w/ui/img/phone2/IconVideo001.png",
"pressed": "resources/w/ui/img/phone2/IconVideo001.png"
}
},
{
"type": "Button",
"name": "phoneMessenger",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -110,
"y": -240,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconMessenger001.png",
"hover": "resources/w/ui/img/phone2/IconMessenger001.png",
"pressed": "resources/w/ui/img/phone2/IconMessenger001.png"
}
},
{
"type": "StaticImage",
"name": "hint_m001arrow",
"width": 48,
"height": 170,
"x": -110,
"y": -400,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/hint_arrow_up.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m001",
"width": 621,
"height": 234,
"x": 0,
"y": -470,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/Hint_m002.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
}
@@ -1,208 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"vertical_align": "center",
"horizontal_align": "center",
"children": [
{
"type": "Button",
"name": "phoneExitButton",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 0,
"width": "match_parent",
"height": "match_parent",
"textures": {
"normal": "resources/transparent.png",
"hover": "resources/transparent.png",
"pressed": "resources/transparent.png"
}
},
{
"type": "Button",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 882,
"height": 1416,
"clickZoneWidth": 600,
"clickZoneHeight": 900,
"textures": {
"normal": "resources/w/ui/img/phone2/Phone002.png",
"hover": "resources/w/ui/img/phone2/Phone002.png",
"pressed": "resources/w/ui/img/phone2/Phone002.png"
}
},
{
"type": "StaticImage",
"name": "phoneTimeDay",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 200,
"width": 637.5,
"height": 172,
"texture": "resources/w/ui/img/phone2/ClockDay001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeNight",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 200,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui/img/phone2/ClockNight001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeDawn",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 200,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui/img/phone2/ClockMorning001.png"
},
{
"type": "Button",
"name": "phoneBank",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -110,
"y": -60,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconBank001.png",
"hover": "resources/w/ui/img/phone2/IconBank001.png",
"pressed": "resources/w/ui/img/phone2/IconBank001.png"
}
},
{
"type": "Button",
"name": "phoneTaxi",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 110,
"y": -60,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconTaxi001.png",
"hover": "resources/w/ui/img/phone2/IconTaxi001.png",
"pressed": "resources/w/ui/img/phone2/IconTaxi001.png"
}
},
{
"type": "Button",
"name": "phoneVideo",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 110,
"y": -240,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconVideo001.png",
"hover": "resources/w/ui/img/phone2/IconVideo001.png",
"pressed": "resources/w/ui/img/phone2/IconVideo001.png"
}
},
{
"type": "Button",
"name": "phoneMessenger",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -110,
"y": -240,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconMessenger001.png",
"hover": "resources/w/ui/img/phone2/IconMessenger001.png",
"pressed": "resources/w/ui/img/phone2/IconMessenger001.png"
}
},
{
"type": "StaticImage",
"name": "hint_m001arrow",
"width": 48,
"height": 170,
"x": -110,
"y": -400,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/hint_arrow_up.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m001",
"width": 621,
"height": 234,
"x": 0,
"y": -470,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/Hint_m002.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m003arrow",
"width": 48,
"height": 170,
"x" : 110,
"y" : 130,
"horizontal_gravity": "center",
"vertical_gravity" : "center",
"texture": "resources/w/ui/img/hint_arrow_down_small.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m003",
"width": 636,
"height": 356,
"x" : 0,
"y" : 250,
"horizontal_gravity": "center",
"vertical_gravity" : "center",
"texture": "resources/w/ui/img/Hint_m003.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
}
@@ -1,170 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"vertical_align": "center",
"horizontal_align": "center",
"children": [
{
"type": "Button",
"name": "phoneExitButton",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 0,
"width": "match_parent",
"height": "match_parent",
"textures": {
"normal": "resources/transparent.png",
"hover": "resources/transparent.png",
"pressed": "resources/transparent.png"
}
},
{
"type": "Button",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 882,
"height": 1416,
"clickZoneWidth": 600,
"clickZoneHeight": 900,
"textures": {
"normal": "resources/w/ui/img/phone2/Phone002.png",
"hover": "resources/w/ui/img/phone2/Phone002.png",
"pressed": "resources/w/ui/img/phone2/Phone002.png"
}
},
{
"type": "StaticImage",
"name": "phoneTimeDay",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 200,
"width": 637.5,
"height": 172,
"texture": "resources/w/ui/img/phone2/ClockDay001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeNight",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 200,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui/img/phone2/ClockNight001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeDawn",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 200,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui/img/phone2/ClockMorning001.png"
},
{
"type": "Button",
"name": "phoneBank",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -110,
"y": -60,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconBank001.png",
"hover": "resources/w/ui/img/phone2/IconBank001.png",
"pressed": "resources/w/ui/img/phone2/IconBank001.png"
}
},
{
"type": "Button",
"name": "phoneTaxi",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 110,
"y": -60,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconTaxi001.png",
"hover": "resources/w/ui/img/phone2/IconTaxi001.png",
"pressed": "resources/w/ui/img/phone2/IconTaxi001.png"
}
},
{
"type": "Button",
"name": "phoneVideo",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 110,
"y": -240,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconVideo001.png",
"hover": "resources/w/ui/img/phone2/IconVideo001.png",
"pressed": "resources/w/ui/img/phone2/IconVideo001.png"
}
},
{
"type": "Button",
"name": "phoneMessenger",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -110,
"y": -240,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconMessenger001.png",
"hover": "resources/w/ui/img/phone2/IconMessenger001.png",
"pressed": "resources/w/ui/img/phone2/IconMessenger001.png"
}
},
{
"type": "StaticImage",
"name": "hint_m003arrow",
"width": 48,
"height": 170,
"x" : 110,
"y" : 130,
"horizontal_gravity": "center",
"vertical_gravity" : "center",
"texture": "resources/w/ui/img/hint_arrow_down_small.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m003",
"width": 636,
"height": 356,
"x" : 0,
"y" : 250,
"horizontal_gravity": "center",
"vertical_gravity" : "center",
"texture": "resources/w/ui/img/Hint_m003.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
}
+81 -1
View File
@@ -126,7 +126,87 @@
"hover": "resources/w/ui/img/phone2/IconMessenger001.png", "hover": "resources/w/ui/img/phone2/IconMessenger001.png",
"pressed": "resources/w/ui/img/phone2/IconMessenger001.png" "pressed": "resources/w/ui/img/phone2/IconMessenger001.png"
} }
},
{
"type": "StaticImage",
"name": "hint_m001arrow",
"width": 170,
"height": 48,
"x": -220,
"y": 150,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/hint_arrow_left.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
},
{
"type": "StaticImage",
"name": "hint_m001",
"width": 414,
"height": 156,
"x": -420,
"y": 100,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Hint_m002.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
},
{
"type": "StaticImage",
"name": "hint_m003arrow",
"width": 170,
"height": 48,
"x": 220,
"y": 270,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/hint_arrow_right.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
},
{
"type": "StaticImage",
"name": "hint_m003",
"width": 318,
"height": 178,
"x": 420,
"y": 220,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Hint_m003.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
} }
] ]
} }
} }
+57 -37
View File
@@ -7,7 +7,7 @@
"vertical_align": "center", "vertical_align": "center",
"horizontal_align": "center", "horizontal_align": "center",
"children": [ "children": [
{ {
"type": "Button", "type": "Button",
"name": "phoneExitButton", "name": "phoneExitButton",
"horizontal_gravity": "center", "horizontal_gravity": "center",
@@ -29,7 +29,7 @@
"y": -60, "y": -60,
"width": 617.4, "width": 617.4,
"height": 991.2, "height": 991.2,
"clickZoneWidth": 500, "clickZoneWidth": 500,
"clickZoneHeight": 800, "clickZoneHeight": 800,
"textures": { "textures": {
"normal": "resources/w/ui/img/phone/PhoneChatList001.png", "normal": "resources/w/ui/img/phone/PhoneChatList001.png",
@@ -81,35 +81,35 @@
"pressed": "resources/w/ui/img/phone/ChatListItem001.png" "pressed": "resources/w/ui/img/phone/ChatListItem001.png"
} }
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "chat1Unread", "name": "chat1Unread",
"x" : 408, "x": 408,
"y" : 24, "y": 24,
"width": 28.7, "width": 28.7,
"height": 28.7, "height": 28.7,
"texture": "resources/w/ui/img/phone/ChatListUnread1.png" "texture": "resources/w/ui/img/phone/ChatListUnread1.png"
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "chat1msg", "name": "chat1msg",
"x": 100.0, "x": 100.0,
"y": 36.0, "y": 36.0,
"width": 446.25, "width": 446.25,
"height": 88.2, "height": 88.2,
"text": "Бекзат, помнишь мы ски...", "text": "Бекзат, помнишь мы ски...",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false, "textCentered": false,
"topAligned": true, "topAligned": true,
"wrap": true, "wrap": true,
"color": [ "color": [
0.8, 0.8,
0.8, 0.8,
0.8, 0.8,
1.0 1.0
] ]
} }
] ]
}, },
{ {
@@ -145,15 +145,15 @@
"pressed": "resources/w/ui/img/phone/ChatListItem002.png" "pressed": "resources/w/ui/img/phone/ChatListItem002.png"
} }
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "chat2Unread", "name": "chat2Unread",
"x" : 408, "x": 408,
"y" : 24, "y": 24,
"width": 28.7, "width": 28.7,
"height": 28.7, "height": 28.7,
"texture": "resources/w/ui/img/phone/ChatListUnread1.png" "texture": "resources/w/ui/img/phone/ChatListUnread1.png"
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "chat2msg", "name": "chat2msg",
@@ -176,7 +176,7 @@
} }
] ]
}, },
{ {
"type": "FrameLayout", "type": "FrameLayout",
"name": "chat3frame", "name": "chat3frame",
"width": 446.25, "width": 446.25,
@@ -209,15 +209,15 @@
"pressed": "resources/w/ui/img/phone/ChatListItem003.png" "pressed": "resources/w/ui/img/phone/ChatListItem003.png"
} }
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "chat3Unread", "name": "chat3Unread",
"x" : 408, "x": 408,
"y" : 24, "y": 24,
"width": 28.7, "width": 28.7,
"height": 28.7, "height": 28.7,
"texture": "resources/w/ui/img/phone/ChatListUnread1.png" "texture": "resources/w/ui/img/phone/ChatListUnread1.png"
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "chat3msg", "name": "chat3msg",
@@ -241,7 +241,27 @@
] ]
} }
] ]
},
{
"type": "StaticImage",
"name": "hint_m002",
"width": 400,
"height": 156,
"x": 420,
"y": 0,
"horizontal_gravity": "center",
"vertical_gravity": "top",
"texture": "resources/w/ui/img/Hint_m001.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
} }
] ]
} }
} }
@@ -1,266 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"vertical_align": "center",
"horizontal_align": "center",
"children": [
{
"type": "StaticImage",
"name": "hint_m002",
"width": 400,
"height": 156,
"x" : 420,
"y" : 0,
"horizontal_gravity": "center",
"vertical_gravity" : "top",
"texture": "resources/w/ui/img/Hint_m001.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "Button",
"name": "phoneExitButton",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 0,
"width": "match_parent",
"height": "match_parent",
"textures": {
"normal": "resources/transparent.png",
"hover": "resources/transparent.png",
"pressed": "resources/transparent.png"
}
},
{
"type": "Button",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 617.4,
"height": 991.2,
"clickZoneWidth": 500,
"clickZoneHeight": 800,
"textures": {
"normal": "resources/w/ui/img/phone/PhoneChatList001.png",
"hover": "resources/w/ui/img/phone/PhoneChatList001.png",
"pressed": "resources/w/ui/img/phone/PhoneChatList001.png"
}
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "top",
"horizontal_align": "center",
"spacing": 0,
"x": 0,
"y": 100,
"width": "match_parent",
"height": 800,
"children": [
{
"type": "FrameLayout",
"name": "chat1frame",
"width": 446.25,
"height": 88.2,
"children": [
{
"type": "TextButton",
"name": "chat1button",
"x": 0.0,
"y": 0.0,
"width": 446.25,
"height": 88.2,
"text": "Айпери",
"textPaddingY": 0.0,
"textPaddingX": 100.0,
"fontSize": 32,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
1.0,
1.0,
1.0,
1.0
],
"textures": {
"normal": "resources/w/ui/img/phone/ChatListItem001.png",
"hover": "resources/w/ui/img/phone/ChatListItem001.png",
"pressed": "resources/w/ui/img/phone/ChatListItem001.png"
}
},
{
"type": "StaticImage",
"name": "chat1Unread",
"x" : 408,
"y" : 24,
"width": 28.7,
"height": 28.7,
"texture": "resources/w/ui/img/phone/ChatListUnread1.png"
},
{
"type": "TextView",
"name": "chat1msg",
"x": 100.0,
"y": 36.0,
"width": 446.25,
"height": 88.2,
"text": "Бекзат, помнишь мы ски...",
"fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
0.8,
0.8,
0.8,
1.0
]
}
]
},
{
"type": "FrameLayout",
"name": "chat2frame",
"width": 446.25,
"height": 88.2,
"children": [
{
"type": "TextButton",
"name": "chat2button",
"x": 0.0,
"y": 0.0,
"width": 446.25,
"height": 88.2,
"text": "Атам",
"textPaddingY": 0.0,
"textPaddingX": 100.0,
"fontSize": 32,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
1.0,
1.0,
1.0,
1.0
],
"textures": {
"normal": "resources/w/ui/img/phone/ChatListItem002.png",
"hover": "resources/w/ui/img/phone/ChatListItem002.png",
"pressed": "resources/w/ui/img/phone/ChatListItem002.png"
}
},
{
"type": "StaticImage",
"name": "chat2Unread",
"x" : 408,
"y" : 24,
"width": 28.7,
"height": 28.7,
"texture": "resources/w/ui/img/phone/ChatListUnread1.png"
},
{
"type": "TextView",
"name": "chat2msg",
"x": 100.0,
"y": 36.0,
"width": 446.25,
"height": 88.2,
"text": "Бекзат, сынок, мы c мамой ...",
"fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
0.8,
0.8,
0.8,
1.0
]
}
]
},
{
"type": "FrameLayout",
"name": "chat3frame",
"width": 446.25,
"height": 88.2,
"children": [
{
"type": "TextButton",
"name": "chat3button",
"x": 0.0,
"y": 0.0,
"width": 446.25,
"height": 88.2,
"text": "БишкекНовости",
"textPaddingY": 0.0,
"textPaddingX": 100.0,
"fontSize": 32,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
1.0,
1.0,
1.0,
1.0
],
"textures": {
"normal": "resources/w/ui/img/phone/ChatListItem003.png",
"hover": "resources/w/ui/img/phone/ChatListItem003.png",
"pressed": "resources/w/ui/img/phone/ChatListItem003.png"
}
},
{
"type": "StaticImage",
"name": "chat3Unread",
"x" : 408,
"y" : 24,
"width": 28.7,
"height": 28.7,
"texture": "resources/w/ui/img/phone/ChatListUnread1.png"
},
{
"type": "TextView",
"name": "chat3msg",
"x": 100.0,
"y": 36.0,
"width": 446.25,
"height": 88.2,
"text": "Жители Бишкека все чаще ...",
"fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
0.8,
0.8,
0.8,
1.0
]
}
]
}
]
}
]
}
}
-170
View File
@@ -1,170 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"vertical_align": "center",
"horizontal_align": "center",
"children": [
{
"type": "Button",
"name": "phoneExitButton",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 0,
"width": "match_parent",
"height": "match_parent",
"textures": {
"normal": "resources/transparent.png",
"hover": "resources/transparent.png",
"pressed": "resources/transparent.png"
}
},
{
"type": "Button",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 617.4,
"height": 991.2,
"clickZoneWidth": 500,
"clickZoneHeight": 800,
"textures": {
"normal": "resources/w/ui/img/phone2/Phone002.png",
"hover": "resources/w/ui/img/phone2/Phone002.png",
"pressed": "resources/w/ui/img/phone2/Phone002.png"
}
},
{
"type": "StaticImage",
"name": "phoneTimeDay",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"y": 120,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui/img/phone2/ClockDay001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeNight",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"y": 120,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui/img/phone2/ClockNight001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeDawn",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"y": 120,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui/img/phone2/ClockMorning001.png"
},
{
"type": "Button",
"name": "phoneBank",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -80,
"y": -60,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconBank001.png",
"hover": "resources/w/ui/img/phone2/IconBank001.png",
"pressed": "resources/w/ui/img/phone2/IconBank001.png"
}
},
{
"type": "Button",
"name": "phoneTaxi",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 80,
"y": -60,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconTaxi001.png",
"hover": "resources/w/ui/img/phone2/IconTaxi001.png",
"pressed": "resources/w/ui/img/phone2/IconTaxi001.png"
}
},
{
"type": "Button",
"name": "phoneVideo",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 80,
"y": -190,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconVideo001.png",
"hover": "resources/w/ui/img/phone2/IconVideo001.png",
"pressed": "resources/w/ui/img/phone2/IconVideo001.png"
}
},
{
"type": "Button",
"name": "phoneMessenger",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -80,
"y": -190,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconMessenger001.png",
"hover": "resources/w/ui/img/phone2/IconMessenger001.png",
"pressed": "resources/w/ui/img/phone2/IconMessenger001.png"
}
},
{
"type": "StaticImage",
"name": "hint_m001arrow",
"width": 170,
"height": 48,
"x" : -220,
"y" : 150,
"horizontal_gravity": "center",
"vertical_gravity" : "bottom",
"texture": "resources/w/ui/img/hint_arrow_left.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m001",
"width": 414,
"height": 156,
"x" : -420,
"y" : 100,
"horizontal_gravity": "center",
"vertical_gravity" : "bottom",
"texture": "resources/w/ui/img/Hint_m002.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
}
@@ -1,208 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"vertical_align": "center",
"horizontal_align": "center",
"children": [
{
"type": "Button",
"name": "phoneExitButton",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 0,
"width": "match_parent",
"height": "match_parent",
"textures": {
"normal": "resources/transparent.png",
"hover": "resources/transparent.png",
"pressed": "resources/transparent.png"
}
},
{
"type": "Button",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 617.4,
"height": 991.2,
"clickZoneWidth": 500,
"clickZoneHeight": 800,
"textures": {
"normal": "resources/w/ui/img/phone2/Phone002.png",
"hover": "resources/w/ui/img/phone2/Phone002.png",
"pressed": "resources/w/ui/img/phone2/Phone002.png"
}
},
{
"type": "StaticImage",
"name": "phoneTimeDay",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"y": 120,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui/img/phone2/ClockDay001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeNight",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"y": 120,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui/img/phone2/ClockNight001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeDawn",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"y": 120,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui/img/phone2/ClockMorning001.png"
},
{
"type": "Button",
"name": "phoneBank",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -80,
"y": -60,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconBank001.png",
"hover": "resources/w/ui/img/phone2/IconBank001.png",
"pressed": "resources/w/ui/img/phone2/IconBank001.png"
}
},
{
"type": "Button",
"name": "phoneTaxi",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 80,
"y": -60,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconTaxi001.png",
"hover": "resources/w/ui/img/phone2/IconTaxi001.png",
"pressed": "resources/w/ui/img/phone2/IconTaxi001.png"
}
},
{
"type": "Button",
"name": "phoneVideo",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 80,
"y": -190,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconVideo001.png",
"hover": "resources/w/ui/img/phone2/IconVideo001.png",
"pressed": "resources/w/ui/img/phone2/IconVideo001.png"
}
},
{
"type": "Button",
"name": "phoneMessenger",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -80,
"y": -190,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconMessenger001.png",
"hover": "resources/w/ui/img/phone2/IconMessenger001.png",
"pressed": "resources/w/ui/img/phone2/IconMessenger001.png"
}
},
{
"type": "StaticImage",
"name": "hint_m001arrow",
"width": 170,
"height": 48,
"x": -220,
"y": 150,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/hint_arrow_left.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m001",
"width": 414,
"height": 156,
"x": -420,
"y": 100,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Hint_m002.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m003arrow",
"width": 170,
"height": 48,
"x": 220,
"y": 270,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/hint_arrow_right.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m003",
"width": 318,
"height": 178,
"x": 420,
"y": 220,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Hint_m003.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
}
-170
View File
@@ -1,170 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"vertical_align": "center",
"horizontal_align": "center",
"children": [
{
"type": "Button",
"name": "phoneExitButton",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 0,
"width": "match_parent",
"height": "match_parent",
"textures": {
"normal": "resources/transparent.png",
"hover": "resources/transparent.png",
"pressed": "resources/transparent.png"
}
},
{
"type": "Button",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 617.4,
"height": 991.2,
"clickZoneWidth": 500,
"clickZoneHeight": 800,
"textures": {
"normal": "resources/w/ui/img/phone2/Phone002.png",
"hover": "resources/w/ui/img/phone2/Phone002.png",
"pressed": "resources/w/ui/img/phone2/Phone002.png"
}
},
{
"type": "StaticImage",
"name": "phoneTimeDay",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"y": 120,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui/img/phone2/ClockDay001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeNight",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"y": 120,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui/img/phone2/ClockNight001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeDawn",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"y": 120,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui/img/phone2/ClockMorning001.png"
},
{
"type": "Button",
"name": "phoneBank",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -80,
"y": -60,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconBank001.png",
"hover": "resources/w/ui/img/phone2/IconBank001.png",
"pressed": "resources/w/ui/img/phone2/IconBank001.png"
}
},
{
"type": "Button",
"name": "phoneTaxi",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 80,
"y": -60,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconTaxi001.png",
"hover": "resources/w/ui/img/phone2/IconTaxi001.png",
"pressed": "resources/w/ui/img/phone2/IconTaxi001.png"
}
},
{
"type": "Button",
"name": "phoneVideo",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 80,
"y": -190,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconVideo001.png",
"hover": "resources/w/ui/img/phone2/IconVideo001.png",
"pressed": "resources/w/ui/img/phone2/IconVideo001.png"
}
},
{
"type": "Button",
"name": "phoneMessenger",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -80,
"y": -190,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconMessenger001.png",
"hover": "resources/w/ui/img/phone2/IconMessenger001.png",
"pressed": "resources/w/ui/img/phone2/IconMessenger001.png"
}
},
{
"type": "StaticImage",
"name": "hint_m003arrow",
"width": 170,
"height": 48,
"x" : 220,
"y" : 270,
"horizontal_gravity": "center",
"vertical_gravity" : "bottom",
"texture": "resources/w/ui/img/hint_arrow_right.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m003",
"width": 318,
"height": 178,
"x" : 420,
"y" : 220,
"horizontal_gravity": "center",
"vertical_gravity" : "bottom",
"texture": "resources/w/ui/img/Hint_m003.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
}
+10
View File
@@ -103,6 +103,16 @@
"textCentered": true, "textCentered": true,
"color": [1.0, 1.0, 1.0, 1.0] "color": [1.0, 1.0, 1.0, 1.0]
}, },
{
"type": "TextButton",
"name": "tutorialToggleButton",
"width": 500,
"height": 40,
"text": "Обучение: ВКЛ",
"fontSize": 32,
"textCentered": true,
"color": [1.0, 1.0, 1.0, 1.0]
},
{ {
"type": "TextButton", "type": "TextButton",
"name": "graphicsButton", "name": "graphicsButton",
@@ -90,6 +90,16 @@
"textCentered": true, "textCentered": true,
"color": [1.0, 1.0, 1.0, 1.0] "color": [1.0, 1.0, 1.0, 1.0]
}, },
{
"type": "TextButton",
"name": "tutorialToggleButton",
"width": 500,
"height": 40,
"text": "Обучение: ВКЛ",
"fontSize": 32,
"textCentered": true,
"color": [1.0, 1.0, 1.0, 1.0]
},
{ {
"type": "TextButton", "type": "TextButton",
"name": "graphicsButton", "name": "graphicsButton",
@@ -83,26 +83,27 @@
"vertical_gravity": "bottom", "vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Location_dorm.png" "texture": "resources/w/ui_en/img/Location_dorm.png"
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint6aarrow", "name": "hint6aarrow",
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity" : "bottom", "vertical_gravity": "bottom",
"width": 118, "width": 118,
"height": 118, "height": 118,
"x": 80, "x": 80,
"y": 60, "y": 60,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png" "texture": "resources/w/ui/img/hint_arrow_right_bottom.png",
"visible": false
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint6a", "name": "hint6a",
"width": 606, "width": 606,
"height": 207, "height": 207,
"x" : 110, "x": 110,
"y" : 80, "y": 80,
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity" : "bottom", "vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Hint6a.png", "texture": "resources/w/ui_en/img/Hint6a.png",
"pulse": { "pulse": {
"minScale": 0.92, "minScale": 0.92,
@@ -111,24 +112,26 @@
}, },
"fadeIn": { "fadeIn": {
"durationMs": 1000 "durationMs": 1000
} },
"visible": false
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint6barrow", "name": "hint6barrow",
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity": "top", "vertical_gravity": "top",
"width": 118, "width": 118,
"height": 118, "height": 118,
"x": 80, "x": 80,
"y": 200, "y": 200,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png" "texture": "resources/w/ui/img/hint_arrow_right_bottom.png",
"visible": false
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint6b", "name": "hint6b",
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity": "top", "vertical_gravity": "top",
"width": 630.4, "width": 630.4,
"height": 220.8, "height": 220.8,
"x": 80, "x": 80,
@@ -141,19 +144,20 @@
}, },
"fadeIn": { "fadeIn": {
"durationMs": 1000 "durationMs": 1000
} },
"visible": false
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint7arrow", "name": "hint7arrow",
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity" : "bottom", "vertical_gravity": "bottom",
"width": 118, "width": 118,
"height": 118, "height": 118,
"x": 80, "x": 80,
"y": 60, "y": 60,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png", "texture": "resources/w/ui/img/hint_arrow_right_bottom.png",
"visible":false, "visible": false,
"pulse": { "pulse": {
"minScale": 0.92, "minScale": 0.92,
"maxScale": 1.08, "maxScale": 1.08,
@@ -163,16 +167,16 @@
"durationMs": 1000 "durationMs": 1000
} }
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint7", "name": "hint7",
"width": 579.2, "width": 579.2,
"height": 214.4, "height": 214.4,
"x" : 110, "x": 110,
"y" : 80, "y": 80,
"visible":false, "visible": false,
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity" : "bottom", "vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Hint_m004.png", "texture": "resources/w/ui_en/img/Hint_m004.png",
"pulse": { "pulse": {
"minScale": 0.92, "minScale": 0.92,
@@ -182,7 +186,123 @@
"fadeIn": { "fadeIn": {
"durationMs": 1000 "durationMs": 1000
} }
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint2",
"width": 660,
"height": 220,
"horizontal_gravity": "center",
"texture": "resources/w/ui_en/img/Hint2.png",
"pulse": {
"minScale": 0.88,
"maxScale": 0.95,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
}
]
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint3",
"width": 692,
"height": 312,
"horizontal_gravity": "center",
"texture": "resources/w/ui_en/img/Hint3.png",
"pulse": {
"minScale": 0.88,
"maxScale": 0.95,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
}
]
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint4",
"width": 705,
"height": 234,
"horizontal_gravity": "center",
"texture": "resources/w/ui_en/img/Hint4.png",
"pulse": {
"minScale": 0.88,
"maxScale": 0.95,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
}
]
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint5",
"width": 606,
"height": 234.7,
"horizontal_gravity": "center",
"texture": "resources/w/ui_en/img/Hint5.png",
"pulse": {
"minScale": 0.88,
"maxScale": 0.95,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
}
]
} }
] ]
} }
} }
@@ -83,26 +83,27 @@
"vertical_gravity": "bottom", "vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Location_dorm.png" "texture": "resources/w/ui_en/img/Location_dorm.png"
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint6aarrow", "name": "hint6aarrow",
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity" : "bottom", "vertical_gravity": "bottom",
"width": 118, "width": 118,
"height": 118, "height": 118,
"x": 80, "x": 80,
"y": 60, "y": 60,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png" "texture": "resources/w/ui/img/hint_arrow_right_bottom.png",
"visible": false
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint6a", "name": "hint6a",
"width": 606, "width": 606,
"height": 207, "height": 207,
"x" : 110, "x": 110,
"y" : 80, "y": 80,
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity" : "bottom", "vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Hint6a.png", "texture": "resources/w/ui_en/img/Hint6a.png",
"pulse": { "pulse": {
"minScale": 0.92, "minScale": 0.92,
@@ -111,24 +112,26 @@
}, },
"fadeIn": { "fadeIn": {
"durationMs": 1000 "durationMs": 1000
} },
"visible": false
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint6barrow", "name": "hint6barrow",
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity": "top", "vertical_gravity": "top",
"width": 118, "width": 118,
"height": 118, "height": 118,
"x": 80, "x": 80,
"y": 200, "y": 200,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png" "texture": "resources/w/ui/img/hint_arrow_right_bottom.png",
"visible": false
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint6b", "name": "hint6b",
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity": "top", "vertical_gravity": "top",
"width": 630.4, "width": 630.4,
"height": 220.8, "height": 220.8,
"x": 80, "x": 80,
@@ -141,19 +144,20 @@
}, },
"fadeIn": { "fadeIn": {
"durationMs": 1000 "durationMs": 1000
} },
"visible": false
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint7arrow", "name": "hint7arrow",
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity" : "bottom", "vertical_gravity": "bottom",
"width": 118, "width": 118,
"height": 118, "height": 118,
"x": 80, "x": 80,
"y": 60, "y": 60,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png", "texture": "resources/w/ui/img/hint_arrow_right_bottom.png",
"visible":false, "visible": false,
"pulse": { "pulse": {
"minScale": 0.92, "minScale": 0.92,
"maxScale": 1.08, "maxScale": 1.08,
@@ -163,16 +167,16 @@
"durationMs": 1000 "durationMs": 1000
} }
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint7", "name": "hint7",
"width": 579.2, "width": 579.2,
"height": 214.4, "height": 214.4,
"x" : 110, "x": 110,
"y" : 80, "y": 80,
"visible":false, "visible": false,
"horizontal_gravity": "right", "horizontal_gravity": "right",
"vertical_gravity" : "bottom", "vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Hint_m004android.png", "texture": "resources/w/ui_en/img/Hint_m004android.png",
"pulse": { "pulse": {
"minScale": 0.92, "minScale": 0.92,
@@ -182,7 +186,123 @@
"fadeIn": { "fadeIn": {
"durationMs": 1000 "durationMs": 1000
} }
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint2",
"width": 660,
"height": 220,
"horizontal_gravity": "center",
"texture": "resources/w/ui_en/img/Hint2android.png",
"pulse": {
"minScale": 0.88,
"maxScale": 0.95,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
}
]
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint3",
"width": 692,
"height": 312,
"horizontal_gravity": "center",
"texture": "resources/w/ui_en/img/Hint3android.png",
"pulse": {
"minScale": 0.88,
"maxScale": 0.95,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
}
]
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint4",
"width": 705,
"height": 195,
"horizontal_gravity": "center",
"texture": "resources/w/ui_en/img/Hint4android.png",
"pulse": {
"minScale": 0.88,
"maxScale": 0.95,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
}
]
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint5",
"width": 606,
"height": 234.7,
"horizontal_gravity": "center",
"texture": "resources/w/ui_en/img/Hint5.png",
"pulse": {
"minScale": 0.88,
"maxScale": 0.95,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
}
]
} }
] ]
} }
} }
-37
View File
@@ -1,37 +0,0 @@
{
"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": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Location_dorm.png"
}
]
}
}
-65
View File
@@ -1,65 +0,0 @@
{
"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": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Location_dorm.png"
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint2",
"width": 660,
"height": 220,
"horizontal_gravity": "center",
"texture": "resources/w/ui_en/img/Hint2.png",
"pulse": {
"minScale": 0.88,
"maxScale": 0.95,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
]
}
}
-65
View File
@@ -1,65 +0,0 @@
{
"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": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Location_dorm.png"
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint2",
"width": 660,
"height": 220,
"horizontal_gravity": "center",
"texture": "resources/w/ui_en/img/Hint2android.png",
"pulse": {
"minScale": 0.88,
"maxScale": 0.95,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
]
}
}
-65
View File
@@ -1,65 +0,0 @@
{
"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": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Location_dorm.png"
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint3",
"width": 692,
"height": 312,
"horizontal_gravity": "center",
"texture": "resources/w/ui_en/img/Hint3.png",
"pulse": {
"minScale": 0.88,
"maxScale": 0.95,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
]
}
}
-65
View File
@@ -1,65 +0,0 @@
{
"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": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Location_dorm.png"
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint3",
"width": 692,
"height": 312,
"horizontal_gravity": "center",
"texture": "resources/w/ui_en/img/Hint3android.png",
"pulse": {
"minScale": 0.88,
"maxScale": 0.95,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
]
}
}
-65
View File
@@ -1,65 +0,0 @@
{
"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": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Location_dorm.png"
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint4",
"width": 705,
"height": 234,
"horizontal_gravity": "center",
"texture": "resources/w/ui_en/img/Hint4.png",
"pulse": {
"minScale": 0.88,
"maxScale": 0.95,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
]
}
}
-65
View File
@@ -1,65 +0,0 @@
{
"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": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Location_dorm.png"
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint4",
"width": 705,
"height": 195,
"horizontal_gravity": "center",
"texture": "resources/w/ui_en/img/Hint4android.png",
"pulse": {
"minScale": 0.88,
"maxScale": 0.95,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
]
}
}
-65
View File
@@ -1,65 +0,0 @@
{
"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": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Location_dorm.png"
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "center",
"horizontal_align": "center",
"spacing": 0,
"width": "match_parent",
"height": 600,
"y": 300,
"children": [
{
"type": "StaticImage",
"name": "hint5",
"width": 606,
"height": 234.7,
"horizontal_gravity": "center",
"texture": "resources/w/ui_en/img/Hint5.png",
"pulse": {
"minScale": 0.88,
"maxScale": 0.95,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
]
}
}
-101
View File
@@ -1,101 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"children": [
{
"type": "Button",
"name": "phoneButton",
"horizontal_gravity": "right",
"vertical_gravity": "bottom",
"x": -46,
"y": -46,
"width": 229,
"height": 229,
"clickZoneWidth": 104,
"clickZoneHeight": 104,
"textures": {
"normal": "resources/w/ui/img/Phone001_State=Default.png",
"hover": "resources/w/ui/img/Phone001_State=Selected.png",
"pressed": "resources/w/ui/img/Phone001_State=Tap.png"
}
},
{
"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": "StaticImage",
"name": "hint6aarrow",
"horizontal_gravity": "right",
"vertical_gravity" : "bottom",
"width": 118,
"height": 118,
"x": 80,
"y": 60,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png"
},
{
"type": "StaticImage",
"name": "hint6a",
"width": 606,
"height": 207,
"x" : 110,
"y" : 80,
"horizontal_gravity": "right",
"vertical_gravity" : "bottom",
"texture": "resources/w/ui_en/img/Hint6a.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Location_dorm.png"
}
]
}
}
-101
View File
@@ -1,101 +0,0 @@
{
"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_dorm.png"
},
{
"type": "StaticImage",
"name": "hint6barrow",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 118,
"height": 118,
"x": 80,
"y": 200,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png"
},
{
"type": "StaticImage",
"name": "hint6b",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 630.4,
"height": 220.8,
"x": 80,
"y": 100,
"texture": "resources/w/ui_en/img/Hint6b.png",
"pulse": {
"minScale": 0.82,
"maxScale": 0.9,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
}
@@ -99,38 +99,8 @@
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "bottom", "vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Location_uni_int.png" "texture": "resources/w/ui_en/img/Location_uni_int.png"
},
{
"type": "StaticImage",
"name": "hint_darklands001_arrow",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 118,
"height": 118,
"x": 80,
"y": 310,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png"
}, },
{ {
"type": "StaticImage",
"name": "hint_darklands001",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 470,
"height": 138,
"x": 100,
"y": 250,
"texture": "resources/w/ui_en/img/Hint_darklands001.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
}
},
{
"type": "FrameLayout", "type": "FrameLayout",
"vertical_align": "top", "vertical_align": "top",
"horizontal_align": "center", "horizontal_align": "center",
@@ -145,7 +115,7 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 0, "y": 0,
"visible" : false, "visible": false,
"texture": "resources/w/ui_en/img/toast/item_received001.png" "texture": "resources/w/ui_en/img/toast/item_received001.png"
}, },
{ {
@@ -155,7 +125,7 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 104, "y": 104,
"visible" : false, "visible": false,
"texture": "resources/w/ui_en/img/toast/item_removed001.png" "texture": "resources/w/ui_en/img/toast/item_removed001.png"
}, },
{ {
@@ -165,19 +135,19 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 208, "y": 208,
"visible" : false, "visible": false,
"texture": "resources/w/ui_en/img/toast/quest_completed001.png" "texture": "resources/w/ui_en/img/toast/quest_completed001.png"
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast001text", "name": "toast001text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 62, "y": 62,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "", "text": "",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -191,16 +161,16 @@
1.0 1.0
] ]
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast002text", "name": "toast002text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 166, "y": 166,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "", "text": "",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -214,16 +184,16 @@
1.0 1.0
] ]
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast003text", "name": "toast003text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 270, "y": 270,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "", "text": "",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -238,7 +208,39 @@
] ]
} }
] ]
},
{
"type": "StaticImage",
"name": "hint_darklands001_arrow",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 118,
"height": 118,
"x": 80,
"y": 310,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png",
"visible": false
},
{
"type": "StaticImage",
"name": "hint_darklands001",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 470,
"height": 138,
"x": 100,
"y": 250,
"texture": "resources/w/ui_en/img/Hint_darklands001.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
},
"visible": false
} }
] ]
} }
} }
@@ -99,38 +99,8 @@
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "bottom", "vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Location_uni_int.png" "texture": "resources/w/ui_en/img/Location_uni_int.png"
},
{
"type": "StaticImage",
"name": "hint_darklands001_arrow",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 118,
"height": 118,
"x": 80,
"y": 310,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png"
}, },
{ {
"type": "StaticImage",
"name": "hint_darklands001",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 470,
"height": 138,
"x": 100,
"y": 250,
"texture": "resources/w/ui_en/img/Hint_darklands001android.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
}
},
{
"type": "FrameLayout", "type": "FrameLayout",
"vertical_align": "top", "vertical_align": "top",
"horizontal_align": "center", "horizontal_align": "center",
@@ -145,7 +115,7 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 0, "y": 0,
"visible" : false, "visible": false,
"texture": "resources/w/ui_en/img/toast/item_received001.png" "texture": "resources/w/ui_en/img/toast/item_received001.png"
}, },
{ {
@@ -155,7 +125,7 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 104, "y": 104,
"visible" : false, "visible": false,
"texture": "resources/w/ui_en/img/toast/item_removed001.png" "texture": "resources/w/ui_en/img/toast/item_removed001.png"
}, },
{ {
@@ -165,19 +135,19 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 208, "y": 208,
"visible" : false, "visible": false,
"texture": "resources/w/ui_en/img/toast/quest_completed001.png" "texture": "resources/w/ui_en/img/toast/quest_completed001.png"
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast001text", "name": "toast001text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 62, "y": 62,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "", "text": "",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -191,16 +161,16 @@
1.0 1.0
] ]
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast002text", "name": "toast002text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 166, "y": 166,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "", "text": "",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -214,16 +184,16 @@
1.0 1.0
] ]
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast003text", "name": "toast003text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 270, "y": 270,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "", "text": "",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -238,7 +208,39 @@
] ]
} }
] ]
},
{
"type": "StaticImage",
"name": "hint_darklands001_arrow",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 118,
"height": 118,
"x": 80,
"y": 310,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png",
"visible": false
},
{
"type": "StaticImage",
"name": "hint_darklands001",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"width": 470,
"height": 138,
"x": 100,
"y": 250,
"texture": "resources/w/ui_en/img/Hint_darklands001android.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
},
"visible": false
} }
] ]
} }
} }
@@ -65,62 +65,36 @@
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "bottom", "vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Location_uni_int.png" "texture": "resources/w/ui_en/img/Location_uni_int.png"
},
{
"type": "StaticImage",
"name": "hint_darklands003_arrow",
"width": 24,
"height": 118,
"x": 210,
"y": 110,
"texture": "resources/w/ui/img/hint_arrow_up.png"
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint_darklands003",
"width": 442,
"height": 188,
"x": 130,
"y": 200,
"texture": "resources/w/ui_en/img/Hint_darklands003_hp.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
}
},
{
"type": "StaticImage",
"name": "healthBarPanel", "name": "healthBarPanel",
"width": 389, "width": 389,
"height": 132.2, "height": 132.2,
"y": -5, "y": -5,
"x": -5, "x": -5,
"horizontal_gravity": "left", "horizontal_gravity": "left",
"vertical_align": "top", "vertical_align": "top",
"texture": "resources/w/ui/img/HealthBarBase002.png" "texture": "resources/w/ui/img/HealthBarBase002.png"
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "healthBarBorder", "name": "healthBarBorder",
"width": 151.2, "width": 151.2,
"height": 22.8, "height": 22.8,
"y": 49.8, "y": 49.8,
"x": 100.6, "x": 100.6,
"horizontal_gravity": "left", "horizontal_gravity": "left",
"vertical_align": "top", "vertical_align": "top",
"texture": "resources/w/ui/img/HealthBarBack001.png" "texture": "resources/w/ui/img/HealthBarBack001.png"
}, },
{ {
"type": "Slider", "type": "Slider",
"name": "healthBarFill", "name": "healthBarFill",
"width": 151.2, "width": 151.2,
"height": 22.8, "height": 22.8,
"y": 49.8, "y": 49.8,
"x": 100.6, "x": 100.6,
"horizontal_gravity": "left", "horizontal_gravity": "left",
"vertical_gravity": "top", "vertical_gravity": "top",
"orientation": "horizontal", "orientation": "horizontal",
@@ -131,7 +105,7 @@
"track": "resources/w/ui/img/HealthBarFill001.png" "track": "resources/w/ui/img/HealthBarFill001.png"
} }
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "healthValue", "name": "healthValue",
"x": 255.0, "x": 255.0,
@@ -153,7 +127,7 @@
1.0 1.0
] ]
}, },
{ {
"type": "FrameLayout", "type": "FrameLayout",
"vertical_align": "top", "vertical_align": "top",
"horizontal_align": "center", "horizontal_align": "center",
@@ -168,7 +142,7 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 0, "y": 0,
"visible" : false, "visible": false,
"texture": "resources/w/ui_en/img/toast/item_received001.png" "texture": "resources/w/ui_en/img/toast/item_received001.png"
}, },
{ {
@@ -178,7 +152,7 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 104, "y": 104,
"visible" : false, "visible": false,
"texture": "resources/w/ui_en/img/toast/item_removed001.png" "texture": "resources/w/ui_en/img/toast/item_removed001.png"
}, },
{ {
@@ -188,19 +162,19 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 208, "y": 208,
"visible" : false, "visible": false,
"texture": "resources/w/ui_en/img/toast/quest_completed001.png" "texture": "resources/w/ui_en/img/toast/quest_completed001.png"
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast001text", "name": "toast001text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 62, "y": 62,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "", "text": "",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -214,16 +188,16 @@
1.0 1.0
] ]
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast002text", "name": "toast002text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 166, "y": 166,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "", "text": "",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -237,16 +211,16 @@
1.0 1.0
] ]
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast003text", "name": "toast003text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 270, "y": 270,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "", "text": "",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -261,7 +235,55 @@
] ]
} }
] ]
},
{
"type": "StaticImage",
"name": "hint_darklands003_arrow",
"width": 24,
"height": 118,
"x": 210,
"y": 110,
"texture": "resources/w/ui/img/hint_arrow_up.png",
"visible": false
},
{
"type": "StaticImage",
"name": "hint_darklands003",
"width": 442,
"height": 188,
"x": 130,
"y": 200,
"texture": "resources/w/ui_en/img/Hint_darklands003_hp.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
},
"visible": false
},
{
"type": "StaticImage",
"name": "hint_darklands002",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"width": 446,
"height": 158,
"x": 0,
"y": 80,
"texture": "resources/w/ui_en/img/Hint_darklands002_attack.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
},
"visible": false
} }
] ]
} }
} }
@@ -56,7 +56,7 @@
"pressed": "resources/w/ui/img/Journal001_State=Tap.png" "pressed": "resources/w/ui/img/Journal001_State=Tap.png"
} }
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "location", "name": "location",
"width": 380, "width": 380,
@@ -68,52 +68,33 @@
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "hint_darklands002",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"width": 446,
"height": 158,
"x": 0,
"y": 80,
"texture": "resources/w/ui_en/img/Hint_darklands002_attackandroid.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
}
},
{
"type": "StaticImage",
"name": "healthBarPanel", "name": "healthBarPanel",
"width": 389, "width": 389,
"height": 132.2, "height": 132.2,
"y": -5, "y": -5,
"x": -5, "x": -5,
"horizontal_gravity": "left", "horizontal_gravity": "left",
"vertical_align": "top", "vertical_align": "top",
"texture": "resources/w/ui/img/HealthBarBase002.png" "texture": "resources/w/ui/img/HealthBarBase002.png"
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "healthBarBorder", "name": "healthBarBorder",
"width": 151.2, "width": 151.2,
"height": 22.8, "height": 22.8,
"y": 49.8, "y": 49.8,
"x": 100.6, "x": 100.6,
"horizontal_gravity": "left", "horizontal_gravity": "left",
"vertical_align": "top", "vertical_align": "top",
"texture": "resources/w/ui/img/HealthBarBack001.png" "texture": "resources/w/ui/img/HealthBarBack001.png"
}, },
{ {
"type": "Slider", "type": "Slider",
"name": "healthBarFill", "name": "healthBarFill",
"width": 151.2, "width": 151.2,
"height": 22.8, "height": 22.8,
"y": 49.8, "y": 49.8,
"x": 100.6, "x": 100.6,
"horizontal_gravity": "left", "horizontal_gravity": "left",
"vertical_gravity": "top", "vertical_gravity": "top",
"orientation": "horizontal", "orientation": "horizontal",
@@ -124,7 +105,7 @@
"track": "resources/w/ui/img/HealthBarFill001.png" "track": "resources/w/ui/img/HealthBarFill001.png"
} }
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "healthValue", "name": "healthValue",
"x": 255.0, "x": 255.0,
@@ -146,7 +127,7 @@
1.0 1.0
] ]
}, },
{ {
"type": "FrameLayout", "type": "FrameLayout",
"vertical_align": "top", "vertical_align": "top",
"horizontal_align": "center", "horizontal_align": "center",
@@ -161,7 +142,7 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 0, "y": 0,
"visible" : false, "visible": false,
"texture": "resources/w/ui_en/img/toast/item_received001.png" "texture": "resources/w/ui_en/img/toast/item_received001.png"
}, },
{ {
@@ -171,7 +152,7 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 104, "y": 104,
"visible" : false, "visible": false,
"texture": "resources/w/ui_en/img/toast/item_removed001.png" "texture": "resources/w/ui_en/img/toast/item_removed001.png"
}, },
{ {
@@ -181,19 +162,19 @@
"width": 504, "width": 504,
"height": 132, "height": 132,
"y": 208, "y": 208,
"visible" : false, "visible": false,
"texture": "resources/w/ui_en/img/toast/quest_completed001.png" "texture": "resources/w/ui_en/img/toast/quest_completed001.png"
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast001text", "name": "toast001text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 62, "y": 62,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "", "text": "",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -207,16 +188,16 @@
1.0 1.0
] ]
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast002text", "name": "toast002text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 166, "y": 166,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "", "text": "",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -230,16 +211,16 @@
1.0 1.0
] ]
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "toast003text", "name": "toast003text",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "top", "vertical_gravity": "top",
"y": 270, "y": 270,
"x": 54, "x": 54,
"width": 400, "width": 400,
"height": 100, "height": 100,
"visible" : false, "visible": false,
"text": "", "text": "",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
@@ -254,6 +235,54 @@
] ]
} }
] ]
},
{
"type": "StaticImage",
"name": "hint_darklands003_arrow",
"width": 24,
"height": 118,
"x": 210,
"y": 110,
"texture": "resources/w/ui/img/hint_arrow_up.png",
"visible": false
},
{
"type": "StaticImage",
"name": "hint_darklands003",
"width": 442,
"height": 188,
"x": 130,
"y": 200,
"texture": "resources/w/ui_en/img/Hint_darklands003_hp.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
},
"visible": false
},
{
"type": "StaticImage",
"name": "hint_darklands002",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"width": 446,
"height": 158,
"x": 0,
"y": 80,
"texture": "resources/w/ui_en/img/Hint_darklands002_attackandroid.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
},
"visible": false
} }
] ]
} }
@@ -1,241 +0,0 @@
{
"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_en/img/toast/item_received001.png"
},
{
"type": "StaticImage",
"name": "toast002",
"horizontal_gravity": "center",
"width": 504,
"height": 132,
"y": 104,
"visible" : false,
"texture": "resources/w/ui_en/img/toast/item_removed001.png"
},
{
"type": "StaticImage",
"name": "toast003",
"horizontal_gravity": "center",
"width": 504,
"height": 132,
"y": 208,
"visible" : false,
"texture": "resources/w/ui_en/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
]
}
]
}
]
}
}
-214
View File
@@ -1,214 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"children": [
{
"type": "Button",
"name": "phoneButton",
"horizontal_gravity": "right",
"vertical_gravity": "bottom",
"x": -46,
"y": -46,
"width": 229,
"height": 229,
"clickZoneWidth": 104,
"clickZoneHeight": 104,
"textures": {
"normal": "resources/w/ui/img/Phone001_State=Default.png",
"hover": "resources/w/ui/img/Phone001_State=Selected.png",
"pressed": "resources/w/ui/img/Phone001_State=Tap.png"
}
},
{
"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": "Button",
"name": "darklandsButton",
"horizontal_gravity": "right",
"vertical_gravity": "top",
"x": -18,
"y": 330,
"width": 165,
"height": 165,
"clickZoneWidth": 89,
"clickZoneHeight": 89,
"textures": {
"normal": "resources/w/ui/img/Darklands002_State=Default003.png",
"hover": "resources/w/ui/img/Darklands002_State=Selected003.png",
"pressed": "resources/w/ui/img/Darklands002_State=Tap003.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": "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_en/img/toast/item_received001.png"
},
{
"type": "StaticImage",
"name": "toast002",
"horizontal_gravity": "center",
"width": 504,
"height": 132,
"y": 104,
"visible" : false,
"texture": "resources/w/ui_en/img/toast/item_removed001.png"
},
{
"type": "StaticImage",
"name": "toast003",
"horizontal_gravity": "center",
"width": 504,
"height": 132,
"y": 208,
"visible" : false,
"texture": "resources/w/ui_en/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
]
}
]
}
]
}
}
-197
View File
@@ -1,197 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"children": [
{
"type": "Button",
"name": "phoneButton",
"horizontal_gravity": "right",
"vertical_gravity": "bottom",
"x": -46,
"y": -46,
"width": 229,
"height": 229,
"clickZoneWidth": 104,
"clickZoneHeight": 104,
"textures": {
"normal": "resources/w/ui/img/Phone001_State=Default.png",
"hover": "resources/w/ui/img/Phone001_State=Selected.png",
"pressed": "resources/w/ui/img/Phone001_State=Tap.png"
}
},
{
"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": "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_en/img/toast/item_received001.png"
},
{
"type": "StaticImage",
"name": "toast002",
"horizontal_gravity": "center",
"width": 504,
"height": 132,
"y": 104,
"visible" : false,
"texture": "resources/w/ui_en/img/toast/item_removed001.png"
},
{
"type": "StaticImage",
"name": "toast003",
"horizontal_gravity": "center",
"width": 504,
"height": 132,
"y": 208,
"visible" : false,
"texture": "resources/w/ui_en/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
]
}
]
}
]
}
}
-260
View File
@@ -1,260 +0,0 @@
{
"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": "hint_darklands002",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"width": 446,
"height": 158,
"x": 0,
"y": 80,
"texture": "resources/w/ui_en/img/Hint_darklands002_attack.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 600
}
},
{
"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_en/img/toast/item_received001.png"
},
{
"type": "StaticImage",
"name": "toast002",
"horizontal_gravity": "center",
"width": 504,
"height": 132,
"y": 104,
"visible" : false,
"texture": "resources/w/ui_en/img/toast/item_removed001.png"
},
{
"type": "StaticImage",
"name": "toast003",
"horizontal_gravity": "center",
"width": 504,
"height": 132,
"y": 208,
"visible" : false,
"texture": "resources/w/ui_en/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
]
}
]
}
]
}
}
+81 -1
View File
@@ -126,7 +126,87 @@
"hover": "resources/w/ui/img/phone2/IconMessenger001.png", "hover": "resources/w/ui/img/phone2/IconMessenger001.png",
"pressed": "resources/w/ui/img/phone2/IconMessenger001.png" "pressed": "resources/w/ui/img/phone2/IconMessenger001.png"
} }
},
{
"type": "StaticImage",
"name": "hint_m001arrow",
"width": 48,
"height": 170,
"x": -110,
"y": -400,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/hint_arrow_up.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
},
{
"type": "StaticImage",
"name": "hint_m001",
"width": 621,
"height": 207,
"x": 0,
"y": -470,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui_en/img/Hint_m002.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
},
{
"type": "StaticImage",
"name": "hint_m003arrow",
"width": 48,
"height": 170,
"x": 110,
"y": 130,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/hint_arrow_down_small.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
},
{
"type": "StaticImage",
"name": "hint_m003",
"width": 636,
"height": 280,
"x": 0,
"y": 250,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui_en/img/Hint_m003.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
} }
] ]
} }
} }
@@ -29,7 +29,7 @@
"y": -60, "y": -60,
"width": 882, "width": 882,
"height": 1416, "height": 1416,
"clickZoneWidth": 600, "clickZoneWidth": 600,
"clickZoneHeight": 900, "clickZoneHeight": 900,
"textures": { "textures": {
"normal": "resources/w/ui_en/img/phone/PhoneChatList001.png", "normal": "resources/w/ui_en/img/phone/PhoneChatList001.png",
@@ -241,7 +241,27 @@
] ]
} }
] ]
},
{
"type": "StaticImage",
"name": "hint_m002",
"width": 600,
"height": 234,
"x": 0,
"y": -160,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui_en/img/Hint_m001.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
} }
] ]
} }
} }
@@ -1,266 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"vertical_align": "center",
"horizontal_align": "center",
"children": [
{
"type": "Button",
"name": "phoneExitButton",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 0,
"width": "match_parent",
"height": "match_parent",
"textures": {
"normal": "resources/transparent.png",
"hover": "resources/transparent.png",
"pressed": "resources/transparent.png"
}
},
{
"type": "Button",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 882,
"height": 1416,
"clickZoneWidth": 600,
"clickZoneHeight": 900,
"textures": {
"normal": "resources/w/ui_en/img/phone/PhoneChatList001.png",
"hover": "resources/w/ui_en/img/phone/PhoneChatList001.png",
"pressed": "resources/w/ui_en/img/phone/PhoneChatList001.png"
}
},
{
"type": "LinearLayout",
"orientation": "vertical",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"spacing": 0,
"x": 0,
"y": 0,
"width": 637.5,
"height": 800,
"children": [
{
"type": "FrameLayout",
"name": "chat1frame",
"width": 637.5,
"height": 126,
"children": [
{
"type": "TextButton",
"name": "chat1button",
"x": 0.0,
"y": 0.0,
"width": 637.5,
"height": 126,
"text": "Aiperi",
"textPaddingY": 16.0,
"textPaddingX": 128.0,
"fontSize": 40,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
1.0,
1.0,
1.0,
1.0
],
"textures": {
"normal": "resources/w/ui/img/phone/ChatListItem001.png",
"hover": "resources/w/ui/img/phone/ChatListItem001.png",
"pressed": "resources/w/ui/img/phone/ChatListItem001.png"
}
},
{
"type": "StaticImage",
"name": "chat1Unread",
"x": 570,
"y": 50,
"width": 41,
"height": 41,
"texture": "resources/w/ui/img/phone/ChatListUnread1.png"
},
{
"type": "TextView",
"name": "chat1msg",
"x": 128.0,
"y": 60.0,
"width": 637.5,
"height": 126,
"text": "Bekzat, remember we ...",
"fontSize": 32,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
0.8,
0.8,
0.8,
1.0
]
}
]
},
{
"type": "FrameLayout",
"name": "chat2frame",
"width": 637.5,
"height": 126,
"children": [
{
"type": "TextButton",
"name": "chat2button",
"x": 0.0,
"y": 0.0,
"width": 637.5,
"height": 126,
"text": "Dad",
"textPaddingY": 16.0,
"textPaddingX": 128.0,
"fontSize": 40,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
1.0,
1.0,
1.0,
1.0
],
"textures": {
"normal": "resources/w/ui/img/phone/ChatListItem002.png",
"hover": "resources/w/ui/img/phone/ChatListItem002.png",
"pressed": "resources/w/ui/img/phone/ChatListItem002.png"
}
},
{
"type": "StaticImage",
"name": "chat2Unread",
"x": 570,
"y": 50,
"width": 41,
"height": 41,
"texture": "resources/w/ui/img/phone/ChatListUnread1.png"
},
{
"type": "TextView",
"name": "chat2msg",
"x": 128.0,
"y": 60.0,
"width": 637.5,
"height": 126,
"text": "Bekzat, son, I and ...",
"fontSize": 32,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
0.8,
0.8,
0.8,
1.0
]
}
]
},
{
"type": "FrameLayout",
"name": "chat3frame",
"width": 637.5,
"height": 126,
"children": [
{
"type": "TextButton",
"name": "chat3button",
"x": 0.0,
"y": 0.0,
"width": 637.5,
"height": 126,
"text": "Bishkek.News",
"textPaddingY": 16.0,
"textPaddingX": 128.0,
"fontSize": 40,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
1.0,
1.0,
1.0,
1.0
],
"textures": {
"normal": "resources/w/ui/img/phone/ChatListItem003.png",
"hover": "resources/w/ui/img/phone/ChatListItem003.png",
"pressed": "resources/w/ui/img/phone/ChatListItem003.png"
}
},
{
"type": "StaticImage",
"name": "chat3Unread",
"x": 570,
"y": 50,
"width": 41,
"height": 41,
"texture": "resources/w/ui/img/phone/ChatListUnread1.png"
},
{
"type": "TextView",
"name": "chat3msg",
"x": 128.0,
"y": 60.0,
"width": 637.5,
"height": 124,
"text": "Bishkek residents are ...",
"fontSize": 32,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
0.8,
0.8,
0.8,
1.0
]
}
]
}
]
},
{
"type": "StaticImage",
"name": "hint_m002",
"width": 600,
"height": 234,
"x": 0,
"y": -160,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui_en/img/Hint_m001.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
}
@@ -1,170 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"vertical_align": "center",
"horizontal_align": "center",
"children": [
{
"type": "Button",
"name": "phoneExitButton",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 0,
"width": "match_parent",
"height": "match_parent",
"textures": {
"normal": "resources/transparent.png",
"hover": "resources/transparent.png",
"pressed": "resources/transparent.png"
}
},
{
"type": "Button",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 882,
"height": 1416,
"clickZoneWidth": 600,
"clickZoneHeight": 900,
"textures": {
"normal": "resources/w/ui_en/img/phone2/Phone002.png",
"hover": "resources/w/ui_en/img/phone2/Phone002.png",
"pressed": "resources/w/ui_en/img/phone2/Phone002.png"
}
},
{
"type": "StaticImage",
"name": "phoneTimeDay",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 200,
"width": 637.5,
"height": 172,
"texture": "resources/w/ui_en/img/phone2/ClockDay001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeNight",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 200,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui_en/img/phone2/ClockNight001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeDawn",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 200,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui_en/img/phone2/ClockMorning001.png"
},
{
"type": "Button",
"name": "phoneBank",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -110,
"y": -60,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconBank001.png",
"hover": "resources/w/ui/img/phone2/IconBank001.png",
"pressed": "resources/w/ui/img/phone2/IconBank001.png"
}
},
{
"type": "Button",
"name": "phoneTaxi",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 110,
"y": -60,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconTaxi001.png",
"hover": "resources/w/ui/img/phone2/IconTaxi001.png",
"pressed": "resources/w/ui/img/phone2/IconTaxi001.png"
}
},
{
"type": "Button",
"name": "phoneVideo",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 110,
"y": -240,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconVideo001.png",
"hover": "resources/w/ui/img/phone2/IconVideo001.png",
"pressed": "resources/w/ui/img/phone2/IconVideo001.png"
}
},
{
"type": "Button",
"name": "phoneMessenger",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -110,
"y": -240,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconMessenger001.png",
"hover": "resources/w/ui/img/phone2/IconMessenger001.png",
"pressed": "resources/w/ui/img/phone2/IconMessenger001.png"
}
},
{
"type": "StaticImage",
"name": "hint_m001arrow",
"width": 48,
"height": 170,
"x": -110,
"y": -400,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/hint_arrow_up.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m001",
"width": 621,
"height": 207,
"x": 0,
"y": -470,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui_en/img/Hint_m002.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
}
@@ -1,208 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"vertical_align": "center",
"horizontal_align": "center",
"children": [
{
"type": "Button",
"name": "phoneExitButton",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 0,
"width": "match_parent",
"height": "match_parent",
"textures": {
"normal": "resources/transparent.png",
"hover": "resources/transparent.png",
"pressed": "resources/transparent.png"
}
},
{
"type": "Button",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 882,
"height": 1416,
"clickZoneWidth": 600,
"clickZoneHeight": 900,
"textures": {
"normal": "resources/w/ui_en/img/phone2/Phone002.png",
"hover": "resources/w/ui_en/img/phone2/Phone002.png",
"pressed": "resources/w/ui_en/img/phone2/Phone002.png"
}
},
{
"type": "StaticImage",
"name": "phoneTimeDay",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 200,
"width": 637.5,
"height": 172,
"texture": "resources/w/ui_en/img/phone2/ClockDay001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeNight",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 200,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui_en/img/phone2/ClockNight001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeDawn",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 200,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui_en/img/phone2/ClockMorning001.png"
},
{
"type": "Button",
"name": "phoneBank",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -110,
"y": -60,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconBank001.png",
"hover": "resources/w/ui/img/phone2/IconBank001.png",
"pressed": "resources/w/ui/img/phone2/IconBank001.png"
}
},
{
"type": "Button",
"name": "phoneTaxi",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 110,
"y": -60,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconTaxi001.png",
"hover": "resources/w/ui/img/phone2/IconTaxi001.png",
"pressed": "resources/w/ui/img/phone2/IconTaxi001.png"
}
},
{
"type": "Button",
"name": "phoneVideo",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 110,
"y": -240,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconVideo001.png",
"hover": "resources/w/ui/img/phone2/IconVideo001.png",
"pressed": "resources/w/ui/img/phone2/IconVideo001.png"
}
},
{
"type": "Button",
"name": "phoneMessenger",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -110,
"y": -240,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconMessenger001.png",
"hover": "resources/w/ui/img/phone2/IconMessenger001.png",
"pressed": "resources/w/ui/img/phone2/IconMessenger001.png"
}
},
{
"type": "StaticImage",
"name": "hint_m001arrow",
"width": 48,
"height": 170,
"x": -110,
"y": -400,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/hint_arrow_up.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m001",
"width": 621,
"height": 207,
"x": 0,
"y": -470,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui_en/img/Hint_m002.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m003arrow",
"width": 48,
"height": 170,
"x" : 110,
"y" : 130,
"horizontal_gravity": "center",
"vertical_gravity" : "center",
"texture": "resources/w/ui/img/hint_arrow_down_small.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m003",
"width": 636,
"height": 280,
"x" : 0,
"y" : 250,
"horizontal_gravity": "center",
"vertical_gravity" : "center",
"texture": "resources/w/ui_en/img/Hint_m003.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
}
@@ -1,170 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"vertical_align": "center",
"horizontal_align": "center",
"children": [
{
"type": "Button",
"name": "phoneExitButton",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 0,
"width": "match_parent",
"height": "match_parent",
"textures": {
"normal": "resources/transparent.png",
"hover": "resources/transparent.png",
"pressed": "resources/transparent.png"
}
},
{
"type": "Button",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 882,
"height": 1416,
"clickZoneWidth": 600,
"clickZoneHeight": 900,
"textures": {
"normal": "resources/w/ui_en/img/phone2/Phone002.png",
"hover": "resources/w/ui_en/img/phone2/Phone002.png",
"pressed": "resources/w/ui_en/img/phone2/Phone002.png"
}
},
{
"type": "StaticImage",
"name": "phoneTimeDay",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 200,
"width": 637.5,
"height": 172,
"texture": "resources/w/ui_en/img/phone2/ClockDay001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeNight",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 200,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui_en/img/phone2/ClockNight001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeDawn",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 200,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui_en/img/phone2/ClockMorning001.png"
},
{
"type": "Button",
"name": "phoneBank",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -110,
"y": -60,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconBank001.png",
"hover": "resources/w/ui/img/phone2/IconBank001.png",
"pressed": "resources/w/ui/img/phone2/IconBank001.png"
}
},
{
"type": "Button",
"name": "phoneTaxi",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 110,
"y": -60,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconTaxi001.png",
"hover": "resources/w/ui/img/phone2/IconTaxi001.png",
"pressed": "resources/w/ui/img/phone2/IconTaxi001.png"
}
},
{
"type": "Button",
"name": "phoneVideo",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 110,
"y": -240,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconVideo001.png",
"hover": "resources/w/ui/img/phone2/IconVideo001.png",
"pressed": "resources/w/ui/img/phone2/IconVideo001.png"
}
},
{
"type": "Button",
"name": "phoneMessenger",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -110,
"y": -240,
"width": 170,
"height": 170,
"textures": {
"normal": "resources/w/ui/img/phone2/IconMessenger001.png",
"hover": "resources/w/ui/img/phone2/IconMessenger001.png",
"pressed": "resources/w/ui/img/phone2/IconMessenger001.png"
}
},
{
"type": "StaticImage",
"name": "hint_m003arrow",
"width": 48,
"height": 170,
"x" : 110,
"y" : 130,
"horizontal_gravity": "center",
"vertical_gravity" : "center",
"texture": "resources/w/ui/img/hint_arrow_down_small.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m003",
"width": 636,
"height": 280,
"x" : 0,
"y" : 250,
"horizontal_gravity": "center",
"vertical_gravity" : "center",
"texture": "resources/w/ui_en/img/Hint_m003.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
}
+84 -4
View File
@@ -21,7 +21,7 @@
"pressed": "resources/transparent.png" "pressed": "resources/transparent.png"
} }
}, },
{ {
"type": "Button", "type": "Button",
"name": "phoneMain", "name": "phoneMain",
"horizontal_gravity": "center", "horizontal_gravity": "center",
@@ -47,7 +47,7 @@
"height": 120.4, "height": 120.4,
"texture": "resources/w/ui_en/img/phone2/ClockDay001.png" "texture": "resources/w/ui_en/img/phone2/ClockDay001.png"
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "phoneTimeNight", "name": "phoneTimeNight",
"horizontal_gravity": "center", "horizontal_gravity": "center",
@@ -57,7 +57,7 @@
"height": 120.4, "height": 120.4,
"texture": "resources/w/ui_en/img/phone2/ClockNight001.png" "texture": "resources/w/ui_en/img/phone2/ClockNight001.png"
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "phoneTimeDawn", "name": "phoneTimeDawn",
"horizontal_gravity": "center", "horizontal_gravity": "center",
@@ -126,7 +126,87 @@
"hover": "resources/w/ui/img/phone2/IconMessenger001.png", "hover": "resources/w/ui/img/phone2/IconMessenger001.png",
"pressed": "resources/w/ui/img/phone2/IconMessenger001.png" "pressed": "resources/w/ui/img/phone2/IconMessenger001.png"
} }
},
{
"type": "StaticImage",
"name": "hint_m001arrow",
"width": 170,
"height": 48,
"x": -220,
"y": 150,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/hint_arrow_left.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
},
{
"type": "StaticImage",
"name": "hint_m001",
"width": 414,
"height": 138,
"x": -420,
"y": 100,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Hint_m002.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
},
{
"type": "StaticImage",
"name": "hint_m003arrow",
"width": 170,
"height": 48,
"x": 220,
"y": 270,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/hint_arrow_right.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
},
{
"type": "StaticImage",
"name": "hint_m003",
"width": 318,
"height": 140,
"x": 420,
"y": 220,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Hint_m003.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
} }
] ]
} }
} }
+57 -37
View File
@@ -7,7 +7,7 @@
"vertical_align": "center", "vertical_align": "center",
"horizontal_align": "center", "horizontal_align": "center",
"children": [ "children": [
{ {
"type": "Button", "type": "Button",
"name": "phoneExitButton", "name": "phoneExitButton",
"horizontal_gravity": "center", "horizontal_gravity": "center",
@@ -29,7 +29,7 @@
"y": -60, "y": -60,
"width": 617.4, "width": 617.4,
"height": 991.2, "height": 991.2,
"clickZoneWidth": 500, "clickZoneWidth": 500,
"clickZoneHeight": 800, "clickZoneHeight": 800,
"textures": { "textures": {
"normal": "resources/w/ui_en/img/phone/PhoneChatList001.png", "normal": "resources/w/ui_en/img/phone/PhoneChatList001.png",
@@ -81,35 +81,35 @@
"pressed": "resources/w/ui/img/phone/ChatListItem001.png" "pressed": "resources/w/ui/img/phone/ChatListItem001.png"
} }
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "chat1Unread", "name": "chat1Unread",
"x" : 408, "x": 408,
"y" : 24, "y": 24,
"width": 28.7, "width": 28.7,
"height": 28.7, "height": 28.7,
"texture": "resources/w/ui/img/phone/ChatListUnread1.png" "texture": "resources/w/ui/img/phone/ChatListUnread1.png"
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "chat1msg", "name": "chat1msg",
"x": 100.0, "x": 100.0,
"y": 36.0, "y": 36.0,
"width": 446.25, "width": 446.25,
"height": 88.2, "height": 88.2,
"text": "Bekzat, remember we ...", "text": "Bekzat, remember we ...",
"fontSize": 24, "fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf", "fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false, "textCentered": false,
"topAligned": true, "topAligned": true,
"wrap": true, "wrap": true,
"color": [ "color": [
0.8, 0.8,
0.8, 0.8,
0.8, 0.8,
1.0 1.0
] ]
} }
] ]
}, },
{ {
@@ -145,15 +145,15 @@
"pressed": "resources/w/ui/img/phone/ChatListItem002.png" "pressed": "resources/w/ui/img/phone/ChatListItem002.png"
} }
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "chat2Unread", "name": "chat2Unread",
"x" : 408, "x": 408,
"y" : 24, "y": 24,
"width": 28.7, "width": 28.7,
"height": 28.7, "height": 28.7,
"texture": "resources/w/ui/img/phone/ChatListUnread1.png" "texture": "resources/w/ui/img/phone/ChatListUnread1.png"
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "chat2msg", "name": "chat2msg",
@@ -176,7 +176,7 @@
} }
] ]
}, },
{ {
"type": "FrameLayout", "type": "FrameLayout",
"name": "chat3frame", "name": "chat3frame",
"width": 446.25, "width": 446.25,
@@ -209,15 +209,15 @@
"pressed": "resources/w/ui/img/phone/ChatListItem003.png" "pressed": "resources/w/ui/img/phone/ChatListItem003.png"
} }
}, },
{ {
"type": "StaticImage", "type": "StaticImage",
"name": "chat3Unread", "name": "chat3Unread",
"x" : 408, "x": 408,
"y" : 24, "y": 24,
"width": 28.7, "width": 28.7,
"height": 28.7, "height": 28.7,
"texture": "resources/w/ui/img/phone/ChatListUnread1.png" "texture": "resources/w/ui/img/phone/ChatListUnread1.png"
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "chat3msg", "name": "chat3msg",
@@ -241,7 +241,27 @@
] ]
} }
] ]
},
{
"type": "StaticImage",
"name": "hint_m002",
"width": 400,
"height": 156,
"x": 420,
"y": 0,
"horizontal_gravity": "center",
"vertical_gravity": "top",
"texture": "resources/w/ui_en/img/Hint_m001.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
},
"visible": false
} }
] ]
} }
} }
@@ -1,266 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"vertical_align": "center",
"horizontal_align": "center",
"children": [
{
"type": "StaticImage",
"name": "hint_m002",
"width": 400,
"height": 156,
"x" : 420,
"y" : 0,
"horizontal_gravity": "center",
"vertical_gravity" : "top",
"texture": "resources/w/ui_en/img/Hint_m001.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "Button",
"name": "phoneExitButton",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 0,
"width": "match_parent",
"height": "match_parent",
"textures": {
"normal": "resources/transparent.png",
"hover": "resources/transparent.png",
"pressed": "resources/transparent.png"
}
},
{
"type": "Button",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 617.4,
"height": 991.2,
"clickZoneWidth": 500,
"clickZoneHeight": 800,
"textures": {
"normal": "resources/w/ui_en/img/phone/PhoneChatList001.png",
"hover": "resources/w/ui_en/img/phone/PhoneChatList001.png",
"pressed": "resources/w/ui_en/img/phone/PhoneChatList001.png"
}
},
{
"type": "LinearLayout",
"orientation": "vertical",
"vertical_align": "top",
"horizontal_align": "center",
"spacing": 0,
"x": 0,
"y": 100,
"width": "match_parent",
"height": 800,
"children": [
{
"type": "FrameLayout",
"name": "chat1frame",
"width": 446.25,
"height": 88.2,
"children": [
{
"type": "TextButton",
"name": "chat1button",
"x": 0.0,
"y": 0.0,
"width": 446.25,
"height": 88.2,
"text": "Aiperi",
"textPaddingY": 0.0,
"textPaddingX": 100.0,
"fontSize": 32,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
1.0,
1.0,
1.0,
1.0
],
"textures": {
"normal": "resources/w/ui/img/phone/ChatListItem001.png",
"hover": "resources/w/ui/img/phone/ChatListItem001.png",
"pressed": "resources/w/ui/img/phone/ChatListItem001.png"
}
},
{
"type": "StaticImage",
"name": "chat1Unread",
"x" : 408,
"y" : 24,
"width": 28.7,
"height": 28.7,
"texture": "resources/w/ui/img/phone/ChatListUnread1.png"
},
{
"type": "TextView",
"name": "chat1msg",
"x": 100.0,
"y": 36.0,
"width": 446.25,
"height": 88.2,
"text": "Bekzat, remember we ...",
"fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
0.8,
0.8,
0.8,
1.0
]
}
]
},
{
"type": "FrameLayout",
"name": "chat2frame",
"width": 446.25,
"height": 88.2,
"children": [
{
"type": "TextButton",
"name": "chat2button",
"x": 0.0,
"y": 0.0,
"width": 446.25,
"height": 88.2,
"text": "Dad",
"textPaddingY": 0.0,
"textPaddingX": 100.0,
"fontSize": 32,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
1.0,
1.0,
1.0,
1.0
],
"textures": {
"normal": "resources/w/ui/img/phone/ChatListItem002.png",
"hover": "resources/w/ui/img/phone/ChatListItem002.png",
"pressed": "resources/w/ui/img/phone/ChatListItem002.png"
}
},
{
"type": "StaticImage",
"name": "chat2Unread",
"x" : 408,
"y" : 24,
"width": 28.7,
"height": 28.7,
"texture": "resources/w/ui/img/phone/ChatListUnread1.png"
},
{
"type": "TextView",
"name": "chat2msg",
"x": 100.0,
"y": 36.0,
"width": 446.25,
"height": 88.2,
"text": "Bekzat, son, I and ...",
"fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
0.8,
0.8,
0.8,
1.0
]
}
]
},
{
"type": "FrameLayout",
"name": "chat3frame",
"width": 446.25,
"height": 88.2,
"children": [
{
"type": "TextButton",
"name": "chat3button",
"x": 0.0,
"y": 0.0,
"width": 446.25,
"height": 88.2,
"text": "Bishkek.News",
"textPaddingY": 0.0,
"textPaddingX": 100.0,
"fontSize": 32,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
1.0,
1.0,
1.0,
1.0
],
"textures": {
"normal": "resources/w/ui/img/phone/ChatListItem003.png",
"hover": "resources/w/ui/img/phone/ChatListItem003.png",
"pressed": "resources/w/ui/img/phone/ChatListItem003.png"
}
},
{
"type": "StaticImage",
"name": "chat3Unread",
"x" : 408,
"y" : 24,
"width": 28.7,
"height": 28.7,
"texture": "resources/w/ui/img/phone/ChatListUnread1.png"
},
{
"type": "TextView",
"name": "chat3msg",
"x": 100.0,
"y": 36.0,
"width": 446.25,
"height": 88.2,
"text": "Bishkek residents are ...",
"fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"color": [
0.8,
0.8,
0.8,
1.0
]
}
]
}
]
}
]
}
}
-170
View File
@@ -1,170 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"vertical_align": "center",
"horizontal_align": "center",
"children": [
{
"type": "Button",
"name": "phoneExitButton",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 0,
"width": "match_parent",
"height": "match_parent",
"textures": {
"normal": "resources/transparent.png",
"hover": "resources/transparent.png",
"pressed": "resources/transparent.png"
}
},
{
"type": "Button",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 617.4,
"height": 991.2,
"clickZoneWidth": 500,
"clickZoneHeight": 800,
"textures": {
"normal": "resources/w/ui_en/img/phone2/Phone002.png",
"hover": "resources/w/ui_en/img/phone2/Phone002.png",
"pressed": "resources/w/ui_en/img/phone2/Phone002.png"
}
},
{
"type": "StaticImage",
"name": "phoneTimeDay",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"y": 120,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui_en/img/phone2/ClockDay001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeNight",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"y": 120,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui_en/img/phone2/ClockNight001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeDawn",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"y": 120,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui_en/img/phone2/ClockMorning001.png"
},
{
"type": "Button",
"name": "phoneBank",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -80,
"y": -60,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconBank001.png",
"hover": "resources/w/ui/img/phone2/IconBank001.png",
"pressed": "resources/w/ui/img/phone2/IconBank001.png"
}
},
{
"type": "Button",
"name": "phoneTaxi",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 80,
"y": -60,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconTaxi001.png",
"hover": "resources/w/ui/img/phone2/IconTaxi001.png",
"pressed": "resources/w/ui/img/phone2/IconTaxi001.png"
}
},
{
"type": "Button",
"name": "phoneVideo",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 80,
"y": -190,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconVideo001.png",
"hover": "resources/w/ui/img/phone2/IconVideo001.png",
"pressed": "resources/w/ui/img/phone2/IconVideo001.png"
}
},
{
"type": "Button",
"name": "phoneMessenger",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -80,
"y": -190,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconMessenger001.png",
"hover": "resources/w/ui/img/phone2/IconMessenger001.png",
"pressed": "resources/w/ui/img/phone2/IconMessenger001.png"
}
},
{
"type": "StaticImage",
"name": "hint_m001arrow",
"width": 170,
"height": 48,
"x" : -220,
"y" : 150,
"horizontal_gravity": "center",
"vertical_gravity" : "bottom",
"texture": "resources/w/ui/img/hint_arrow_left.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m001",
"width": 414,
"height": 138,
"x" : -420,
"y" : 100,
"horizontal_gravity": "center",
"vertical_gravity" : "bottom",
"texture": "resources/w/ui_en/img/Hint_m002.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
}
@@ -1,208 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"vertical_align": "center",
"horizontal_align": "center",
"children": [
{
"type": "Button",
"name": "phoneExitButton",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 0,
"width": "match_parent",
"height": "match_parent",
"textures": {
"normal": "resources/transparent.png",
"hover": "resources/transparent.png",
"pressed": "resources/transparent.png"
}
},
{
"type": "Button",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 617.4,
"height": 991.2,
"clickZoneWidth": 500,
"clickZoneHeight": 800,
"textures": {
"normal": "resources/w/ui_en/img/phone2/Phone002.png",
"hover": "resources/w/ui_en/img/phone2/Phone002.png",
"pressed": "resources/w/ui_en/img/phone2/Phone002.png"
}
},
{
"type": "StaticImage",
"name": "phoneTimeDay",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"y": 120,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui_en/img/phone2/ClockDay001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeNight",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"y": 120,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui_en/img/phone2/ClockNight001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeDawn",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"y": 120,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui_en/img/phone2/ClockMorning001.png"
},
{
"type": "Button",
"name": "phoneBank",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -80,
"y": -60,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconBank001.png",
"hover": "resources/w/ui/img/phone2/IconBank001.png",
"pressed": "resources/w/ui/img/phone2/IconBank001.png"
}
},
{
"type": "Button",
"name": "phoneTaxi",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 80,
"y": -60,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconTaxi001.png",
"hover": "resources/w/ui/img/phone2/IconTaxi001.png",
"pressed": "resources/w/ui/img/phone2/IconTaxi001.png"
}
},
{
"type": "Button",
"name": "phoneVideo",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 80,
"y": -190,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconVideo001.png",
"hover": "resources/w/ui/img/phone2/IconVideo001.png",
"pressed": "resources/w/ui/img/phone2/IconVideo001.png"
}
},
{
"type": "Button",
"name": "phoneMessenger",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -80,
"y": -190,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconMessenger001.png",
"hover": "resources/w/ui/img/phone2/IconMessenger001.png",
"pressed": "resources/w/ui/img/phone2/IconMessenger001.png"
}
},
{
"type": "StaticImage",
"name": "hint_m001arrow",
"width": 170,
"height": 48,
"x": -220,
"y": 150,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/hint_arrow_left.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m001",
"width": 414,
"height": 138,
"x": -420,
"y": 100,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Hint_m002.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m003arrow",
"width": 170,
"height": 48,
"x": 220,
"y": 270,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/hint_arrow_right.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m003",
"width": 318,
"height": 140,
"x": 420,
"y": 220,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui_en/img/Hint_m003.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
}
-170
View File
@@ -1,170 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"vertical_align": "center",
"horizontal_align": "center",
"children": [
{
"type": "Button",
"name": "phoneExitButton",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 0,
"width": "match_parent",
"height": "match_parent",
"textures": {
"normal": "resources/transparent.png",
"hover": "resources/transparent.png",
"pressed": "resources/transparent.png"
}
},
{
"type": "Button",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 617.4,
"height": 991.2,
"clickZoneWidth": 500,
"clickZoneHeight": 800,
"textures": {
"normal": "resources/w/ui_en/img/phone2/Phone002.png",
"hover": "resources/w/ui_en/img/phone2/Phone002.png",
"pressed": "resources/w/ui_en/img/phone2/Phone002.png"
}
},
{
"type": "StaticImage",
"name": "phoneTimeDay",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"y": 120,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui_en/img/phone2/ClockDay001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeNight",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"y": 120,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui_en/img/phone2/ClockNight001.png"
},
{
"type": "StaticImage",
"name": "phoneTimeDawn",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"y": 120,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui_en/img/phone2/ClockMorning001.png"
},
{
"type": "Button",
"name": "phoneBank",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -80,
"y": -60,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconBank001.png",
"hover": "resources/w/ui/img/phone2/IconBank001.png",
"pressed": "resources/w/ui/img/phone2/IconBank001.png"
}
},
{
"type": "Button",
"name": "phoneTaxi",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 80,
"y": -60,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconTaxi001.png",
"hover": "resources/w/ui/img/phone2/IconTaxi001.png",
"pressed": "resources/w/ui/img/phone2/IconTaxi001.png"
}
},
{
"type": "Button",
"name": "phoneVideo",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": 80,
"y": -190,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconVideo001.png",
"hover": "resources/w/ui/img/phone2/IconVideo001.png",
"pressed": "resources/w/ui/img/phone2/IconVideo001.png"
}
},
{
"type": "Button",
"name": "phoneMessenger",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -80,
"y": -190,
"width": 119,
"height": 119,
"textures": {
"normal": "resources/w/ui/img/phone2/IconMessenger001.png",
"hover": "resources/w/ui/img/phone2/IconMessenger001.png",
"pressed": "resources/w/ui/img/phone2/IconMessenger001.png"
}
},
{
"type": "StaticImage",
"name": "hint_m003arrow",
"width": 170,
"height": 48,
"x" : 220,
"y" : 270,
"horizontal_gravity": "center",
"vertical_gravity" : "bottom",
"texture": "resources/w/ui/img/hint_arrow_right.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint_m003",
"width": 318,
"height": 140,
"x" : 420,
"y" : 220,
"horizontal_gravity": "center",
"vertical_gravity" : "bottom",
"texture": "resources/w/ui_en/img/Hint_m003.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}
}
+10
View File
@@ -103,6 +103,16 @@
"textCentered": true, "textCentered": true,
"color": [1.0, 1.0, 1.0, 1.0] "color": [1.0, 1.0, 1.0, 1.0]
}, },
{
"type": "TextButton",
"name": "tutorialToggleButton",
"width": 500,
"height": 40,
"text": "",
"fontSize": 32,
"textCentered": true,
"color": [1.0, 1.0, 1.0, 1.0]
},
{ {
"type": "TextButton", "type": "TextButton",
"name": "graphicsButton", "name": "graphicsButton",
@@ -90,6 +90,16 @@
"textCentered": true, "textCentered": true,
"color": [1.0, 1.0, 1.0, 1.0] "color": [1.0, 1.0, 1.0, 1.0]
}, },
{
"type": "TextButton",
"name": "tutorialToggleButton",
"width": 500,
"height": 40,
"text": "",
"fontSize": 32,
"textCentered": true,
"color": [1.0, 1.0, 1.0, 1.0]
},
{ {
"type": "TextButton", "type": "TextButton",
"name": "graphicsButton", "name": "graphicsButton",
+2 -3
View File
@@ -16,14 +16,13 @@
namespace FRG { namespace FRG {
int Environment::windowHeaderHeight = 0; int Environment::windowHeaderHeight = 0;
int Environment::width = CONST_DEFAULT_WIDTH; int Environment::width = CONST_DEFAULT_WIDTH;
int Environment::height = CONST_DEFAULT_HEIGHT; int Environment::height = CONST_DEFAULT_HEIGHT;
float Environment::zoom = DEFAULT_ZOOM; float Environment::zoom = DEFAULT_ZOOM;
bool Environment::enableLogging = false; //bool Environment::enableLogging = false;
//bool Environment::enableLogging = true; bool Environment::enableLogging = true;
SDL_Window* Environment::window = nullptr; SDL_Window* Environment::window = nullptr;
+26 -31
View File
@@ -394,7 +394,9 @@ namespace FRG
menuManager.startGameFunc = [this]() { menuManager.startGameFunc = [this]() {
mainThreadHandler.EnqueueMainThreadTask([this]() { mainThreadHandler.EnqueueMainThreadTask([this]() {
performResetToInitialState(); performResetToInitialState();
applyTutorialSetting();
gameState.currentLocationName = "location_dorm"; gameState.currentLocationName = "location_dorm";
menuManager.showGameplayHud(); // first HUD frame drawn from the fresh state
currentLocation()->scriptEngine.callLocationEnterCallback(); currentLocation()->scriptEngine.callLocationEnterCallback();
this->audioPlayer->crossFadeMusicAsync("music/obshaga.ogg"); this->audioPlayer->crossFadeMusicAsync("music/obshaga.ogg");
menuManager.lastMusicTrack = "music/obshaga.ogg"; menuManager.lastMusicTrack = "music/obshaga.ogg";
@@ -471,14 +473,6 @@ namespace FRG
it->second->onPlayerTaxiRequired = [this]() { it->second->onPlayerTaxiRequired = [this]() {
menuManager.tutorialShowTaxiHint(); menuManager.tutorialShowTaxiHint();
}; };
menuManager.tutorialUnlockInteractiveObjectsFunc = [this]()
{
if (gameState.locations["location_dorm"])
{
gameState.locations["location_dorm"]->state.tutorialInteractiveObjectsLocked = false;
}
};
} }
void Game::performFullReset() { void Game::performFullReset() {
@@ -491,10 +485,7 @@ namespace FRG
gameState.money = 5500; gameState.money = 5500;
gameState.globalInts.clear(); gameState.globalInts.clear();
gameState.globalFloats.clear(); gameState.globalFloats.clear();
gameState.tutorialStep = TutorialStep::Step0; gameState.tutorialStep = TutorialStep::AdvanceDialogue;
gameState.uniIntTutorialState = UniIntTutorialState::Step10;
gameState.tutorialPhonePickedUp = false;
gameState.tutorialJournalPickedUp = false;
gameState.tutorialPhoneChatScreenOpened = false; gameState.tutorialPhoneChatScreenOpened = false;
gameState.tutorialJournalScreenOpened = false; gameState.tutorialJournalScreenOpened = false;
gameState.tutorialNeedOpenTaxiScreen = false; gameState.tutorialNeedOpenTaxiScreen = false;
@@ -547,7 +538,7 @@ namespace FRG
// sol2 state (GameState::load only touches map entries // sol2 state (GameState::load only touches map entries
// that already exist). // that already exist).
// Locations survive this reset, so any one-shot callbacks they consumed // Locations survive this reset, so any one-shot callbacks they consumed
// during the previous playthrough (tutorial unlock, taxi request) must be // during the previous playthrough (taxi request) must be
// re-armed here -- createLocations() normally does this, but doesn't run // re-armed here -- createLocations() normally does this, but doesn't run
// on this fast path. // on this fast path.
rearmDormOneShotCallbacks(); rearmDormOneShotCallbacks();
@@ -564,6 +555,13 @@ namespace FRG
performFullReset(); performFullReset();
} }
// Runs after either reset path. start_state.json always holds the start of the
// tutorial; a disabled tutorial is simply one that is already completed.
void Game::applyTutorialSetting() {
if (!menuManager.tutorialEnabledSetting)
gameState.tutorialStep = TutorialStep::Completed;
}
void Game::saveInitialState() { void Game::saveInitialState() {
nlohmann::json root; nlohmann::json root;
gameState.save(root); gameState.save(root);
@@ -837,7 +835,10 @@ namespace FRG
if (gameState.locations["location_dorm"]->player) if (gameState.locations["location_dorm"]->player)
gameState.locations["location_dorm"]->player->state.onDeathAnimComplete = [this]() { startDarklandsTransition(); }; gameState.locations["location_dorm"]->player->state.onDeathAnimComplete = [this]() { startDarklandsTransition(); };
gameState.locations["location_dorm"]->state.tutorialInteractiveObjectsLocked = true; // Objects can be picked up once the tutorial reaches "pick up an item".
gameState.locations["location_dorm"]->areInteractiveObjectsLocked = [this]() {
return gameState.tutorialStep < TutorialStep::PickUpItem;
};
//Dorm set up taxi: //Dorm set up taxi:
@@ -928,15 +929,13 @@ namespace FRG
} }
// Wire tutorial advance callbacks for all locations. // Wire tutorial advance callbacks for all locations.
// advanceTutorialStep() guards against double-advancing, so sharing is safe. // completeTutorialStep() only acts on the current step, so sharing is safe.
for (auto& [name, loc] : gameState.locations) { for (auto& [name, loc] : gameState.locations) {
loc->dialogueSystem.setOnDialogueAdvanced([this]() { loc->dialogueSystem.setOnDialogueAdvanced([this]() {
menuManager.advanceTutorialStep(); gameState.completeTutorialStep(TutorialStep::AdvanceDialogue);
}); });
loc->onPlayerFloorWalk = [this]() { loc->onPlayerFloorWalk = [this]() {
if (gameState.tutorialStep == TutorialStep::Step2) { gameState.completeTutorialStep(TutorialStep::Walk);
menuManager.advanceTutorialStep();
}
menuManager.onPlayerStartedWalking(); menuManager.onPlayerStartedWalking();
}; };
} }
@@ -1434,10 +1433,8 @@ namespace FRG
Environment::zoom = zoomMax; Environment::zoom = zoomMax;
} }
//logger() << "Current zoom: " << Environment::zoom << std::endl; //logger() << "Current zoom: " << Environment::zoom << std::endl;
// Tutorial step3 → step4: any mouse-wheel scroll counts as "zoom gesture". // Tutorial: any mouse-wheel scroll counts as the "zoom gesture".
if (gameState.tutorialStep == TutorialStep::Step3) { gameState.completeTutorialStep(TutorialStep::Zoom);
menuManager.advanceTutorialStep();
}
} }
if (event.type == SDL_KEYDOWN && event.key.repeat == 0) { if (event.type == SDL_KEYDOWN && event.key.repeat == 0) {
@@ -1595,11 +1592,9 @@ namespace FRG
if (newZoom > zoomMax) newZoom = zoomMax; if (newZoom > zoomMax) newZoom = zoomMax;
Environment::zoom = newZoom; Environment::zoom = newZoom;
// Tutorial step3 → step4: detect a significant pinch-zoom (≥ 2 zoom units). // Tutorial: detect a significant pinch-zoom (≥ 2 zoom units).
if (gameState.tutorialStep == TutorialStep::Step3) { if (std::abs(Environment::zoom - pinchStartZoom) >= 2.0f) {
if (std::abs(Environment::zoom - pinchStartZoom) >= 2.0f) { gameState.completeTutorialStep(TutorialStep::Zoom);
menuManager.advanceTutorialStep();
}
} }
} }
@@ -1738,16 +1733,16 @@ namespace FRG
// Forwarded for dialogue hover and (when cameraDragging) camera rotation. // Forwarded for dialogue hover and (when cameraDragging) camera rotation.
currentLocation()->handleMotion(fingerId, eventX, eventY, mx, my); currentLocation()->handleMotion(fingerId, eventX, eventY, mx, my);
// Tutorial step1 → step2: detect a significant camera rotation on BOTH axes. // Tutorial: detect a significant camera rotation on BOTH axes.
// ~0.15 rad (≈8.6°) per axis ensures the user intentionally panned in 2D, // ~0.15 rad (≈8.6°) per axis ensures the user intentionally panned in 2D,
// not just nudged a single axis by accident. // not just nudged a single axis by accident.
static constexpr float TUTORIAL_ROTATION_THRESHOLD = 0.15f; static constexpr float TUTORIAL_ROTATION_THRESHOLD = 0.15f;
if (cameraDragging if (cameraDragging
&& gameState.tutorialStep == TutorialStep::Step1) { && gameState.tutorialStep == TutorialStep::RotateCamera) {
float deltaAz = std::abs(currentLocation()->state.cameraAzimuth - dragStartAzimuth); float deltaAz = std::abs(currentLocation()->state.cameraAzimuth - dragStartAzimuth);
float deltaInc = std::abs(currentLocation()->state.cameraInclination - dragStartInclination); float deltaInc = std::abs(currentLocation()->state.cameraInclination - dragStartInclination);
if (deltaAz >= TUTORIAL_ROTATION_THRESHOLD && deltaInc >= TUTORIAL_ROTATION_THRESHOLD) { if (deltaAz >= TUTORIAL_ROTATION_THRESHOLD && deltaInc >= TUTORIAL_ROTATION_THRESHOLD) {
menuManager.advanceTutorialStep(); gameState.completeTutorialStep(TutorialStep::RotateCamera);
} }
} }
} }
+3 -1
View File
@@ -137,9 +137,11 @@ namespace FRG {
// never synchronously from a Lua/cutscene call stack. // never synchronously from a Lua/cutscene call stack.
void performResetToInitialState(); void performResetToInitialState();
void performFullReset(); void performFullReset();
// Applies MenuManager::tutorialEnabledSetting to the freshly reset state (new games only).
void applyTutorialSetting();
void saveInitialState(); void saveInitialState();
// (Re-)arms one-shot gameplay callbacks (tutorial unlock, taxi request) that // (Re-)arms one-shot gameplay callbacks (taxi request) that
// createLocations() wires up but that get consumed (set to nullptr) once used // createLocations() wires up but that get consumed (set to nullptr) once used
// during play. Must be called after gameState.load() on the fast reset path, // during play. Must be called after gameState.load() on the fast reset path,
// since that path keeps the existing Location objects instead of recreating them. // since that path keeps the existing Location objects instead of recreating them.
+27 -8
View File
@@ -5,6 +5,27 @@
namespace FRG { namespace FRG {
// Saves made before the tutorial rework kept the dorm and the university tutorials
// as two state machines (tutorialStep 0..6 + uniIntTutorialState 0..4); map them
// onto the single TutorialStep sequence.
static TutorialStep migrateLegacyTutorialStep(int dormStep, int uniIntState)
{
if (dormStep <= 4) return static_cast<TutorialStep>(dormStep); // Step0..Step4 kept their values
switch (uniIntState) {
case 2: return TutorialStep::DarklandsHealth; // DarklandsActive
case 3: return TutorialStep::DarklandsAttack; // DarklandsStep13
case 4: return TutorialStep::Completed; // DarklandsFull
default: return TutorialStep::EnterDarklands; // Step10 / Step11
}
}
bool GameState::completeTutorialStep(TutorialStep step)
{
if (tutorialStep != step || step == TutorialStep::Completed) return false;
tutorialStep = static_cast<TutorialStep>(static_cast<int>(step) + 1);
return true;
}
void GameState::save(nlohmann::json& out) const void GameState::save(nlohmann::json& out) const
{ {
// Timestamp // Timestamp
@@ -35,10 +56,7 @@ void GameState::save(nlohmann::json& out) const
out["globalFloats"] = std::move(gf); out["globalFloats"] = std::move(gf);
// --- Tutorial --- // --- Tutorial ---
out["tutorialStep"] = static_cast<int>(tutorialStep); out["tutorialStep"] = static_cast<int>(tutorialStep);
out["uniIntTutorialState"] = static_cast<int>(uniIntTutorialState);
out["tutorialPhonePickedUp"] = tutorialPhonePickedUp;
out["tutorialJournalPickedUp"] = tutorialJournalPickedUp;
out["tutorialPhoneChatScreenOpened"] = tutorialPhoneChatScreenOpened; out["tutorialPhoneChatScreenOpened"] = tutorialPhoneChatScreenOpened;
out["tutorialJournalScreenOpened"] = tutorialJournalScreenOpened; out["tutorialJournalScreenOpened"] = tutorialJournalScreenOpened;
out["tutorialNeedOpenTaxiScreen"] = tutorialNeedOpenTaxiScreen; out["tutorialNeedOpenTaxiScreen"] = tutorialNeedOpenTaxiScreen;
@@ -118,10 +136,11 @@ void GameState::load(const nlohmann::json& in)
//logger() << "GameState::load step 5" << std::endl; //logger() << "GameState::load step 5" << std::endl;
// --- Tutorial --- // --- Tutorial ---
tutorialStep = static_cast<TutorialStep>(in.value("tutorialStep", static_cast<int>(tutorialStep))); if (in.contains("uniIntTutorialState")) {
uniIntTutorialState = static_cast<UniIntTutorialState>(in.value("uniIntTutorialState", static_cast<int>(uniIntTutorialState))); tutorialStep = migrateLegacyTutorialStep(in.value("tutorialStep", 0), in["uniIntTutorialState"].get<int>());
tutorialPhonePickedUp = in.value("tutorialPhonePickedUp", tutorialPhonePickedUp); } else {
tutorialJournalPickedUp = in.value("tutorialJournalPickedUp", tutorialJournalPickedUp); tutorialStep = static_cast<TutorialStep>(in.value("tutorialStep", static_cast<int>(tutorialStep)));
}
tutorialPhoneChatScreenOpened = in.value("tutorialPhoneChatScreenOpened", tutorialPhoneChatScreenOpened); tutorialPhoneChatScreenOpened = in.value("tutorialPhoneChatScreenOpened", tutorialPhoneChatScreenOpened);
tutorialJournalScreenOpened = in.value("tutorialJournalScreenOpened", tutorialJournalScreenOpened); tutorialJournalScreenOpened = in.value("tutorialJournalScreenOpened", tutorialJournalScreenOpened);
tutorialNeedOpenTaxiScreen = in.value("tutorialNeedOpenTaxiScreen", tutorialNeedOpenTaxiScreen); tutorialNeedOpenTaxiScreen = in.value("tutorialNeedOpenTaxiScreen", tutorialNeedOpenTaxiScreen);
+22 -22
View File
@@ -11,22 +11,20 @@
namespace FRG { namespace FRG {
// The tutorial is one linear sequence: each step shows its hint until the player
// performs the action, then moves on to the next step (GameState::completeTutorialStep).
// Values are saved; AdvanceDialogue..PickUpItem keep the numbers of the old Step0..Step4.
enum class TutorialStep { enum class TutorialStep {
Step0, // Dialogue hint: "click to advance" AdvanceDialogue, // dorm: "click to advance the dialogue"
Step1, // Camera rotation hint RotateCamera, // dorm
Step2, // Floor tap / walk hint Walk, // dorm: tap the floor
Step3, // Pinch-zoom hint Zoom, // dorm; interactive objects stay locked until this is done
Step4, // Pick-up item hint PickUpItem, // dorm: take the phone or the journal
Step5, // Post-pickup reaction EnterDarklands, // uni_interior: press the darklands button (once the spell note is picked up)
Step6, // Tutorial complete DarklandsHealth, // uni_interior darklands: health bar hint, until the player walks
}; DarklandsExplore, // uni_interior darklands: no hint, until the ghost zone is reached
DarklandsAttack, // uni_interior darklands: attack hint, until an enemy is killed
enum class UniIntTutorialState { Completed // no more hints; a new game starts here when the tutorial is disabled
Step10,
Step11,
DarklandsActive,
DarklandsStep13,
DarklandsFull
}; };
struct StoredChatMessage { struct StoredChatMessage {
@@ -56,13 +54,15 @@ struct GameState : public ISaveable {
Quest::QuestJournal questJournal; Quest::QuestJournal questJournal;
// --- Tutorial --- // --- Tutorial ---
TutorialStep tutorialStep = TutorialStep::Step0; TutorialStep tutorialStep = TutorialStep::AdvanceDialogue;
UniIntTutorialState uniIntTutorialState = UniIntTutorialState::Step10; // Hints that run alongside the linear steps, until the tutorial is Completed.
bool tutorialPhonePickedUp = false; bool tutorialPhoneChatScreenOpened = false; // "open the messenger" hint is done
bool tutorialJournalPickedUp = false; bool tutorialJournalScreenOpened = false; // "open the journal" hint is done
bool tutorialPhoneChatScreenOpened = false; bool tutorialNeedOpenTaxiScreen = false; // "call a taxi" hint is showing
bool tutorialJournalScreenOpened = false;
bool tutorialNeedOpenTaxiScreen = false; bool isTutorialActive() const { return tutorialStep != TutorialStep::Completed; }
// Moves to the next step if `step` is the current one; returns whether it did.
bool completeTutorialStep(TutorialStep step);
// --- Phone / chat --- // --- Phone / chat ---
bool chatUnread[3] = { true, true, true }; bool chatUnread[3] = { true, true, true };
+1 -1
View File
@@ -1631,7 +1631,7 @@ namespace FRG
// Check if player reached target interactive object // Check if player reached target interactive object
if (auto* obj = getTargetInteractiveObject(); if (auto* obj = getTargetInteractiveObject();
!state.tutorialInteractiveObjectsLocked && obj && player && !obj->state.isAnimating) !(areInteractiveObjectsLocked && areInteractiveObjectsLocked()) && obj && player && !obj->state.isAnimating)
{ {
const Eigen::Vector3f& approachTarget = obj->state.hasInteractionPosition const Eigen::Vector3f& approachTarget = obj->state.hasInteractionPosition
? obj->state.interactionPosition ? obj->state.interactionPosition
+6 -2
View File
@@ -101,14 +101,18 @@ namespace FRG
std::function<void()> onPlayerTaxiRequired; std::function<void()> onPlayerTaxiRequired;
// Optional, set by Game. While it returns true the player can't pick up /
// use interactive objects (the dorm tutorial unlocks them step by step).
std::function<bool()> areInteractiveObjectsLocked;
// Set by Game after setup(). Lua and onDeathAnimComplete call this to // Set by Game after setup(). Lua and onDeathAnimComplete call this to
// request the transition without coupling Location to Game directly. // request the transition without coupling Location to Game directly.
std::function<bool()> requestDarklandsTransition; std::function<bool()> requestDarklandsTransition;
std::function<void(bool, bool)> requestNightDayTransition; std::function<void(bool, bool)> requestNightDayTransition;
// Set by Game after setup(). Lua calls this to advance the uni_interior HUD // Set by Game after setup(). Lua calls this to advance the uni_interior darklands
// from step12 to step13 (trigger-zone encounter hint). // tutorial to the attack hint (trigger-zone encounter).
std::function<void()> requestAdvanceDarklandsHud; std::function<void()> requestAdvanceDarklandsHud;
std::function<void()> requestClosePhone; std::function<void()> requestClosePhone;
-2
View File
@@ -17,7 +17,6 @@ void LocationState::save(nlohmann::json& out) const
out["isNight"] = isNight; out["isNight"] = isNight;
out["isDawn"] = isDawn; out["isDawn"] = isDawn;
out["tutorialInteractiveObjectsLocked"] = tutorialInteractiveObjectsLocked;
// Taxi stuff: // Taxi stuff:
@@ -122,7 +121,6 @@ void LocationState::load(const nlohmann::json& in)
isNight = in.value("isNight", false); isNight = in.value("isNight", false);
isDawn = in.value("isDawn", false); isDawn = in.value("isDawn", false);
tutorialInteractiveObjectsLocked = in.value("tutorialInteractiveObjectsLocked", false);
//logger() << "LocationState::load step 2" << std::endl; //logger() << "LocationState::load step 2" << std::endl;
-3
View File
@@ -24,9 +24,6 @@ struct LocationState : public ISaveable {
bool isNight = false; bool isNight = false;
bool isDawn = false; bool isDawn = false;
// ---- Tutorial ----
bool tutorialInteractiveObjectsLocked = false;
NpcCar taxiCarInitialState; NpcCar taxiCarInitialState;
NpcCar taxiCar; NpcCar taxiCar;
+133 -398
View File
@@ -247,49 +247,17 @@ namespace FRG {
} }
void MenuManager::loadUiRoots(const std::string& zipFile) { void MenuManager::loadUiRoots(const std::string& zipFile) {
hudRoot = loadLocalizedUi("resources/w/ui/hud_step0.json", zipFile);
#if defined(__ANDROID__)
hudStep1Root = loadLocalizedUi("resources/w/ui/hud_step1android.json", zipFile);
hudStep2Root = loadLocalizedUi("resources/w/ui/hud_step2android.json", zipFile);
#else
hudStep1Root = loadLocalizedUi("resources/w/ui/hud_step1.json", zipFile);
hudStep2Root = loadLocalizedUi("resources/w/ui/hud_step2.json", zipFile);
#endif
#ifdef __ANDROID__ #ifdef __ANDROID__
hudStep3Root = loadLocalizedUi("resources/w/ui/hud_step3android.json", zipFile); hudDormRoot = loadLocalizedUi("resources/w/ui/hud_dorm_android.json", zipFile);
hudUniIntRoot = loadLocalizedUi("resources/w/ui/hud_uni_int_android.json", zipFile);
hudUniIntDarkRoot = loadLocalizedUi("resources/w/ui/hud_uni_int_dark_android.json", zipFile);
#else #else
hudStep3Root = loadLocalizedUi("resources/w/ui/hud_step3.json", zipFile); hudDormRoot = loadLocalizedUi("resources/w/ui/hud_dorm.json", zipFile);
hudUniIntRoot = loadLocalizedUi("resources/w/ui/hud_uni_int.json", zipFile);
hudUniIntDarkRoot = loadLocalizedUi("resources/w/ui/hud_uni_int_dark.json", zipFile);
#endif #endif
hudUniExtRoot = loadLocalizedUi("resources/w/ui/hud_uni_ext.json", zipFile);
hudStep4Root = loadLocalizedUi("resources/w/ui/hud_step4.json", zipFile); hudUniExtDarkRoot = loadLocalizedUi("resources/w/ui/hud_uni_ext_dark.json", zipFile);
hudStep5aRoot = loadLocalizedUi("resources/w/ui/hud_step5a.json", zipFile);
hudStep5bRoot = loadLocalizedUi("resources/w/ui/hud_step5b.json", zipFile);
#ifdef __ANDROID__
hudStep5abRoot = loadLocalizedUi("resources/w/ui/hud_step5abandroid.json", zipFile);
#else
hudStep5abRoot = loadLocalizedUi("resources/w/ui/hud_step5ab.json", zipFile);
#endif
hudUniExtRoot = loadLocalizedUi("resources/w/ui/hud_uni_ext.json", zipFile);
hudUniIntStep10Root = loadLocalizedUi("resources/w/ui/hud_uni_int_step10.json", zipFile);
#ifdef __ANDROID__
hudUniIntStep11Root = loadLocalizedUi("resources/w/ui/hud_uni_int_step11android.json", zipFile);
#else
hudUniIntStep11Root = loadLocalizedUi("resources/w/ui/hud_uni_int_step11.json", zipFile);
#endif
hudUniIntStep12Root = loadLocalizedUi("resources/w/ui/hud_uni_int_step12.json", zipFile);
#ifdef __ANDROID__
hudUniIntStep13Root = loadLocalizedUi("resources/w/ui/hud_uni_int_step13android.json", zipFile);
#else
hudUniIntStep13Root = loadLocalizedUi("resources/w/ui/hud_uni_int_step13.json", zipFile);
#endif
hudUniIntFullRoot = loadLocalizedUi("resources/w/ui/hud_uni_int_full.json", zipFile);
hudUniIntDarkFullRoot = loadLocalizedUi("resources/w/ui/hud_uni_int_dark_full.json", zipFile);
hudUniExtDarkRoot = loadLocalizedUi("resources/w/ui/hud_uni_ext_dark.json", zipFile);
//hudCutsceneRoot_ = loadLocalizedUi("resources/w/ui/hud_cutscene.json", zipFile); //hudCutsceneRoot_ = loadLocalizedUi("resources/w/ui/hud_cutscene.json", zipFile);
hudCutsceneRoot_ = loadUiFromFile("resources/w/ui/hud_cutscene.json", renderer, zipFile); hudCutsceneRoot_ = loadUiFromFile("resources/w/ui/hud_cutscene.json", renderer, zipFile);
@@ -298,9 +266,6 @@ namespace FRG {
hudTopHintRoot_ = loadLocalizedUi("resources/w/ui/hud_top_hint01.json", zipFile); hudTopHintRoot_ = loadLocalizedUi("resources/w/ui/hud_top_hint01.json", zipFile);
phoneMainRoot = loadLocalizedUi("resources/w/ui/screen_phone.json", zipFile); phoneMainRoot = loadLocalizedUi("resources/w/ui/screen_phone.json", zipFile);
phoneMainHintARoot = loadLocalizedUi("resources/w/ui/screen_phone_hint001.json", zipFile);
phoneMainHintBRoot = loadLocalizedUi("resources/w/ui/screen_phone_hint002.json", zipFile);
phoneMainHintABRoot = loadLocalizedUi("resources/w/ui/screen_phone_hint001_002.json", zipFile);
phoneBankRoot = loadLocalizedUi("resources/w/ui/screen_phone_bank.json", zipFile); phoneBankRoot = loadLocalizedUi("resources/w/ui/screen_phone_bank.json", zipFile);
phoneVideoRoot = loadLocalizedUi("resources/w/ui/screen_phone_video.json", zipFile); phoneVideoRoot = loadLocalizedUi("resources/w/ui/screen_phone_video.json", zipFile);
@@ -308,18 +273,13 @@ namespace FRG {
phoneMapUniRoot = loadLocalizedUi("resources/w/ui/screen_phone_map_uni.json", zipFile); phoneMapUniRoot = loadLocalizedUi("resources/w/ui/screen_phone_map_uni.json", zipFile);
verticalPhoneMainRoot = loadLocalizedUi("resources/w/ui/portrait_screen_phone.json", zipFile); verticalPhoneMainRoot = loadLocalizedUi("resources/w/ui/portrait_screen_phone.json", zipFile);
verticalPhoneMainHintARoot = loadLocalizedUi("resources/w/ui/portrait_screen_phone_hint001.json", zipFile);
verticalPhoneMainHintBRoot = loadLocalizedUi("resources/w/ui/portrait_screen_phone_hint002.json", zipFile);
verticalPhoneMainHintABRoot= loadLocalizedUi("resources/w/ui/portrait_screen_phone_hint001_002.json", zipFile);
verticalPhoneBankRoot = loadLocalizedUi("resources/w/ui/portrait_screen_phone_bank.json", zipFile); verticalPhoneBankRoot = loadLocalizedUi("resources/w/ui/portrait_screen_phone_bank.json", zipFile);
verticalPhoneVideoRoot = loadLocalizedUi("resources/w/ui/portrait_screen_phone_video.json", zipFile); verticalPhoneVideoRoot = loadLocalizedUi("resources/w/ui/portrait_screen_phone_video.json", zipFile);
verticalPhoneMapDormRoot = loadLocalizedUi("resources/w/ui/portrait_screen_phone_map_dorm.json", zipFile); verticalPhoneMapDormRoot = loadLocalizedUi("resources/w/ui/portrait_screen_phone_map_dorm.json", zipFile);
verticalPhoneMapUniRoot = loadLocalizedUi("resources/w/ui/portrait_screen_phone_map_uni.json", zipFile); verticalPhoneMapUniRoot = loadLocalizedUi("resources/w/ui/portrait_screen_phone_map_uni.json", zipFile);
phoneChatListRoot = loadLocalizedUi("resources/w/ui/screen_phone_chat_list.json", zipFile); phoneChatListRoot = loadLocalizedUi("resources/w/ui/screen_phone_chat_list.json", zipFile);
phoneChatListHintRoot = loadLocalizedUi("resources/w/ui/screen_phone_chat_list_hint001.json", zipFile);
verticalPhoneChatListRoot = loadLocalizedUi("resources/w/ui/portrait_screen_phone_chat_list.json", zipFile); verticalPhoneChatListRoot = loadLocalizedUi("resources/w/ui/portrait_screen_phone_chat_list.json", zipFile);
verticalPhoneChatListHintRoot = loadLocalizedUi("resources/w/ui/portrait_screen_phone_chat_list_hint001.json", zipFile);
phoneChat1Root = loadLocalizedUi("resources/w/ui/screen_phone_chat1.json", zipFile); phoneChat1Root = loadLocalizedUi("resources/w/ui/screen_phone_chat1.json", zipFile);
phoneChat2Root = loadLocalizedUi("resources/w/ui/screen_phone_chat2.json", zipFile); phoneChat2Root = loadLocalizedUi("resources/w/ui/screen_phone_chat2.json", zipFile);
phoneChat3Root = loadLocalizedUi("resources/w/ui/screen_phone_chat3.json", zipFile); phoneChat3Root = loadLocalizedUi("resources/w/ui/screen_phone_chat3.json", zipFile);
@@ -417,64 +377,83 @@ namespace FRG {
} }
void MenuManager::enterGameplay(bool isFromLoad) { void MenuManager::enterGameplay(bool isFromLoad) {
if (!isFromLoad && uiState_ == GameUiState::MainMenu && startGameFunc) startGameFunc();
uiState_ = GameUiState::Gameplay;
uiManager.replaceRoot(hudRoot);
topUiManager.replaceRoot(hudTopHintRoot_);
if (isFromLoad) { if (isFromLoad) {
uiManager.clearMenuStack(); uiManager.clearMenuStack();
topUiManager.clearMenuStack(); topUiManager.clearMenuStack();
} }
// A new game resets the state on a later main-thread task, which then shows the
applyCurrentHealthBar(); // HUD itself; the main menu stays up until then. Showing the HUD now would draw
// one frame from the previous game's state (e.g. its phone/journal buttons).
uiManager.setButtonCallback("inventoryButton", [this](const std::string&) { if (!isFromLoad && uiState_ == GameUiState::MainMenu && startGameFunc)
openInventory(); startGameFunc();
}); else
if (uiManager.findButton("settingsButton")) { showGameplayHud();
uiManager.setButtonCallback("settingsButton", [this](const std::string&) {
showModalMenuScreen();
});
}
if (isFromLoad)
applyHudForCurrentState();
} }
void MenuManager::applyHudForCurrentState() { std::shared_ptr<UiNode> MenuManager::gameplayHudRoot() const {
// Clear the step-0 dialogue hint unless we're actually at step 0.
if (gameState_.tutorialStep != TutorialStep::Step0)
topUiManager.replaceRoot(nullptr);
const std::string& loc = gameState_.currentLocationName; const std::string& loc = gameState_.currentLocationName;
if (loc == "uni_exterior") return gameState_.isDarklands ? hudUniExtDarkRoot : hudUniExtRoot;
if (loc == "uni_interior") return gameState_.isDarklands ? hudUniIntDarkRoot : hudUniIntRoot;
return hudDormRoot; // dorm, or a new game before the location is set
}
// Non-dorm locations: reuse the existing location-change logic. void MenuManager::showGameplayHud() {
if (loc == "uni_exterior" || loc == "uni_interior") { uiState_ = GameUiState::Gameplay;
onLocationChanged(loc); uiManager.replaceRoot(gameplayHudRoot());
return; applyCurrentHealthBar();
setupGameplayHudCallbacks();
refreshHudVisibility();
}
void MenuManager::refreshHudVisibility() {
if (!inventory) return; // update() already ticks during loading, before setup()
const TutorialStep step = gameState_.tutorialStep;
const bool tutorial = gameState_.isTutorialActive();
const bool hasPhone = inventory->hasItem("phone");
const bool hasJournal = inventory->hasItem("journal");
const bool hasNote = inventory->hasItem("note_spell");
const bool dark = gameState_.isDarklands;
auto show = [this](std::initializer_list<const char*> names, bool visible) {
for (const char* name : names) uiManager.setNodeVisible(name, visible);
};
// --- HUD buttons: present while the matching item is in the inventory ---
show({ "inventoryButton" }, inventory->getCount() > 0);
show({ "phoneButton" }, hasPhone && !dark);
show({ "journalButton" }, hasJournal);
show({ "darklandsButton" }, hasNote && !dark);
// --- Tutorial hints ---
// The dialogue hint lives in topUiManager so it is drawn above the dialogue.
if (!cutsceneHudActive_) {
auto topRoot = (step == TutorialStep::AdvanceDialogue) ? hudTopHintRoot_ : nullptr;
if (topUiManager.getRoot() != topRoot) topUiManager.replaceRoot(topRoot);
} }
// Dorm (or pre-first-teleport): select HUD root by tutorial step. // Dorm HUD: one hint per linear step...
std::shared_ptr<UiNode> nextRoot; show({ "hint2" }, step == TutorialStep::RotateCamera);
switch (gameState_.tutorialStep) { show({ "hint3" }, step == TutorialStep::Walk);
case TutorialStep::Step0: nextRoot = hudRoot; break; show({ "hint4" }, step == TutorialStep::Zoom);
case TutorialStep::Step1: nextRoot = hudStep1Root; break; show({ "hint5" }, step == TutorialStep::PickUpItem);
case TutorialStep::Step2: nextRoot = hudStep2Root; break; // ...then the hints for the picked-up items, which can be done in any order.
case TutorialStep::Step3: nextRoot = hudStep3Root; break; const bool chatHint = tutorial && !gameState_.tutorialPhoneChatScreenOpened;
case TutorialStep::Step4: nextRoot = hudStep4Root; break; const bool journalHint = tutorial && !gameState_.tutorialJournalScreenOpened;
default: break; // Step5/6 handled below const bool taxiHint = tutorial && gameState_.tutorialNeedOpenTaxiScreen;
} show({ "hint6a", "hint6aarrow" }, hasPhone && chatHint && !taxiHint);
show({ "hint6b", "hint6barrow" }, hasJournal && journalHint);
show({ "hint7", "hint7arrow" }, taxiHint);
if (nextRoot) { // Phone screens.
uiManager.replaceRoot(nextRoot); show({ "hint_m001", "hint_m001arrow" }, chatHint); // main screen: open the messenger
applyCurrentHealthBar(); show({ "hint_m003", "hint_m003arrow" }, taxiHint); // main screen: open the taxi app
uiManager.setButtonCallback("inventoryButton", [this](const std::string&) { openInventory(); }); show({ "hint_m002" }, chatHint); // chat list: open a chat
if (uiManager.findButton("settingsButton"))
uiManager.setButtonCallback("settingsButton", [this](const std::string&) { showModalMenuScreen(); }); // University interior HUDs.
} else { show({ "hint_darklands001", "hint_darklands001_arrow" }, step == TutorialStep::EnterDarklands && hasNote);
// Step5 or Step6: pick the right variant and apply hint visibility. show({ "hint_darklands003", "hint_darklands003_arrow" }, step == TutorialStep::DarklandsHealth);
refreshItemPickupHud(); show({ "hint_darklands002" }, step == TutorialStep::DarklandsAttack);
}
} }
void MenuManager::showMainMenu() { void MenuManager::showMainMenu() {
@@ -762,12 +741,35 @@ namespace FRG {
uiManager.setTextButtonCallback("soundToggleButton", [this](const std::string&) { uiManager.setTextButtonCallback("soundToggleButton", [this](const std::string&) {
audioPlayer_.setSoundEnabled(!audioPlayer_.isSoundEnabled()); audioPlayer_.setSoundEnabled(!audioPlayer_.isSoundEnabled());
const bool on = audioPlayer_.isSoundEnabled(); const bool on = audioPlayer_.isSoundEnabled();
uiManager.setTextButtonText("soundToggleButton", on ? soundToggleOn : soundToggleOff); uiManager.setTextButtonText("soundToggleButton", on ? soundToggleOn : soundToggleOff);
/*uiManager.setTextButtonColor("soundToggleButton", on /*uiManager.setTextButtonColor("soundToggleButton", on
? std::array<float, 4>{ 0.2f, 0.9f, 0.2f, 1.0f } ? std::array<float, 4>{ 0.2f, 0.9f, 0.2f, 1.0f }
: std::array<float, 4>{ 0.9f, 0.2f, 0.2f, 1.0f });*/ : std::array<float, 4>{ 0.9f, 0.2f, 0.2f, 1.0f });*/
audioPlayer_.playSoundAsync("resources/audio/751089__smallconfusion__mechanical-plastic-click-11.ogg"); audioPlayer_.playSoundAsync("resources/audio/751089__smallconfusion__mechanical-plastic-click-11.ogg");
}); });
setupTutorialToggle();
}
// Tutorial on/off button shared by the settings screens — takes effect on the next new game only.
void MenuManager::setupTutorialToggle() {
if (g_currentLanguage == Language::English)
{
tutorialToggleOn = "Tutorial: ON";
tutorialToggleOff = "Tutorial: OFF";
}
else if (g_currentLanguage == Language::Russian)
{
tutorialToggleOn = u8"Обучение: ВКЛ";
tutorialToggleOff = u8"Обучение: ВЫКЛ";
}
uiManager.setTextButtonText("tutorialToggleButton", tutorialEnabledSetting ? tutorialToggleOn : tutorialToggleOff);
uiManager.setTextButtonCallback("tutorialToggleButton", [this](const std::string&) {
tutorialEnabledSetting = !tutorialEnabledSetting;
uiManager.setTextButtonText("tutorialToggleButton", tutorialEnabledSetting ? tutorialToggleOn : tutorialToggleOff);
audioPlayer_.playSoundAsync("resources/audio/751089__smallconfusion__mechanical-plastic-click-11.ogg");
});
} }
void MenuManager::showSettingsGraphicsScreen() { void MenuManager::showSettingsGraphicsScreen() {
@@ -956,6 +958,8 @@ namespace FRG {
audioPlayer_.playSoundAsync("resources/audio/751089__smallconfusion__mechanical-plastic-click-11.ogg"); audioPlayer_.playSoundAsync("resources/audio/751089__smallconfusion__mechanical-plastic-click-11.ogg");
}); });
setupTutorialToggle();
uiManager.setTextButtonCallback("musicDownloadButton", [this](const std::string&) { uiManager.setTextButtonCallback("musicDownloadButton", [this](const std::string&) {
if (musicDownloadStarted) return; // Already downloading, ignore further clicks if (musicDownloadStarted) return; // Already downloading, ignore further clicks
@@ -1264,9 +1268,6 @@ namespace FRG {
gameState_.tutorialJournalScreenOpened = true; gameState_.tutorialJournalScreenOpened = true;
journalMenuStackDepth_ = 1; journalMenuStackDepth_ = 1;
uiManager.setNodeVisible("hint6b", false);
uiManager.setNodeVisible("hint6barrow", false);
const bool portrait = isPortraitMode(); const bool portrait = isPortraitMode();
uiManager.pushMenuFromSavedRoot(portrait ? portraitQuestJournalListRoot : questJournalRoot); uiManager.pushMenuFromSavedRoot(portrait ? portraitQuestJournalListRoot : questJournalRoot);
@@ -1330,24 +1331,8 @@ namespace FRG {
uiState_ = GameUiState::PhoneScreen; uiState_ = GameUiState::PhoneScreen;
currentPhoneSubScreen_ = PhoneSubScreen::Main; currentPhoneSubScreen_ = PhoneSubScreen::Main;
if (isPortraitMode()) { uiManager.pushMenuFromSavedRoot(isPortraitMode() ? verticalPhoneMainRoot : phoneMainRoot);
if (gameState_.tutorialNeedOpenTaxiScreen && (gameState_.tutorialPhoneChatScreenOpened == false)) refreshHudVisibility();
uiManager.pushMenuFromSavedRoot(verticalPhoneMainHintABRoot);
else if (gameState_.tutorialNeedOpenTaxiScreen)
uiManager.pushMenuFromSavedRoot(verticalPhoneMainHintBRoot);
else if (gameState_.tutorialPhoneChatScreenOpened == false)
uiManager.pushMenuFromSavedRoot(verticalPhoneMainHintARoot);
else
uiManager.pushMenuFromSavedRoot(verticalPhoneMainRoot);
} else if (gameState_.tutorialNeedOpenTaxiScreen && (gameState_.tutorialPhoneChatScreenOpened == false)) {
uiManager.pushMenuFromSavedRoot(phoneMainHintABRoot);
} else if (gameState_.tutorialNeedOpenTaxiScreen) {
uiManager.pushMenuFromSavedRoot(phoneMainHintBRoot);
} else if (gameState_.tutorialPhoneChatScreenOpened == false) {
uiManager.pushMenuFromSavedRoot(phoneMainHintARoot);
} else {
uiManager.pushMenuFromSavedRoot(phoneMainRoot);
}
uiManager.setButtonCallback("phoneExitButton", [this](const std::string&) { uiManager.setButtonCallback("phoneExitButton", [this](const std::string&) {
@@ -1400,14 +1385,8 @@ namespace FRG {
void MenuManager::openPhoneMessenger() { void MenuManager::openPhoneMessenger() {
currentPhoneSubScreen_ = PhoneSubScreen::ChatList; currentPhoneSubScreen_ = PhoneSubScreen::ChatList;
if (gameState_.tutorialPhoneChatScreenOpened) uiManager.pushMenuFromSavedRoot(isPortraitMode() ? verticalPhoneChatListRoot : phoneChatListRoot);
{ refreshHudVisibility();
uiManager.pushMenuFromSavedRoot(isPortraitMode() ? verticalPhoneChatListRoot : phoneChatListRoot);
}
else
{
uiManager.pushMenuFromSavedRoot(isPortraitMode() ? verticalPhoneChatListHintRoot : phoneChatListHintRoot);
}
refreshChatUnreadIndicators(); refreshChatUnreadIndicators();
uiManager.setButtonCallback("phoneExitButton", [this](const std::string&) { uiManager.setButtonCallback("phoneExitButton", [this](const std::string&) {
@@ -1625,14 +1604,7 @@ namespace FRG {
chatFrameBuffer_.reset(); chatFrameBuffer_.reset();
uiManager.popMenu(); uiManager.popMenu();
uiManager.updateAllLayouts(); uiManager.updateAllLayouts();
if (gameState_.tutorialPhoneChatScreenOpened) refreshHudVisibility();
{
uiManager.setNodeVisible("hint_m002", false);
}
else
{
uiManager.setNodeVisible("hint_m002", true);
}
refreshChatUnreadIndicators(); refreshChatUnreadIndicators();
} }
@@ -1652,31 +1624,7 @@ namespace FRG {
const int depth = uiManager.menuStackSize(); const int depth = uiManager.menuStackSize();
for (int i = 0; i < depth; ++i) uiManager.popMenu(); for (int i = 0; i < depth; ++i) uiManager.popMenu();
uiManager.updateAllLayouts(); uiManager.updateAllLayouts();
refreshHudVisibility();
if (gameState_.tutorialNeedOpenTaxiScreen)
{
uiManager.setNodeVisible("hint7", true);
uiManager.setNodeVisible("hint7arrow", true);
uiManager.setNodeVisible("hint6a", false);
uiManager.setNodeVisible("hint6aarrow", false);
}
else
{
uiManager.setNodeVisible("hint7", false);
uiManager.setNodeVisible("hint7arrow", false);
if (gameState_.tutorialPhoneChatScreenOpened)
{
uiManager.setNodeVisible("hint6a", false);
uiManager.setNodeVisible("hint6aarrow", false);
}
else
{
uiManager.setNodeVisible("hint6a", true);
uiManager.setNodeVisible("hint6aarrow", true);
}
}
} }
void MenuManager::closePhoneScreenFromChat() { void MenuManager::closePhoneScreenFromChat() {
@@ -1727,80 +1675,9 @@ namespace FRG {
void MenuManager::tutorialShowTaxiHint() void MenuManager::tutorialShowTaxiHint()
{ {
logger() << "tutorialShowTaxiHint" << std::endl; logger() << "tutorialShowTaxiHint" << std::endl;
gameState_.tutorialNeedOpenTaxiScreen = true; if (!gameState_.isTutorialActive()) return;
if (uiState_ == GameUiState::Gameplay) gameState_.tutorialNeedOpenTaxiScreen = true; // cleared when the taxi is ordered
{ refreshHudVisibility();
uiManager.setNodeVisible("hint6a", false);
uiManager.setNodeVisible("hint6aarrow", false);
uiManager.setNodeVisible("hint7", true);
uiManager.setNodeVisible("hint7arrow", true);
}
}
// Registers phoneButton / journalButton callbacks on the current HUD root
// and hides any hints that have already been completed.
// Called after every replaceRoot during step 5.
void MenuManager::setupStep5Callbacks() {
if (uiManager.findButton("phoneButton")) {
uiManager.setButtonCallback("phoneButton", [this](const std::string&) {
openPhoneScreen();
});
}
if (uiManager.findButton("inventoryButton")) {
uiManager.setButtonCallback("inventoryButton", [this](const std::string&) {
openInventory();
});
}
if (uiManager.findButton("journalButton")) {
uiManager.setButtonCallback("journalButton", [this](const std::string&) {
openQuestJournal();
});
}
if (uiManager.findButton("settingsButton")) {
uiManager.setButtonCallback("settingsButton", [this](const std::string&) {
showModalMenuScreen();
});
}
if (gameState_.tutorialNeedOpenTaxiScreen)
{
uiManager.setNodeVisible("hint6a", false);
uiManager.setNodeVisible("hint6aarrow", false);
uiManager.setNodeVisible("hint7", true);
uiManager.setNodeVisible("hint7arrow", true);
}
else
{
uiManager.setNodeVisible("hint7", false);
uiManager.setNodeVisible("hint7arrow", false);
}
if (gameState_.tutorialPhoneChatScreenOpened) {
uiManager.setNodeVisible("hint6a", false);
uiManager.setNodeVisible("hint6aarrow", false);
}
else
{
if (!gameState_.tutorialNeedOpenTaxiScreen)
{
uiManager.setNodeVisible("hint6a", true);
uiManager.setNodeVisible("hint6aarrow", true);
}
}
if (gameState_.tutorialJournalScreenOpened)
{
uiManager.setNodeVisible("hint6b", false);
uiManager.setNodeVisible("hint6barrow", false);
}
else
{
uiManager.setNodeVisible("hint6b", true);
uiManager.setNodeVisible("hint6barrow", true);
}
if (gameState_.tutorialPhoneChatScreenOpened && gameState_.tutorialJournalScreenOpened) {
gameState_.tutorialStep = TutorialStep::Step6;
}
} }
void MenuManager::setupGameplayHudCallbacks() { void MenuManager::setupGameplayHudCallbacks() {
@@ -1823,28 +1700,9 @@ namespace FRG {
void MenuManager::onLocationChanged(const std::string& locationName) { void MenuManager::onLocationChanged(const std::string& locationName) {
if (uiState_ != GameUiState::Gameplay) return; if (uiState_ != GameUiState::Gameplay) return;
gameState_.currentLocationName = locationName; gameState_.currentLocationName = locationName;
showGameplayHud();
if (locationName == "uni_exterior") { if (locationName == "uni_exterior" || locationName == "uni_interior") {
uiManager.replaceRoot(gameState_.isDarklands ? hudUniExtDarkRoot : hudUniExtRoot);
applyCurrentHealthBar();
setupGameplayHudCallbacks();
if (gameState_.isDarklands)
{
audioPlayer_.crossFadeMusicAsync("music/bishkek fight calm.ogg");
lastMusicTrack = "music/bishkek fight calm.ogg";
}
else if (gameState_.isNight)
{
audioPlayer_.crossFadeMusicAsync("music/bishkek night.ogg");
lastMusicTrack = "music/bishkek night.ogg";
}
else
{
audioPlayer_.crossFadeMusicAsync("music/bishkek univer day.ogg");
lastMusicTrack = "music/bishkek univer day.ogg";
}
} else if (locationName == "uni_interior") {
applyUniIntHud();
if (gameState_.isDarklands) if (gameState_.isDarklands)
{ {
audioPlayer_.crossFadeMusicAsync("music/bishkek fight calm.ogg"); audioPlayer_.crossFadeMusicAsync("music/bishkek fight calm.ogg");
@@ -1861,11 +1719,6 @@ namespace FRG {
lastMusicTrack = "music/bishkek univer day.ogg"; lastMusicTrack = "music/bishkek univer day.ogg";
} }
} else { } else {
// Returning to dorm: reuse step5ab, suppress already-completed hints
uiManager.replaceRoot(hudStep5abRoot);
applyCurrentHealthBar();
setupStep5Callbacks();
if (gameState_.isNight) if (gameState_.isNight)
{ {
audioPlayer_.crossFadeMusicAsync("music/bishkek night.ogg"); audioPlayer_.crossFadeMusicAsync("music/bishkek night.ogg");
@@ -1879,96 +1732,11 @@ namespace FRG {
} }
} }
void MenuManager::advanceTutorialStep() {
std::shared_ptr<UiNode> nextRoot;
switch (gameState_.tutorialStep) {
case TutorialStep::Step0:
gameState_.tutorialStep = TutorialStep::Step1;
nextRoot = hudStep1Root;
topUiManager.replaceRoot(nullptr);
break;
case TutorialStep::Step1:
gameState_.tutorialStep = TutorialStep::Step2;
nextRoot = hudStep2Root;
break;
case TutorialStep::Step2:
gameState_.tutorialStep = TutorialStep::Step3;
nextRoot = hudStep3Root;
break;
case TutorialStep::Step3:
gameState_.tutorialStep = TutorialStep::Step4;
nextRoot = hudStep4Root;
if (tutorialUnlockInteractiveObjectsFunc)
{
tutorialUnlockInteractiveObjectsFunc();
tutorialUnlockInteractiveObjectsFunc = nullptr;
}
break;
default:
return; // Step4/Step5 transitions are driven by onItemPickedUp
}
if (uiState_ == GameUiState::Gameplay && nextRoot) {
uiManager.replaceRoot(nextRoot);
applyCurrentHealthBar();
uiManager.setButtonCallback("inventoryButton", [this](const std::string&) {
openInventory();
});
if (uiManager.findButton("settingsButton")) {
uiManager.setButtonCallback("settingsButton", [this](const std::string&) {
showModalMenuScreen();
});
}
}
}
void MenuManager::onItemPickedUp(const std::string& itemId) { void MenuManager::onItemPickedUp(const std::string& itemId) {
if (itemId == "note_spell" && gameState_.uniIntTutorialState == UniIntTutorialState::Step10) { // The new item's HUD button appears through refreshHudVisibility().
gameState_.uniIntTutorialState = UniIntTutorialState::Step11; if (itemId == "phone" || itemId == "journal")
if (gameState_.currentLocationName == "uni_interior" && uiState_ == GameUiState::Gameplay) gameState_.completeTutorialStep(TutorialStep::PickUpItem);
applyUniIntHud(); refreshHudVisibility();
}
if (gameState_.tutorialStep != TutorialStep::Step4 && gameState_.tutorialStep != TutorialStep::Step5) {
return;
}
// Dorm tutorial HUD logic must not run in other locations.
// currentLocationName is empty only before the first teleport (still in dorm).
if (!gameState_.currentLocationName.empty() && gameState_.currentLocationName != "location_dorm") {
return;
}
if (itemId == "phone") gameState_.tutorialPhonePickedUp = true;
if (itemId == "journal") gameState_.tutorialJournalPickedUp = true;
if (gameState_.tutorialStep == TutorialStep::Step4) {
gameState_.tutorialStep = TutorialStep::Step5;
}
refreshItemPickupHud();
}
void MenuManager::refreshItemPickupHud() {
if (uiState_ != GameUiState::Gameplay) return;
std::shared_ptr<UiNode> nextRoot;
if (gameState_.tutorialPhonePickedUp && gameState_.tutorialJournalPickedUp) {
nextRoot = hudStep5abRoot;
} else if (gameState_.tutorialPhonePickedUp) {
nextRoot = hudStep5aRoot;
} else if (gameState_.tutorialJournalPickedUp) {
nextRoot = hudStep5bRoot;
}
if (nextRoot) {
uiManager.replaceRoot(nextRoot);
applyCurrentHealthBar();
// Register item-screen buttons and re-apply any already-completed hint visibility.
setupStep5Callbacks();
}
} }
void MenuManager::refreshQuestJournalUi() { void MenuManager::refreshQuestJournalUi() {
@@ -2351,70 +2119,32 @@ namespace FRG {
{ {
logger() << "MenuManager::setDarklandsMode called" << std::endl; logger() << "MenuManager::setDarklandsMode called" << std::endl;
if (gameState_.currentLocationName == "uni_interior") { if (enabled && gameState_.currentLocationName == "uni_interior" && inventory->hasItem("note_spell"))
if (enabled && gameState_.uniIntTutorialState == UniIntTutorialState::Step11) { gameState_.completeTutorialStep(TutorialStep::EnterDarklands);
gameState_.uniIntTutorialState = UniIntTutorialState::DarklandsActive;
}
applyUniIntHud();
} else if (gameState_.currentLocationName == "uni_exterior") {
if (uiState_ == GameUiState::Gameplay) {
uiManager.replaceRoot(enabled ? hudUniExtDarkRoot : hudUniExtRoot);
applyCurrentHealthBar();
setupGameplayHudCallbacks();
}
} else {
uiManager.setNodeVisible("darklandsButton", !enabled);
uiManager.setNodeVisible("phoneButton", !enabled);
}
}
void MenuManager::applyUniIntHud() if (uiState_ == GameUiState::Gameplay)
{ showGameplayHud(); // darklands has its own HUD layouts
if (uiState_ != GameUiState::Gameplay) return;
std::shared_ptr<UiNode> root;
if (gameState_.isDarklands) {
switch (gameState_.uniIntTutorialState) {
case UniIntTutorialState::DarklandsStep13: root = hudUniIntStep13Root; break;
case UniIntTutorialState::DarklandsFull: root = hudUniIntDarkFullRoot; break;
default: root = hudUniIntStep12Root; break;
}
} else {
switch (gameState_.uniIntTutorialState) {
case UniIntTutorialState::Step10: root = hudUniIntStep10Root; break;
case UniIntTutorialState::Step11: root = hudUniIntStep11Root; break;
default: root = hudUniIntFullRoot; break;
}
}
uiManager.replaceRoot(root);
applyCurrentHealthBar();
setupGameplayHudCallbacks();
} }
void MenuManager::onPlayerStartedWalking() void MenuManager::onPlayerStartedWalking()
{ {
if (gameState_.currentLocationName == "uni_interior" if (gameState_.currentLocationName == "uni_interior" && gameState_.isDarklands)
&& gameState_.isDarklands gameState_.completeTutorialStep(TutorialStep::DarklandsHealth);
&& gameState_.uniIntTutorialState == UniIntTutorialState::DarklandsActive) {
uiManager.setNodeVisible("hint_darklands003", false);
uiManager.setNodeVisible("hint_darklands003_arrow", false);
}
} }
void MenuManager::advanceUniIntDarklandsHud() void MenuManager::advanceUniIntDarklandsHud()
{ {
if (gameState_.uniIntTutorialState != UniIntTutorialState::DarklandsActive) return; // The ghost zone can be reached without a floor tap (DarklandsHealth never completed).
gameState_.uniIntTutorialState = UniIntTutorialState::DarklandsStep13; if (gameState_.tutorialStep == TutorialStep::DarklandsHealth
if (gameState_.currentLocationName == "uni_interior" && gameState_.isDarklands && uiState_ == GameUiState::Gameplay) || gameState_.tutorialStep == TutorialStep::DarklandsExplore)
applyUniIntHud(); gameState_.tutorialStep = TutorialStep::DarklandsAttack;
} }
void MenuManager::onEnemyKilledInUniInterior() void MenuManager::onEnemyKilledInUniInterior()
{ {
if (gameState_.uniIntTutorialState != UniIntTutorialState::DarklandsActive // The last tutorial step; like the attack hint, also ends the earlier darklands hints.
&& gameState_.uniIntTutorialState != UniIntTutorialState::DarklandsStep13) return; if (gameState_.tutorialStep >= TutorialStep::DarklandsHealth)
gameState_.uniIntTutorialState = UniIntTutorialState::DarklandsFull; gameState_.tutorialStep = TutorialStep::Completed;
if (gameState_.currentLocationName == "uni_interior" && gameState_.isDarklands && uiState_ == GameUiState::Gameplay)
applyUniIntHud();
} }
void MenuManager::updateHealthBar(float hp, float maxHp) { void MenuManager::updateHealthBar(float hp, float maxHp) {
@@ -2554,6 +2284,8 @@ namespace FRG {
void MenuManager::update(float deltaMs) { void MenuManager::update(float deltaMs) {
updateToasts(deltaMs); updateToasts(deltaMs);
chatUiManager.update(deltaMs); chatUiManager.update(deltaMs);
if (uiState_ != GameUiState::MainMenu && uiState_ != GameUiState::About)
refreshHudVisibility();
} }
void MenuManager::drawChatFbo(Renderer& renderer) { void MenuManager::drawChatFbo(Renderer& renderer) {
@@ -2615,6 +2347,7 @@ namespace FRG {
root["fullscreen"] = Environment::isFullscreen; root["fullscreen"] = Environment::isFullscreen;
root["language"] = FRG::languageToCode(FRG::g_currentLanguage); root["language"] = FRG::languageToCode(FRG::g_currentLanguage);
root["shadow"] = shadowsEnabled; root["shadow"] = shadowsEnabled;
root["tutorial"] = tutorialEnabledSetting;
saveJsonToFile(root, "settings.json"); saveJsonToFile(root, "settings.json");
} }
@@ -2646,6 +2379,8 @@ namespace FRG {
Environment::setFullscreen(root["fullscreen"].get<bool>()); Environment::setFullscreen(root["fullscreen"].get<bool>());
#endif #endif
} }
if (root.contains("tutorial"))
tutorialEnabledSetting = root["tutorial"].get<bool>();
if (root.contains("shadow")) { if (root.contains("shadow")) {
if (shadowMapSettingsChangedFunc) if (shadowMapSettingsChangedFunc)
{ {
+23 -29
View File
@@ -63,6 +63,10 @@ namespace FRG {
void tutorialShowTaxiHint(); void tutorialShowTaxiHint();
// Shows the HUD for the current location with its callbacks wired and visibility
// applied. Game calls it once a new game's state has been reset.
void showGameplayHud();
void setChatUnread(int chatIndex, bool unread, const std::string& previewMsg = ""); void setChatUnread(int chatIndex, bool unread, const std::string& previewMsg = "");
void spendMoney(int amount); void spendMoney(int amount);
@@ -75,7 +79,6 @@ namespace FRG {
std::function<void(int)> chatOpenCallback; std::function<void(int)> chatOpenCallback;
std::function<void()> skipCutsceneFunc; std::function<void()> skipCutsceneFunc;
std::function<void()> callTaxiFunc; std::function<void()> callTaxiFunc;
std::function<void()> tutorialUnlockInteractiveObjectsFunc;
std::function<void(int)> onSaveGame; std::function<void(int)> onSaveGame;
std::function<void(int)> onLoadGame; std::function<void(int)> onLoadGame;
std::function<SaveSlotInfo(int)> getSlotInfoFunc; std::function<SaveSlotInfo(int)> getSlotInfoFunc;
@@ -93,7 +96,6 @@ namespace FRG {
void onChatBubbleReady(const std::string& text, bool incoming); void onChatBubbleReady(const std::string& text, bool incoming);
void setDarklandsMode(bool enabled); void setDarklandsMode(bool enabled);
void advanceTutorialStep();
void onItemPickedUp(const std::string& itemId); void onItemPickedUp(const std::string& itemId);
void onLocationChanged(const std::string& locationName); void onLocationChanged(const std::string& locationName);
void onEnemyKilledInUniInterior(); void onEnemyKilledInUniInterior();
@@ -137,6 +139,9 @@ namespace FRG {
#else #else
bool shadowsEnabled = true; bool shadowsEnabled = true;
#endif #endif
// Applied only when a new game starts (off = start with the tutorial Completed);
// saved games keep their own tutorial progress.
bool tutorialEnabledSetting = true;
std::string lastMusicTrack; std::string lastMusicTrack;
#ifdef __EMSCRIPTEN__ #ifdef __EMSCRIPTEN__
@@ -160,15 +165,18 @@ namespace FRG {
AudioPlayerAsync& audioPlayer_; AudioPlayerAsync& audioPlayer_;
void enterGameplay(bool isFromLoad = false); void enterGameplay(bool isFromLoad = false);
void applyHudForCurrentState(); // HUD layout for the current location and darklands mode.
std::shared_ptr<UiNode> gameplayHudRoot() const;
// Single place that decides which HUD buttons and tutorial hints are visible:
// buttons follow the inventory, hints follow gameState_.tutorialStep and the
// tutorial flags. Runs every frame; names absent from the shown screen are skipped.
void refreshHudVisibility();
void refreshQuestJournalUi(); void refreshQuestJournalUi();
void reloadLocalizedGameContent(); void reloadLocalizedGameContent();
std::shared_ptr<UiNode> loadLocalizedUi(const std::string& basePath, const std::string& zipFile); std::shared_ptr<UiNode> loadLocalizedUi(const std::string& basePath, const std::string& zipFile);
std::shared_ptr<Texture> loadLocalizedTexture(const std::string& basePath, const std::string& zipFile); std::shared_ptr<Texture> loadLocalizedTexture(const std::string& basePath, const std::string& zipFile);
void loadUiRoots(const std::string& zipFile); void loadUiRoots(const std::string& zipFile);
void selectQuestByIndex(int index); void selectQuestByIndex(int index);
void refreshItemPickupHud();
void setupStep5Callbacks();
void setupGameplayHudCallbacks(); void setupGameplayHudCallbacks();
void openPhoneMessenger(); void openPhoneMessenger();
void openPhoneBank(); void openPhoneBank();
@@ -182,7 +190,6 @@ namespace FRG {
void openPhoneChatFromList(int chatIndex, std::shared_ptr<UiNode> chatRoot); void openPhoneChatFromList(int chatIndex, std::shared_ptr<UiNode> chatRoot);
void returnToPhoneChatList(); void returnToPhoneChatList();
void closePhoneScreenFromChat(); void closePhoneScreenFromChat();
void applyUniIntHud();
void rebuildChatBubblesFromHistory(int chatIndex, bool isPortrait); void rebuildChatBubblesFromHistory(int chatIndex, bool isPortrait);
void showModalMenuScreen(); void showModalMenuScreen();
@@ -196,7 +203,8 @@ namespace FRG {
void showCreditsScreen(); void showCreditsScreen();
void showSettingsScreen(); void showSettingsScreen();
void showSettingsGraphicsScreen(); void showSettingsGraphicsScreen();
void setupTutorialToggle();
#ifdef __EMSCRIPTEN__ #ifdef __EMSCRIPTEN__
void showSettingsNoMusicWebScreen(); void showSettingsNoMusicWebScreen();
@@ -235,30 +243,19 @@ namespace FRG {
int journalMenuStackDepth_ = 0; int journalMenuStackDepth_ = 0;
std::vector<std::string> visibleQuestIds; std::vector<std::string> visibleQuestIds;
std::shared_ptr<UiNode> hudRoot; // One HUD per location (+ darklands variant); each holds all of its buttons and
std::shared_ptr<UiNode> hudStep1Root; // tutorial hints, refreshHudVisibility() shows the relevant ones.
std::shared_ptr<UiNode> hudStep2Root; std::shared_ptr<UiNode> hudDormRoot;
std::shared_ptr<UiNode> hudStep3Root;
std::shared_ptr<UiNode> hudStep4Root;
std::shared_ptr<UiNode> hudStep5aRoot;
std::shared_ptr<UiNode> hudStep5bRoot;
std::shared_ptr<UiNode> hudStep5abRoot;
std::shared_ptr<UiNode> hudUniExtRoot; std::shared_ptr<UiNode> hudUniExtRoot;
std::shared_ptr<UiNode> hudUniIntStep10Root;
std::shared_ptr<UiNode> hudUniIntStep11Root;
std::shared_ptr<UiNode> hudUniIntStep12Root;
std::shared_ptr<UiNode> hudUniIntFullRoot;
std::shared_ptr<UiNode> hudUniIntStep13Root;
std::shared_ptr<UiNode> hudUniIntDarkFullRoot;
std::shared_ptr<UiNode> hudUniExtDarkRoot; std::shared_ptr<UiNode> hudUniExtDarkRoot;
std::shared_ptr<UiNode> hudUniIntRoot;
std::shared_ptr<UiNode> hudUniIntDarkRoot;
std::shared_ptr<UiNode> hudCutsceneRoot_; std::shared_ptr<UiNode> hudCutsceneRoot_;
// "Click to advance the dialogue" hint; drawn by topUiManager, above the dialogue.
std::shared_ptr<UiNode> hudTopHintRoot_; std::shared_ptr<UiNode> hudTopHintRoot_;
std::shared_ptr<UiNode> phoneMainRoot; std::shared_ptr<UiNode> phoneMainRoot;
std::shared_ptr<UiNode> phoneMainHintARoot;
std::shared_ptr<UiNode> phoneMainHintBRoot;
std::shared_ptr<UiNode> phoneMainHintABRoot;
std::shared_ptr<UiNode> phoneBankRoot; std::shared_ptr<UiNode> phoneBankRoot;
std::shared_ptr<UiNode> phoneVideoRoot; std::shared_ptr<UiNode> phoneVideoRoot;
@@ -267,17 +264,12 @@ namespace FRG {
// Portrait-mode (vertical) equivalents for screens that have a portrait layout // Portrait-mode (vertical) equivalents for screens that have a portrait layout
std::shared_ptr<UiNode> verticalPhoneMainRoot; std::shared_ptr<UiNode> verticalPhoneMainRoot;
std::shared_ptr<UiNode> verticalPhoneMainHintARoot;
std::shared_ptr<UiNode> verticalPhoneMainHintBRoot;
std::shared_ptr<UiNode> verticalPhoneMainHintABRoot;
std::shared_ptr<UiNode> verticalPhoneBankRoot; std::shared_ptr<UiNode> verticalPhoneBankRoot;
std::shared_ptr<UiNode> verticalPhoneVideoRoot; std::shared_ptr<UiNode> verticalPhoneVideoRoot;
std::shared_ptr<UiNode> verticalPhoneMapDormRoot; std::shared_ptr<UiNode> verticalPhoneMapDormRoot;
std::shared_ptr<UiNode> verticalPhoneMapUniRoot; std::shared_ptr<UiNode> verticalPhoneMapUniRoot;
std::shared_ptr<UiNode> phoneChatListRoot; std::shared_ptr<UiNode> phoneChatListRoot;
std::shared_ptr<UiNode> phoneChatListHintRoot;
std::shared_ptr<UiNode> verticalPhoneChatListRoot; std::shared_ptr<UiNode> verticalPhoneChatListRoot;
std::shared_ptr<UiNode> verticalPhoneChatListHintRoot;
std::shared_ptr<UiNode> phoneChat1Root; std::shared_ptr<UiNode> phoneChat1Root;
std::shared_ptr<UiNode> phoneChat2Root; std::shared_ptr<UiNode> phoneChat2Root;
std::shared_ptr<UiNode> phoneChat3Root; std::shared_ptr<UiNode> phoneChat3Root;
@@ -367,6 +359,8 @@ namespace FRG {
std::string musicToggleOff; std::string musicToggleOff;
std::string soundToggleOn; std::string soundToggleOn;
std::string soundToggleOff; std::string soundToggleOff;
std::string tutorialToggleOn;
std::string tutorialToggleOff;
std::string fullScreenToggleOn; std::string fullScreenToggleOn;
std::string fullScreenToggleOff; std::string fullScreenToggleOff;
std::string shadowToggleOn; std::string shadowToggleOn;
+16 -2
View File
@@ -5,6 +5,7 @@
#include <iostream> #include <iostream>
#include <algorithm> #include <algorithm>
#include <sstream> #include <sstream>
#include <unordered_set>
#include "GameConstants.h" #include "GameConstants.h"
namespace FRG { namespace FRG {
@@ -1535,6 +1536,14 @@ namespace FRG {
renderer.PopProjectionMatrix(); renderer.PopProjectionMatrix();
} }
// Buttons under a hidden node (the node itself or any ancestor) must not react to touches.
static void collectVisibleInteractives(const std::shared_ptr<UiNode>& node, std::unordered_set<const void*>& out) {
if (!node || !node->visible) return;
if (node->button) out.insert(node->button.get());
if (node->textButton) out.insert(node->textButton.get());
for (auto& c : node->children) collectVisibleInteractives(c, out);
}
static std::shared_ptr<UiNode> findNodeByName(const std::shared_ptr<UiNode>& node, const std::string& name) { static std::shared_ptr<UiNode> findNodeByName(const std::shared_ptr<UiNode>& node, const std::string& name) {
if (!node) return nullptr; if (!node) return nullptr;
if (!name.empty() && node->name == name) return node; if (!name.empty() && node->name == name) return node;
@@ -1847,11 +1856,13 @@ namespace FRG {
void UiManager::onTouchDown(int64_t fingerId, int x, int y) { void UiManager::onTouchDown(int64_t fingerId, int x, int y) {
// Iterate allInteractives in reverse DFS order: later-declared elements have higher priority. // Iterate allInteractives in reverse DFS order: later-declared elements have higher priority.
// At most one button or textButton is pressed per touch. // At most one button or textButton is pressed per touch.
std::unordered_set<const void*> visibleInteractives;
collectVisibleInteractives(root, visibleInteractives);
for (auto it = allInteractives.rbegin(); it != allInteractives.rend(); ++it) { for (auto it = allInteractives.rbegin(); it != allInteractives.rend(); ++it) {
if (std::holds_alternative<std::shared_ptr<UiButton>>(*it)) { if (std::holds_alternative<std::shared_ptr<UiButton>>(*it)) {
auto& b = std::get<std::shared_ptr<UiButton>>(*it); auto& b = std::get<std::shared_ptr<UiButton>>(*it);
//logger() << "onTouchDown found the button: " << b->name << std::endl; //logger() << "onTouchDown found the button: " << b->name << std::endl;
if (b->state != ButtonState::Disabled && if (visibleInteractives.count(b.get()) && b->state != ButtonState::Disabled &&
b->getClickZoneRect().containsConsideringBorder((float)x, (float)y, b->border)) { b->getClickZoneRect().containsConsideringBorder((float)x, (float)y, b->border)) {
b->state = ButtonState::Pressed; b->state = ButtonState::Pressed;
pressedButtons[fingerId] = b; pressedButtons[fingerId] = b;
@@ -1861,7 +1872,7 @@ namespace FRG {
} }
} else { } else {
auto& tb = std::get<std::shared_ptr<UiTextButton>>(*it); auto& tb = std::get<std::shared_ptr<UiTextButton>>(*it);
if (tb->state != ButtonState::Disabled && if (visibleInteractives.count(tb.get()) && tb->state != ButtonState::Disabled &&
tb->getClickZoneRect().containsConsideringBorder((float)x, (float)y, tb->border)) { tb->getClickZoneRect().containsConsideringBorder((float)x, (float)y, tb->border)) {
tb->state = ButtonState::Pressed; tb->state = ButtonState::Pressed;
pressedTextButtons[fingerId] = tb; pressedTextButtons[fingerId] = tb;
@@ -2197,6 +2208,9 @@ namespace FRG {
if (!root) return false; if (!root) return false;
auto node = findNodeByName(root, nodeName); auto node = findNodeByName(root, nodeName);
if (!node) return false; if (!node) return false;
// Replay the fade-in when a hidden image is revealed, as if its screen was just shown.
if (visible && !node->visible && node->staticImage && node->staticImage->fadeInEnabled)
node->staticImage->fadeInElapsedMs = 0.0f;
node->visible = visible; node->visible = visible;
return true; return true;
} }
+1
View File
@@ -370,6 +370,7 @@ namespace FRG {
static constexpr int64_t MOUSE_FINGER_ID = -1LL; static constexpr int64_t MOUSE_FINGER_ID = -1LL;
void replaceRoot(std::shared_ptr<UiNode> newRoot); void replaceRoot(std::shared_ptr<UiNode> newRoot);
std::shared_ptr<UiNode> getRoot() const { return root; }
void loadFromFile(const std::string& path, Renderer& renderer, const std::string& zipFile = ""); void loadFromFile(const std::string& path, Renderer& renderer, const std::string& zipFile = "");
void appendFromFile(const std::string& path, Renderer& renderer, const std::string& zipFile = ""); void appendFromFile(const std::string& path, Renderer& renderer, const std::string& zipFile = "");