9 |
9 |
|
"content": "\nui.UiFactory.customTypes[\"ui.SaveGameSlot\"] = {\n \"type\": \"ui.FreeLayout\",\n \"sizeToFit\": true,\n \"controls\": [\n {\n \"type\": \"ui.Panel\",\n \"frame\": [0, 0, 350, Math.max(Graphics.height / 8, 90)],\n \"actions\": -> p.actions\n \"zIndex\": 0\n },\n {\n \"type\": \"ui.Panel\",\n \"alignmentY\": \"center\",\n \"frame\": [0, 0, Graphics.width / 8, Graphics.height / 8],\n \"color\": [0, 0, 0, 100],\n \"zIndex\": 0\n },\n {\n \"type\": \"ui.Image\",\n \"alignmentY\": \"center\",\n \"updateBehavior\": \"continuous\",\n \"image\": \"\",\n \"frame\": [0, 0, Graphics.width / 8, Graphics.height / 8],\n \"imageHandling\": 2,\n \"fixedSize\": true,\n \"zIndex\": 1,\n \"formulas\": [\n $ -> o.visible = $dataFields.saveGameSlots[o.parent.index].image\n $ -> o.image = $dataFields.saveGameSlots[o.parent.index].image\n ]\n },\n {\n \"type\": \"ui.FreeLayout\",\n \"frame\": [Graphics.width / 8, 0, 150, 90],\n \"controls\": [\n {\n \"type\": \"ui.Text\",\n \"formulas\": [\n $ -> \n if !$dataFields.saveGameSlots[o.parent.parent.index].date\n o.text = (o.parent.parent.index + 1).toString() + \".\\n\" + lcsi(\"8E38A9D614390348151B45B694031841EED2\")\n else\n o.text = (o.parent.parent.index + 1).toString() + \".\\n\" +\n $dataFields.saveGameSlots[o.parent.parent.index].chapter + \"\\n\" +\n $dataFields.saveGameSlots[o.parent.parent.index].date\n ],\n \"sizeToFit\": true,\n \"text\": \"\",\n \"styles\": [\"smallUIText\"],\n \"frame\": [10, 10],\n \"zIndex\": 10\n }\n ]\n }\n ]\n}", |