Jump to content
Korean Random
DKRUBEN

Clock in hangar: help with config

Recommended Posts

Hello everyone, it's the following before the clock goes to the widgets.xc file, I had the hangar clock with a picture, the issue is that I do not know how to redo it now in the new file.
All the help is welcome, thank you
Here is the old configuration.

{
  "clock": {
    "enabled": ${"settings.xc":"settings.clock"},
    "x": -300,
    "y": 0,
    "width": 150,
    "height": 53,
    "layer": "top",
    "align": "center",
    "valign": "top",
    "textAlign": "center",
    "textVAlign": "top",
    "alpha": 100,
    "rotation": 0,
    "borderColor": null,
    "bgColor": null,
    "bgImage": "cfg://DriftKings/@DriftKings/icons/bgClock.png",
    "antiAliasType": "advanced",
    "format": "<font face='$FieldFont' color='#BCBCBC'><textformat rightMargin='25' leading='-2'><font size='22'>{{h%02d}}:{{m%02d}}:{{s%02d}}</font>\n<font size='14' leading='-10'>{{D%02d}} {{MM}}, {{W}}</font></font></textformat>",
    "shadow": { "enabled": true, "distance": 0, "angle": 90, "color": "0x000000", "alpha": 100, "blur": 4, "strength": 2 }
  }
}
Edited by Mixaill
formatting

Share this post


Link to post

Short link
Share on other sites

Be more specific. What's the problem? What do you want?

In the old configuration, I had an image added to the clock in the hangar, but since the file was changed I do not know how to add it.

Share this post


Link to post

Short link
Share on other sites

Just create two fields - one with image and second with text.

THX SIRMAX

Share this post


Link to post

Short link
Share on other sites

Once again big thx for help Sirmax New field added

{
  "clock": {
    "enabled": ${"settings.xc":"settings.clock"},
    "layer": "top",
    "type": "extrafield",
    "formats": [
      {
      "x": -370,
      "y": 0,
      "width": 200,
      "height": 50,
      "updateEvent": "ON_EVERY_SECOND",
      "screenHAlign": "center",
      "shadow": { "enabled": true,  "distance": 0, "angle": 90, "color": "0x000000", "alpha": 100, "blur": 4, "strength": 2 },
      "textFormat": { "align": "right", "valign": "center", "color": "0xBCBCBC" },
      "format": "<font face='$FieldFont'><textformat leading='-38'><font size='36'>{{py:xvm.formatDate('%H:%M')}}</font><br></textformat><textformat rightMargin='85' leading='-2'>{{py:xvm.formatDate('%Au')}}<br><font size='15'>{{py:xvm.formatDate('%d %bu %Y')}}</font></textformat></font>"
      },
      {
      "x": -320,
      "y": -12,
      "width": 200,
      "height": 80,
      "screenHAlign": "center",
      "shadow": { "enabled": true, "distance": 0, "angle": 0, "color": "0x000000", "alpha": 100, "blur": 4, "strength": 2 },
      "textFormat": { "align": "right", "valign": "center", "color": "0xBCBCBC" },
      "format": "<img src='cfg://DriftKings/@DriftKings/icons/bgClock.png'>"
      }
     ]
   }
}
Edited by Mixaill
formatting

Share this post


Link to post

Short link
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...