Working on phone screens

This commit is contained in:
Vladislav Khorev 2026-06-03 21:38:12 +03:00
parent 8694b0087d
commit 7a02665305
25 changed files with 544 additions and 102 deletions

BIN
resources/w/ui/img/phone2/ClockDay001.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/w/ui/img/phone2/ClockMorning001.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/w/ui/img/phone2/ClockNight001.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/w/ui/img/phone2/IconBank001.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/w/ui/img/phone2/IconMessenger001.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/w/ui/img/phone2/IconTaxi001.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/w/ui/img/phone2/IconVideo001.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/w/ui/img/phone2/Phone002.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/w/ui/img/phoneBank/PhoneBank002.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/w/ui/img/phoneBank/PhoneBankBack002.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/w/ui/img/phoneMap/PhoneMapBack001.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/w/ui/img/phoneMap/PhoneMapButton001.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/w/ui/img/phoneMap/PhoneMapDorm001.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/w/ui/img/phoneMap/PhoneMapUni001.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/w/ui/img/phoneVideo/PhoneVideo002.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/w/ui/img/phoneVideo/PhoneVideo003.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/w/ui/img/phoneVideo/PhoneVideoBackButton001.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/w/ui/img/phoneVideo/PhoneVideoSkipButton001.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -21,8 +21,8 @@
"name": "allItems", "name": "allItems",
"width": 110, "width": 110,
"height": 67, "height": 67,
"x" : -570, "x": -570,
"y" : 200, "y": 200,
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "center", "vertical_gravity": "center",
"texture": "resources/w/ui/img/inv/InventoryAllButton001.png" "texture": "resources/w/ui/img/inv/InventoryAllButton001.png"
@ -34,8 +34,8 @@
"vertical_gravity": "center", "vertical_gravity": "center",
"width": 90, "width": 90,
"height": 90, "height": 90,
"x" : 580, "x": 580,
"y" : 240, "y": 240,
"textures": { "textures": {
"normal": "resources/w/ui/img/Close001_State=Default.png", "normal": "resources/w/ui/img/Close001_State=Default.png",
"hover": "resources/w/ui/img/Close001_State=Selected.png", "hover": "resources/w/ui/img/Close001_State=Selected.png",
@ -49,8 +49,8 @@
"vertical_gravity": "center", "vertical_gravity": "center",
"width": 137, "width": 137,
"height": 137, "height": 137,
"x" : -580, "x": -580,
"y" : 90, "y": 90,
"textures": { "textures": {
"normal": "resources/w/ui/img/inv/ItemSelPhone001.png", "normal": "resources/w/ui/img/inv/ItemSelPhone001.png",
"hover": "resources/w/ui/img/inv/ItemSelPhone001.png", "hover": "resources/w/ui/img/inv/ItemSelPhone001.png",
@ -64,8 +64,8 @@
"vertical_gravity": "center", "vertical_gravity": "center",
"width": 137, "width": 137,
"height": 137, "height": 137,
"x" : -480, "x": -480,
"y" : 90, "y": 90,
"textures": { "textures": {
"normal": "resources/w/ui/img/inv/ItemJournal001.png", "normal": "resources/w/ui/img/inv/ItemJournal001.png",
"hover": "resources/w/ui/img/inv/ItemJournal001.png", "hover": "resources/w/ui/img/inv/ItemJournal001.png",
@ -79,8 +79,8 @@
"vertical_gravity": "center", "vertical_gravity": "center",
"width": 137, "width": 137,
"height": 137, "height": 137,
"x" : -380, "x": -380,
"y" : 90, "y": 90,
"textures": { "textures": {
"normal": "resources/w/ui/img/inv/ItemKnife001.png", "normal": "resources/w/ui/img/inv/ItemKnife001.png",
"hover": "resources/w/ui/img/inv/ItemKnife001.png", "hover": "resources/w/ui/img/inv/ItemKnife001.png",
@ -94,8 +94,8 @@
"vertical_gravity": "center", "vertical_gravity": "center",
"width": 137, "width": 137,
"height": 137, "height": 137,
"x" : -580, "x": -580,
"y" : -10, "y": -10,
"textures": { "textures": {
"normal": "resources/w/ui/img/inv/ItemNote001.png", "normal": "resources/w/ui/img/inv/ItemNote001.png",
"hover": "resources/w/ui/img/inv/ItemNote001.png", "hover": "resources/w/ui/img/inv/ItemNote001.png",
@ -109,8 +109,8 @@
"vertical_gravity": "center", "vertical_gravity": "center",
"width": 137, "width": 137,
"height": 137, "height": 137,
"x" : -480, "x": -480,
"y" : -10, "y": -10,
"textures": { "textures": {
"normal": "resources/w/ui/img/inv/ItemCoursework001.png", "normal": "resources/w/ui/img/inv/ItemCoursework001.png",
"hover": "resources/w/ui/img/inv/ItemCoursework001.png", "hover": "resources/w/ui/img/inv/ItemCoursework001.png",
@ -124,8 +124,8 @@
"vertical_gravity": "center", "vertical_gravity": "center",
"width": 137, "width": 137,
"height": 137, "height": 137,
"x" : -380, "x": -380,
"y" : -10, "y": -10,
"textures": { "textures": {
"normal": "resources/w/ui/img/inv/ItemReportCard001.png", "normal": "resources/w/ui/img/inv/ItemReportCard001.png",
"hover": "resources/w/ui/img/inv/ItemReportCard001.png", "hover": "resources/w/ui/img/inv/ItemReportCard001.png",
@ -139,8 +139,8 @@
"vertical_gravity": "center", "vertical_gravity": "center",
"width": 137, "width": 137,
"height": 137, "height": 137,
"x" : -580, "x": -580,
"y" : -110, "y": -110,
"textures": { "textures": {
"normal": "resources/w/ui/img/inv/ItemBook001.png", "normal": "resources/w/ui/img/inv/ItemBook001.png",
"hover": "resources/w/ui/img/inv/ItemBook001.png", "hover": "resources/w/ui/img/inv/ItemBook001.png",
@ -154,8 +154,8 @@
"vertical_gravity": "center", "vertical_gravity": "center",
"width": 137, "width": 137,
"height": 137, "height": 137,
"x" : -480, "x": -480,
"y" : -110, "y": -110,
"textures": { "textures": {
"normal": "resources/w/ui/img/inv/ItemBook001.png", "normal": "resources/w/ui/img/inv/ItemBook001.png",
"hover": "resources/w/ui/img/inv/ItemBook001.png", "hover": "resources/w/ui/img/inv/ItemBook001.png",
@ -169,8 +169,8 @@
"vertical_gravity": "center", "vertical_gravity": "center",
"width": 137, "width": 137,
"height": 137, "height": 137,
"x" : -380, "x": -380,
"y" : -110, "y": -110,
"textures": { "textures": {
"normal": "resources/w/ui/img/inv/ItemBook001.png", "normal": "resources/w/ui/img/inv/ItemBook001.png",
"hover": "resources/w/ui/img/inv/ItemBook001.png", "hover": "resources/w/ui/img/inv/ItemBook001.png",
@ -182,8 +182,8 @@
"name": "selectedItemPic", "name": "selectedItemPic",
"width": 137, "width": 137,
"height": 137, "height": 137,
"x" : -260, "x": -260,
"y" : 90, "y": 90,
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "center", "vertical_gravity": "center",
"texture": "resources/w/ui/img/inv/ItemSelReportCard001.png" "texture": "resources/w/ui/img/inv/ItemSelReportCard001.png"
@ -193,8 +193,8 @@
"name": "selectedText", "name": "selectedText",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "center", "vertical_gravity": "center",
"x" : 250, "x": 250,
"y" : 40, "y": 40,
"width": 900, "width": 900,
"height": 137, "height": 137,
"text": "Серебряный нож.", "text": "Серебряный нож.",
@ -205,15 +205,20 @@
"wrap": true, "wrap": true,
"paddingX": 0.0, "paddingX": 0.0,
"paddingY": 0.0, "paddingY": 0.0,
"color": [0.318, 0.635, 1.0, 1.0] "color": [
0.318,
0.635,
1.0,
1.0
]
}, },
{ {
"type": "TextView", "type": "TextView",
"name": "selectedDescription", "name": "selectedDescription",
"horizontal_gravity": "center", "horizontal_gravity": "center",
"vertical_gravity": "center", "vertical_gravity": "center",
"x" : 150, "x": 150,
"y" : -100, "y": -100,
"width": 900, "width": 900,
"height": 137, "height": 137,
"text": "А все бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут а мы идем.", "text": "А все бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут а мы идем.",
@ -224,7 +229,12 @@
"wrap": true, "wrap": true,
"paddingX": 0.0, "paddingX": 0.0,
"paddingY": 0.0, "paddingY": 0.0,
"color": [1.0, 1.0, 1.0, 1.0] "color": [
1.0,
1.0,
1.0,
1.0
]
} }
] ]
} }

View File

@ -0,0 +1,106 @@
{
"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": "StaticImage",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 617.4,
"height": 991.2,
"texture": "resources/w/ui/img/phone2/Phone002.png"
},
{
"type": "StaticImage",
"name": "phoneTime",
"horizontal_gravity": "center",
"vertical_gravity": "top",
"y": 120,
"width": 446.25,
"height": 120.4,
"texture": "resources/w/ui/img/phone2/ClockDay001.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"
}
}
]
}
}

View File

@ -0,0 +1,75 @@
{
"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": "StaticImage",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 617.4,
"height": 991.2,
"texture": "resources/w/ui/img/phoneBank/PhoneBank002.png"
},
{
"type": "Button",
"name": "buttonBack",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 280,
"x": -180,
"width": 95.2,
"height": 95.2,
"textures": {
"normal": "resources/w/ui/img/phoneBank/PhoneBankBack002.png",
"hover": "resources/w/ui/img/phoneBank/PhoneBankBack002.png",
"pressed": "resources/w/ui/img/phoneBank/PhoneBankBack002.png"
}
},
{
"type": "TextView",
"name": "balanceText",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x": -20,
"y": 120,
"width": 300,
"height": 60,
"text": "5 500 сом",
"fontSize": 40,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": true,
"wrap": true,
"paddingX": 0.0,
"paddingY": 0.0,
"color": [
1.0,
1.0,
1.0,
1.0
]
}
]
}
}

View File

@ -0,0 +1,64 @@
{
"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": "StaticImage",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 617.4,
"height": 991.2,
"texture": "resources/w/ui/img/phoneMap/PhoneMapDorm001.png"
},
{
"type": "Button",
"name": "buttonBack",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 310,
"width": 446.6,
"height": 75.6,
"textures": {
"normal": "resources/w/ui/img/phoneMap/PhoneMapBack001.png",
"hover": "resources/w/ui/img/phoneMap/PhoneMapBack001.png",
"pressed": "resources/w/ui/img/phoneMap/PhoneMapBack001.png"
}
},
{
"type": "Button",
"name": "mapGo",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -280,
"width": 397.6,
"height": 121.8,
"textures": {
"normal": "resources/w/ui/img/phoneMap/PhoneMapButton001.png",
"hover": "resources/w/ui/img/phoneMap/PhoneMapButton001.png",
"pressed": "resources/w/ui/img/phoneMap/PhoneMapButton001.png"
}
}
]
}
}

View File

@ -0,0 +1,64 @@
{
"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": "StaticImage",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 617.4,
"height": 991.2,
"texture": "resources/w/ui/img/phoneMap/PhoneMapUni001.png"
},
{
"type": "Button",
"name": "buttonBack",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 310,
"width": 446.6,
"height": 75.6,
"textures": {
"normal": "resources/w/ui/img/phoneMap/PhoneMapBack001.png",
"hover": "resources/w/ui/img/phoneMap/PhoneMapBack001.png",
"pressed": "resources/w/ui/img/phoneMap/PhoneMapBack001.png"
}
},
{
"type": "Button",
"name": "mapGo",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -280,
"width": 397.6,
"height": 121.8,
"textures": {
"normal": "resources/w/ui/img/phoneMap/PhoneMapButton001.png",
"hover": "resources/w/ui/img/phoneMap/PhoneMapButton001.png",
"pressed": "resources/w/ui/img/phoneMap/PhoneMapButton001.png"
}
}
]
}
}

View File

@ -0,0 +1,64 @@
{
"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": "StaticImage",
"name": "phoneMain",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -60,
"width": 617.4,
"height": 991.2,
"texture": "resources/w/ui/img/phoneVideo/PhoneVideo003.png"
},
{
"type": "Button",
"name": "buttonBack",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": 310,
"width": 394.8,
"height": 57.4,
"textures": {
"normal": "resources/w/ui/img/phoneVideo/PhoneVideoBackButton001.png",
"hover": "resources/w/ui/img/phoneVideo/PhoneVideoBackButton001.png",
"pressed": "resources/w/ui/img/phoneVideo/PhoneVideoBackButton001.png"
}
},
{
"type": "Button",
"name": "videoSkip",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"y": -300,
"width": 407.4,
"height": 86.8,
"textures": {
"normal": "resources/w/ui/img/phoneVideo/PhoneVideoSkipButton001.png",
"hover": "resources/w/ui/img/phoneVideo/PhoneVideoSkipButton001.png",
"pressed": "resources/w/ui/img/phoneVideo/PhoneVideoSkipButton001.png"
}
}
]
}
}

