忍者ブログ

我が戦◆道

「World of Tanks」(WoT)及び「World of Warships」(WoWS)の話題が中心。 戦車道、戦艦道、ひっくるめての、戦◆道(いくさみち)。

XVM[Ver 7.2] widgetsTemplates.xc

×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

コメント

ただいまコメントを受けつけておりません。

XVM[Ver 7.2] widgetsTemplates.xc

widgetsTemplates.xc では、時計と統計情報の設定を行っています。
時計については、相変わらず、文化圏の違いは考慮されていない模様です...

統計情報については、フォントサイズの差異などで微妙にバランスが崩れている気がします。

どちらも、実害はないので、放っておいても良いのですが、
時計については、以前も調整したので、同じようにやってみました。
記述方法が、バージョンによって、ちょこちょこ変わっているようですが、
今回のバージョンでは、以下のような記述で、まぁまぁ、まとまった気がします。

        "format": "<font face='$FieldFont'><textformat leading='-32'><font size='36'>{{py:xvm.formatDate('%H:%M')}}</font><br></textformat><textformat rightMargin='85' leading='-2'>{{py:xvm.formatDate('%A')}}<br><font size='15'>{{py:xvm.formatDate('%Y/%m/%d')}}</font></textformat></font>"



  "clock": {
    // Show clock in hangar.
    // ハンガーに時計を表示する
    "enabled": true,
    // layer - "bottom", "normal" (default), "top".
    // レイヤ - "bottom", "normal" (デフォルト), "top".
    "layer": "normal",
    "type": "extrafield",
    "formats": [
      { // background image
        // 背景イメージ
        "x": 4,
        "y": 51,
        "screenHAlign": "right",
        "format": "<img src='xvm://res/icons/clock/clockBg.png'>"
      },
      {
        "updateEvent": "ON_EVERY_SECOND",
        // Horizontal position.
        // 水平位置
        "x": -10,
        // Vertical position.
        // 垂直位置
        "y": 38,
        // Width.
        // 幅
        "width": 200,
        // Height.
        // 高さ
        "height": 50,
        // Horizontal alignment of field at screen ("left", "center", "right").
        // 画面上でのフィールドの水平アラインメント ("left", "center", "right").
        "screenHAlign": "right",
        "shadow": {
          // false - no shadow
          // false - 陰なし
          "enabled": true,
          "distance": 0,             // (in pixels)     / offset distance / オフセット距離
          "angle": 0,                // (0.0 .. 360.0)  / offset angle    / オフセット角度
          "color": "0x000000",       // "0xXXXXXX"      / color           / 色
          "alpha": 70,               // (0 .. 100)      / opacity         / 透明度
          "blur": 4,                 // (0.0 .. 255.0)  / blur            / ぼかし
          "strength": 2              // (0.0 .. 255.0)  / intensity       / 強度
        },
        "textFormat": { "align": "right", "valign": "bottom", "color": "0x959688" },
        "format": "<font face='$FieldFont'><textformat leading='-32'><font size='36'>{{py:xvm.formatDate('%H:%M')}}</font><br></textformat><textformat rightMargin='85' leading='-2'>{{py:xvm.formatDate('%A')}}<br><font size='15'>{{py:xvm.formatDate('%Y/%m/%d')}}</font></textformat></font>"
      }
    ]
  },
  "statistics": {
    "enabled": true,
    "layer": "normal",
    "type": "extrafield",
    "formats": [
      { // background image, left part
        // 背景イメージ, 左側
        "x": 66,
        "y": 193,
        "screenHAlign": "center",
        "format": "<img src='xvm://res/icons/clock/clockBg.png' width='160' height='80'>"
      },
      { // background image, right part
        // 背景イメージ, 右側
        "x": 390,
        "y": 193,
        "screenHAlign": "center",
        "scaleX": -1,
        "format": "<img src='xvm://res/icons/clock/clockBg.png' width='160' height='80'>"
      },
      { // text block
        // текстовый блок
        "updateEvent": "ON_MY_STAT_LOADED",
        "x": 185,
        "y": 198,
        "width": 320,
        "height": 150,
        "screenHAlign": "center",
        "shadow": { "alpha": 80, "blur": 4, "strength": 2 },
        "textFormat": { "color": "0x959688", "size": 15 },
        "format": "<font size='13'>{{l10n:General stats}} (<font color='#F9F1BC'>{{py:xvm.formatDate('%Y-%m-%d')}}</font>)</font>\n{{l10n:WN8}}: <font color='{{mystat.c_wn8}}'>{{mystat.xwn8}} ({{mystat.wn8}})</font> {{l10n:EFF}}: <font color='{{mystat.c_eff}}'>{{mystat.xeff}} ({{mystat.eff}})</font>\n{{l10n:Avg level}}: <font color='{{mystat.c_avglvl}}'>{{mystat.avglvl%.2f}}</font>\n<font size='13'>{{l10n:Wins}}: <font color='{{mystat.c_winrate}}'>{{mystat.winrate%.2f~%}}</font>  ({{py:winrate_next(0.5)}} / {{py:winrate_next(1)}})</font>"
      }
    ]
  }
PR

コメント

カレンダー

01 2025/02 03
S M T W T F S
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28

プロフィール

HN:
Cruiser III
性別:
非公開