Skip to content

Commit 5a087a5

Browse files
committed
Add alternative BitmapText objects for pixel-art games
1 parent 95d5781 commit 5a087a5

File tree

1 file changed

+124
-13
lines changed

1 file changed

+124
-13
lines changed

extensions/community/MultiplayerCustomLobbies.json

Lines changed: 124 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@
336336
"assetStoreId": "",
337337
"bold": false,
338338
"italic": false,
339-
"name": "PlayerTitle",
339+
"name": "PlayersTitle",
340340
"smoothed": true,
341341
"type": "TextObject::Text",
342342
"underlined": false,
@@ -524,6 +524,44 @@
524524
"g": 0,
525525
"b": 0
526526
}
527+
},
528+
{
529+
"assetStoreId": "",
530+
"name": "BitmapLobbyTitle",
531+
"type": "BitmapText::BitmapTextObject",
532+
"variables": [],
533+
"effects": [],
534+
"behaviors": [],
535+
"content": {
536+
"text": "Lobby name",
537+
"opacity": 255,
538+
"scale": 1,
539+
"fontSize": 20,
540+
"tint": "255;255;255",
541+
"bitmapFontResourceName": "",
542+
"textureAtlasResourceName": "",
543+
"align": "left",
544+
"verticalTextAlignment": "top"
545+
}
546+
},
547+
{
548+
"assetStoreId": "",
549+
"name": "BitmapPlayersTitle",
550+
"type": "BitmapText::BitmapTextObject",
551+
"variables": [],
552+
"effects": [],
553+
"behaviors": [],
554+
"content": {
555+
"text": "Players",
556+
"opacity": 255,
557+
"scale": 1,
558+
"fontSize": 20,
559+
"tint": "255;255;255",
560+
"bitmapFontResourceName": "",
561+
"textureAtlasResourceName": "",
562+
"align": "left",
563+
"verticalTextAlignment": "top"
564+
}
527565
}
528566
],
529567
"objectsFolderStructure": {
@@ -536,16 +574,22 @@
536574
"objectName": "LobbyTitle"
537575
},
538576
{
539-
"objectName": "PlayerTitle"
577+
"objectName": "PlayersTitle"
540578
},
541579
{
542580
"objectName": "Scrollbar"
543581
},
544582
{
545-
"objectName": "Loading"
583+
"objectName": "Lobby"
546584
},
547585
{
548-
"objectName": "Lobby"
586+
"objectName": "BitmapLobbyTitle"
587+
},
588+
{
589+
"objectName": "BitmapPlayersTitle"
590+
},
591+
{
592+
"objectName": "Loading"
549593
},
550594
{
551595
"objectName": "ViewportMask"
@@ -606,7 +650,7 @@
606650
"height": 0,
607651
"keepRatio": true,
608652
"layer": "",
609-
"name": "PlayerTitle",
653+
"name": "PlayersTitle",
610654
"persistentUuid": "769576ac-ead4-496e-837d-c273f4641601",
611655
"width": 0,
612656
"x": 586,
@@ -1455,7 +1499,7 @@
14551499
},
14561500
{
14571501
"type": {
1458-
"value": "MultiplayerCustomLobbies::Lobby::SetPlayersInLobbyCount"
1502+
"value": "MultiplayerCustomLobbies::Lobby::SetPlayersCount"
14591503
},
14601504
"parameters": [
14611505
"Lobby",
@@ -1790,7 +1834,7 @@
17901834
"assetStoreId": "",
17911835
"bold": true,
17921836
"italic": false,
1793-
"name": "LobbyPlayers",
1837+
"name": "PlayersCount",
17941838
"smoothed": true,
17951839
"type": "TextObject::Text",
17961840
"underlined": false,
@@ -1922,6 +1966,44 @@
19221966
"LabelText": "Join",
19231967
"HoveredFadeOutDuration": 0.125
19241968
}
1969+
},
1970+
{
1971+
"assetStoreId": "",
1972+
"name": "BitmapLobbyName",
1973+
"type": "BitmapText::BitmapTextObject",
1974+
"variables": [],
1975+
"effects": [],
1976+
"behaviors": [],
1977+
"content": {
1978+
"text": "Lobby Name",
1979+
"opacity": 255,
1980+
"scale": 1,
1981+
"fontSize": 20,
1982+
"tint": "255;255;255",
1983+
"bitmapFontResourceName": "",
1984+
"textureAtlasResourceName": "",
1985+
"align": "left",
1986+
"verticalTextAlignment": "top"
1987+
}
1988+
},
1989+
{
1990+
"assetStoreId": "",
1991+
"name": "BitmapPlayersCount",
1992+
"type": "BitmapText::BitmapTextObject",
1993+
"variables": [],
1994+
"effects": [],
1995+
"behaviors": [],
1996+
"content": {
1997+
"text": "0/4",
1998+
"opacity": 255,
1999+
"scale": 1,
2000+
"fontSize": 20,
2001+
"tint": "255;255;255",
2002+
"bitmapFontResourceName": "",
2003+
"textureAtlasResourceName": "",
2004+
"align": "left",
2005+
"verticalTextAlignment": "top"
2006+
}
19252007
}
19262008
],
19272009
"objectsFolderStructure": {
@@ -1934,11 +2016,40 @@
19342016
"objectName": "LobbyName"
19352017
},
19362018
{
1937-
"objectName": "LobbyPlayers"
2019+
"objectName": "PlayersCount"
2020+
},
2021+
{
2022+
"objectName": "BitmapLobbyName"
2023+
},
2024+
{
2025+
"objectName": "BitmapPlayersCount"
19382026
}
19392027
]
19402028
},
1941-
"objectsGroups": [],
2029+
"objectsGroups": [
2030+
{
2031+
"name": "LobbyNameLabel",
2032+
"objects": [
2033+
{
2034+
"name": "LobbyName"
2035+
},
2036+
{
2037+
"name": "BitmapLobbyName"
2038+
}
2039+
]
2040+
},
2041+
{
2042+
"name": "PlayersCountLabel",
2043+
"objects": [
2044+
{
2045+
"name": "PlayersCount"
2046+
},
2047+
{
2048+
"name": "BitmapPlayersCount"
2049+
}
2050+
]
2051+
}
2052+
],
19422053
"layers": [
19432054
{
19442055
"ambientLightColorB": 200,
@@ -2009,7 +2120,7 @@
20092120
"height": 23,
20102121
"keepRatio": true,
20112122
"layer": "",
2012-
"name": "LobbyPlayers",
2123+
"name": "PlayersCount",
20132124
"persistentUuid": "d1b8d5b4-d25b-407d-a92c-b3cacbf4c3d4",
20142125
"width": 67,
20152126
"x": 586,
@@ -2140,7 +2251,7 @@
21402251
"value": "TextContainerCapability::TextContainerBehavior::SetValue"
21412252
},
21422253
"parameters": [
2143-
"LobbyName",
2254+
"LobbyNameLabel",
21442255
"Text",
21452256
"=",
21462257
"NameLobby"
@@ -2168,7 +2279,7 @@
21682279
"description": "Set players in lobby count.",
21692280
"fullName": "Set players in lobby count",
21702281
"functionType": "Action",
2171-
"name": "SetPlayersInLobbyCount",
2282+
"name": "SetPlayersCount",
21722283
"sentence": "Set players in lobby count _PARAM0_, players in lobby: _PARAM1_, max players _PARAM2_",
21732284
"events": [
21742285
{
@@ -2180,7 +2291,7 @@
21802291
"value": "TextContainerCapability::TextContainerBehavior::SetValue"
21812292
},
21822293
"parameters": [
2183-
"LobbyPlayers",
2294+
"PlayersCountLabel",
21842295
"Text",
21852296
"=",
21862297
"PlayersInLobby+\"/\"+MaxPlayers"

0 commit comments

Comments
 (0)