View File

@ -87,6 +87,11 @@ namespace ZL {
hudUniIntFullRoot = loadUiFromFile("resources/w/ui/hud_uni_int_full.json", renderer, zipFile); hudUniIntFullRoot = loadUiFromFile("resources/w/ui/hud_uni_int_full.json", renderer, zipFile);
hudUniIntDarkFullRoot = loadUiFromFile("resources/w/ui/hud_uni_int_dark_full.json", renderer, zipFile); hudUniIntDarkFullRoot = loadUiFromFile("resources/w/ui/hud_uni_int_dark_full.json", renderer, zipFile);
hudUniExtDarkRoot = loadUiFromFile("resources/w/ui/hud_uni_ext_dark.json", renderer, zipFile); hudUniExtDarkRoot = loadUiFromFile("resources/w/ui/hud_uni_ext_dark.json", renderer, zipFile);
//phoneChatListRoot = loadUiFromFile("resources/w/ui/screen_phone_bank.json", renderer, zipFile);
//phoneChatListRoot = loadUiFromFile("resources/w/ui/screen_phone_map_dorm.json", renderer, zipFile);
//phoneChatListRoot = loadUiFromFile("resources/w/ui/screen_phone_video.json", renderer, zipFile);
phoneChatListRoot = loadUiFromFile("resources/w/ui/screen_phone_chat_list.json", renderer, zipFile); phoneChatListRoot = loadUiFromFile("resources/w/ui/screen_phone_chat_list.json", renderer, zipFile);
phoneChat1Root = loadUiFromFile("resources/w/ui/screen_phone_chat1.json", renderer, zipFile); phoneChat1Root = loadUiFromFile("resources/w/ui/screen_phone_chat1.json", renderer, zipFile);
phoneChat2Root = loadUiFromFile("resources/w/ui/screen_phone_chat2.json", renderer, zipFile); phoneChat2Root = loadUiFromFile("resources/w/ui/screen_phone_chat2.json", renderer, zipFile);