Skip to content

Commit

Permalink
- update font code
Browse files Browse the repository at this point in the history
- update gamefiles
  • Loading branch information
dgengin committed Jul 10, 2016
1 parent fe8d7bd commit 7f20f12
Show file tree
Hide file tree
Showing 37 changed files with 371 additions and 253 deletions.
Binary file added gamefiles/res/level/bigtgoldCharMap.bin
Binary file not shown.
Binary file modified gamefiles/res/level/bigtgoldSize.bin
Binary file not shown.
11 changes: 5 additions & 6 deletions gamefiles/res/level/fonts.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,23 @@
"textureId": "smaltext",
"palette": "town",
"file": "ctrlpan/smaltext.cel",
"charMapFile": "res/level/smaltextMap.bin",
"charMapIgnore": 255
"charMapFile": "res/level/smaltextCharMap.bin",
"charSizeFile": "res/level/smaltextSize.bin"
},
{
"id": "medtexts",
"textureId": "medtexts",
"palette": "town",
"file": "data/medtexts.cel",
"charMapFile": "res/level/medBigCharMap.bin",
"charMapIgnore": 255
"charMapFile": "res/level/medtextsCharMap.bin",
"charSizeFile": "res/level/medtextsSize.bin"
},
{
"id": "bigtgold",
"textureId": "bigtgold",
"palette": "town",
"file": "data/bigtgold.cel",
"charMapFile": "res/level/medBigCharMap.bin",
"charMapIgnore": 255,
"charMapFile": "res/level/bigtgoldCharMap.bin",
"charSizeFile": "res/level/bigtgoldSize.bin"
}
]
Expand Down
Binary file added gamefiles/res/level/medtextsCharMap.bin
Binary file not shown.
Binary file added gamefiles/res/level/medtextsSize.bin
Binary file not shown.
Binary file added gamefiles/res/level/smaltextCharMap.bin
Binary file not shown.
Binary file added gamefiles/res/level/smaltextSize.bin
Binary file not shown.
25 changes: 25 additions & 0 deletions gamefiles/ui/level/charPanelLabels.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"position": [84, 20],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.name|"
},
{
Expand All @@ -15,6 +16,7 @@
"position": [236, 20],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.class|"
},
{
Expand All @@ -23,6 +25,7 @@
"position": [85, 56],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.level|"
},
{
Expand All @@ -31,6 +34,7 @@
"position": [256, 56],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.experience|"
},
{
Expand All @@ -39,6 +43,7 @@
"position": [256, 84],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.expNextLevel|"
},
{
Expand All @@ -47,6 +52,7 @@
"position": [256, 134],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.gold|"
},
{
Expand All @@ -55,6 +61,7 @@
"position": [108, 144],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.strengthBase|"
},
{
Expand All @@ -63,6 +70,7 @@
"position": [156, 144],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.strengthNow|"
},
{
Expand All @@ -71,6 +79,7 @@
"position": [108, 172],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.magicBase|"
},
{
Expand All @@ -79,6 +88,7 @@
"position": [156, 172],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.magicNow|"
},
{
Expand All @@ -87,6 +97,7 @@
"position": [108, 200],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.dexterityBase|"
},
{
Expand All @@ -95,6 +106,7 @@
"position": [156, 200],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.dexterityNow|"
},
{
Expand All @@ -103,6 +115,7 @@
"position": [108, 228],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.vitalityBase|"
},
{
Expand All @@ -111,6 +124,7 @@
"position": [156, 228],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.vitalityNow|"
},
{
Expand All @@ -119,6 +133,7 @@
"position": [108, 256],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.points|",
"format": ""
},
Expand All @@ -128,6 +143,7 @@
"position": [108, 292],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.lifeBase|"
},
{
Expand All @@ -136,6 +152,7 @@
"position": [156, 292],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.lifeNow|"
},
{
Expand All @@ -144,6 +161,7 @@
"position": [108, 320],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.manaBase|"
},
{
Expand All @@ -152,6 +170,7 @@
"position": [156, 320],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.manaNow|"
},
{
Expand All @@ -160,6 +179,7 @@
"position": [278, 172],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.armorClass|"
},
{
Expand All @@ -168,6 +188,7 @@
"position": [278, 200],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.toHit|",
"format": "[1]%"
},
Expand All @@ -177,6 +198,7 @@
"position": [278, 228],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": ["|currentLevel|currentPlayer.damageMin|", "|currentLevel|currentPlayer.damageMax|"],
"format": "[1]-[2]"
},
Expand All @@ -186,6 +208,7 @@
"position": [278, 266],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.resistMagic|",
"format": "[1]%"
},
Expand All @@ -195,6 +218,7 @@
"position": [278, 292],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.resistFire|",
"format": "[1]%"
},
Expand All @@ -204,6 +228,7 @@
"position": [278, 320],
"anchor": "left",
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"binding": "|currentLevel|currentPlayer.resistLightning|",
"format": "[1]%"
}
Expand Down
7 changes: 5 additions & 2 deletions gamefiles/ui/level/charPanelQuests.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@
"menu": {
"id": "menuQuests",
"bitmapFont": "smaltext",
"position": [162, 128],
"position": [160, 135],
"horizontalAlign": "center",
"verticalAlign": "center",
"horizontalSpaceOffset": 1,
"anchor": "left",
"focus": true,
"focusSound": "titlemov",
Expand Down Expand Up @@ -89,7 +90,9 @@
"bitmapFont": "smaltext",
"focus": true,
"focusSound": "titlemov",
"position": [92, 297],
"position": [160, 298],
"horizontalAlign": "center",
"horizontalSpaceOffset": 1,
"sound": "titlslct",
"text": "Close Quest Log",
"onClick": [
Expand Down
15 changes: 10 additions & 5 deletions gamefiles/ui/level/gameMenu.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
"focus": true,
"focusSound": "titlemov",
"text": "Save Game",
"position": [319, 116],
"position": [321, 116],
"anchor": "none",
"horizontalAlign": "center",
"horizontalSpaceOffset": 2,
"onFocus": [
"anchorLeftPentagram",
"anchorRightPentagram"
Expand All @@ -23,9 +24,10 @@
"focus": true,
"focusSound": "titlemov",
"text": "Options",
"position": [319, 161],
"position": [321, 161],
"anchor": "none",
"horizontalAlign": "center",
"horizontalSpaceOffset": 2,
"onClick": [
{ "name": "resource.pop" },
{ "name": "load", "file": "ui/level/gameMenu2.json" }
Expand All @@ -42,9 +44,10 @@
"focus": true,
"focusSound": "titlemov",
"text": "New Game",
"position": [319, 206],
"position": [321, 206],
"anchor": "none",
"horizontalAlign": "center",
"horizontalSpaceOffset": 2,
"onClick": [
{ "name": "resource.popAll" },
{ "name": "game.setProperty", "property": "musicVolume", "value": 100 },
Expand All @@ -64,9 +67,10 @@
"focus": true,
"focusSound": "titlemov",
"text": "Load Game",
"position": [319, 251],
"position": [320, 251],
"anchor": "none",
"horizontalAlign": "center",
"horizontalSpaceOffset": 2,
"onFocus": [
"anchorLeftPentagram",
"anchorRightPentagram"
Expand All @@ -79,9 +83,10 @@
"focus": true,
"focusSound": "titlemov",
"text": "Quit Diablo",
"position": [319, 296],
"position": [321, 296],
"anchor": "none",
"horizontalAlign": "center",
"horizontalSpaceOffset": 2,
"onClick": [
{
"name": "game.fadeOut",
Expand Down
9 changes: 7 additions & 2 deletions gamefiles/ui/level/gameMenu2.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@
"focusOnClick": false,
"text": "Music",
"position": [75, 116],
"horizontalSpaceOffset": 2,
"anchor": "none",
"onClick": [
"anchorLeftPentagram",
Expand Down Expand Up @@ -244,6 +245,7 @@
"text": "Sound",
"position": [75, 161],
"anchor": "none",
"horizontalSpaceOffset": 2,
"onClick": [
"anchorLeftPentagram",
{ "name": "drawable.anchor", "id": "pent2", "idAnchor": "optbar2", "anchor": "right" },
Expand Down Expand Up @@ -273,6 +275,7 @@
"text": "Gamma",
"position": [75, 206],
"anchor": "none",
"horizontalSpaceOffset": 2,
"onClick": [
"anchorLeftPentagram",
{ "name": "drawable.anchor", "id": "pent2", "idAnchor": "optbar3", "anchor": "right" },
Expand Down Expand Up @@ -300,9 +303,10 @@
"focus": true,
"focusSound": "titlemov",
"text": "Color Cycling On",
"position": [319, 251],
"position": [320, 251],
"anchor": "none",
"horizontalAlign": "center",
"horizontalSpaceOffset": 2,
"onClick": [
{ "name": "button.setText", "id": "colorCycling", "text": "Color Cycling Off" },
"anchorLeftPentagram",
Expand All @@ -325,9 +329,10 @@
"focus": true,
"focusSound": "titlemov",
"text": "Previous Menu",
"position": [319, 296],
"position": [320, 296],
"anchor": "none",
"horizontalAlign": "center",
"horizontalSpaceOffset": 2,
"onClick": [
{ "name": "resource.pop" },
{ "name": "load", "file": "ui/level/saveSettings.json" },
Expand Down
4 changes: 2 additions & 2 deletions gamefiles/ui/level/gameMenuCommon.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
{
"name": "action.set",
"id": "anchorLeftPentagram",
"action": { "name": "drawable.anchorToFocused", "id": "pent1", "anchor": "left" }
"action": { "name": "drawable.anchorToFocused", "id": "pent1", "anchor": "left", "offset": [-1, 0] }
},
{
"name": "action.set",
"id": "anchorRightPentagram",
"action": { "name": "drawable.anchorToFocused", "id": "pent2", "anchor": "right" }
"action": { "name": "drawable.anchorToFocused", "id": "pent2", "anchor": "right", "offset": [1, 0] }
}
],
"keyboard": [
Expand Down
Loading

0 comments on commit 7f20f12

Please sign in to comment.