Skip to content

PrintToCenterHtml HTML not work and WelcomeMessage Center HTML too #34

@vitordarela

Description

@vitordarela

Hi
I'm trying to place a PNG image via HTML and even any message in HTML and it just blinks (I set the interval to 2 seconds to test the rendering).

Another point is that even if you change the MessageType in the WelcomeMessage to 1 or 2, it continues to go to the chat and does not go to PrintToCenter.

{
  "PrintToCenterHtml": true,
  "WelcomeMessage": {
    "MessageType": 2,
    "Message": "<b>Bem vindo!<b>",
    "DisplayDelay": 5
  },
  "Ads": [
    {
      "Interval": 2,
      "Messages": [
        {
          "Chat": "{map_name}",
          "Center": "<img src=\"https://cdnr.escharts.com/uploads/public/65f/9cd/cc1/65f9cdcc1fa71736257245.jpg?width=300&height=200&extension=png\" alt=\"\">"
        },
        {
          "Chat": "{current_time}"
        }
      ]
    },
    {
      "Interval": 40,
      "Messages": [
        {
          "Chat": "Section 2 Chat 1"
        },
        {
          "Chat": "Section 2 Chat 2",
          "Chat": "Section 2 Center 1"
        }
      ]
    }
  ],
  "Panel": null,
  "DefaultLang": "US",
  "LanguageMessages": {
    "map_name": {
      "RU": "\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u043A\u0430\u0440\u0442\u0430: {MAP}",
      "US": "Current map: {MAP}",
      "CN": "{GRAY}\u5F53\u524D\u5730\u56FE: {RED}{MAP}"
    },
    "current_time": {
      "RU": "{GRAY}\u0422\u0435\u043A\u0443\u0449\u0435\u0435 \u0432\u0440\u0435\u043C\u044F: {RED}{TIME}",
      "US": "{GRAY}Current time: {RED}{TIME}",
      "CN": "{GRAY}\u5F53\u524D\u65F6\u95F4: {RED}{TIME}"
    }
  },
  "MapsName": {
    "de_mirage": "Mirage",
    "de_dust": "Dust II"
  }
}

Video showing the error:
https://github.com/user-attachments/assets/409fe462-0039-49dc-8a93-253e572b3497

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions