Jump to content
Korean Random
Sign in to follow this  
Bahus

После последнего патча в ангаре сместились часы в ангаре. Не получается вернуть.

Recommended Posts

Доброго времени суток. Все было настроено, но после патча часы с датой в ангаре сместились к правой части экрана. И цвет стал стандартный. Ни позиция, ни цвет ни в какую меняться не хотят.

Цвет пробовал указывать 0xFFFFFF и #FFFFFF. Никакой реакции.

Как заставить сменить цвет и вернуть часы на старое место? Может где еще стало прописываться?

post-17889-0-08264800-1493490223_thumb.jpg

{
  "clock": {
    "enabled": true,
    "x": -400,
    "y": 0,
    "width": 300,
    "height": 53,
    "layer": "top",
    "align": "center",
    "valign": "top",
    "textAlign": "center",
    "textVAlign": "top",
    "alpha": 100,
    "rotation": 0,
    "borderColor": null,
    "bgColor": null,
    "bgImage": "cfg://JustDj/img/clock/bgClock2.png",
    "antiAliasType": "advanced",
     "format": "<font face='$FieldFont' color='#187EFF'><textformat tabstops='[80]' leading='-39' color='#187EFF'><font size='15' color='#187EFF'>{{D%02d}} {{MM}} {{Y}}</font><tab><font size='36' color='#187EFF'>{{h%02d}}:{{m%02d}}:{{s%02d}}</font>\n<textformat rightMargin='127' color='#187EFF'>{{WW}}</font></textformat></font></textformat>",
    "shadow": { "enabled": true, "distance": 0, "angle": 90, "color": "0x000000", "alpha": 100, "blur": 4, "strength": 2 }
  }
}
Edited by Bahus

Share this post


Link to post

Short link
Share on other sites

Настройка часов переехала из clock.xc в widgetsTemplates.xc

Share this post


Link to post

Short link
Share on other sites

[ВИДЖЕТЫ]
* добавлена новая функция - виджеты на логине и в лобби
в данный момент реализованы только виджеты типа "extrafields"
конфигурационные файлы: widgets.xc, widgetsTemplates.xc
ссылки в login.xc, hangar.xc


[АНГАР]
* часы в ангаре перенесены в виджеты
* удален файл конфига "clock.xc" и ссылки на него
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

Правлю widgetsTemplates.xc - никакой реакции.

Часы остаются в правой части экрана в дефолтном варианте.

/**
 * Widgets templates.
 * Шаблоны виджетов.
 */
{
  "clock": {
    // Show clock in hangar.
    // Показывать часы в ангаре.
    "enabled": true,
    // layer - "bottom", "normal" (default), "top".
    // слой - "bottom", "normal" (по-умолчанию), "top".
    "layer": "top",
    "type": "extrafield",
    "formats": [
      {
        "updateEvent": "ON_EVERY_SECOND",
        // Horizontal position.
        // Положение по горизонтали.
        "x": 200,
        // Vertical position.
        // Положение по вертикали.
        "y": 41,
        // Width.
        // Ширина.
        "width": 200,
        // Height.
        // Высота.
        "height": 50,
        // Horizontal alignment of field at screen ("left", "center", "right").
        // Горизонтальное выравнивание поля на экране ("left", "center", "right").
        "screenHAlign": "left",
        "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": "left", "valign": "center", "color": "0x959688" },
        "format": "<font face='$FieldFont'><font size='24'>{{py:xvm.formatDate('%H:%M:%s')}}</font></font>"
      }
    ]
  }
}
Кстати, секунды включить - S заглавная или прописная нужна? Edited by N_P

Share this post


Link to post

Short link
Share on other sites

 

 

Правлю widgetsTemplates.xc - никакой реакции. Часы остаются в правой части экрана в дефолтном варианте.
, hangar.xc обновили?

Share this post


Link to post

Short link
Share on other sites

, hangar.xc обновили?

Да, спасибо, уже увидел, что надо там виджеты добавить.

 

Но странно то, что дефолтные часы рисовались, хотя в hangar.xc подключения виджетов не было.

Share this post


Link to post

Short link
Share on other sites

 

 

Но странно то, что дефолтные часы рисовались, хотя в hangar.xc подключения виджетов не было.
, потому что, если какая то секция отсутствует в конфиге, то она грузится из "вшитого" конфига.

Share this post


Link to post

Short link
Share on other sites

При смене сервера xvm перезагружает конфиг?

Можете в файле @xvm.xc установить параметр "autoReloadConfig": true, после этого изменения в конфиге будут тут же вступать в силу, без перезагрузки клиента.

  // automatically reload config. Can reduce performance.
  // автоматически перезагружать конфиг. Может понизить производительность.
  "autoReloadConfig": true,
Edited by ktulho

Share this post


Link to post

Short link
Share on other sites

 

Можете в файле @xvm.xc установить параметр "autoReloadConfig": true, после этого изменения в конфиге будут тут же вступать в силу, без перезагрузки клиента.

  // automatically reload config. Can reduce performance.
  // автоматически перезагружать конфиг. Может понизить производительность.
  "autoReloadConfig": true,

Благодарю.

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...