From af53c3f7fa0cd432360a116baa46ae4645837369 Mon Sep 17 00:00:00 2001 From: Satoshi Nakamoto <65907137+SatoshiNakamotoBitcoin@users.noreply.github.com> Date: Mon, 22 Apr 2024 20:49:07 +0200 Subject: [PATCH] Actualizar PyBlockHalving.scriptable --- PyBlockHalving.scriptable | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/PyBlockHalving.scriptable b/PyBlockHalving.scriptable index 26c8bcf..503543d 100644 --- a/PyBlockHalving.scriptable +++ b/PyBlockHalving.scriptable @@ -21,11 +21,17 @@ listwidget.refreshAfterDate = new Date(nextRefresh) let sns = new Request('https://raw.githubusercontent.com/curly60e/pyblock/master/pybitblock/resources/images/Logo.PNG'); let pyp = await sns.loadImage(); let tt = listwidget.addImage(pyp).centerAlignImage() -let heading = listwidget.addText(840000 - + blockHeight + - (840000 - blockHeight)); +let heading = listwidget.addText(blockHeight); heading.centerAlignText(); heading.font = Font.boldSystemFont(70); heading.textColor = new Color("#0aff17"); +let halving = listwidget.addText("1050000"); +halving.centerAlignText(); +halving.font = Font.boldSystemFont(55); +halving.textColor = new Color("#0aff17"); +let target = listwidget.addText("" + (1050000 - blockHeight)); +target.centerAlignText(); +target.font = Font.boldSystemFont(70); +target.textColor = new Color("#0aff17"); return listwidget; } \ No newline at end of file