Translations:Инструкция по работе виджета бегущей строки для новостей/2/en

Материал из SmartPlayer
Версия от 12:23, 18 сентября 2024; N.Bloshkin (обсуждение | вклад) (Новая страница: «== Widget Settings == After transferring the widget to the "Content" section, to configure the widget for the first time, the user needs to double-click the widget icon. This action will take them to the widget’s main page. thumb|center| Example of the widget’s main page |800px On the widget’s main page, the user can access the widget’s settings by clicking on the gear icon. File:п...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Widget Settings

After transferring the widget to the "Content" section, to configure the widget for the first time, the user needs to double-click the widget icon. This action will take them to the widget’s main page.

Example of the widget’s main page

On the widget’s main page, the user can access the widget’s settings by clicking on the gear icon.

Example of the settings icon for accessing the widget settings

Widget Configuration Parameters

The general settings block applies to the entire widget regardless of the operating mode used. If the widget is intended to display news text with images (without ticker mode), the parameters from this category need to be configured (listed below). If the widget is to be used in ticker mode, the "Ticker mode" checkbox must be activated, and the accompanying settings block (listed below) must be used.

The following parameters can be used to configure the widget:
General settings block:

  • Language selection – allows the user to choose the language in which the widget interface will be displayed. The current implementation supports two languages: Russian and English.
  • Resource URL – allows specifying the URL link to the news portal from which the widget will retrieve the news block. This link should point to an RSS resource provided by the server in XML format.
  • Color slider – allows the user to choose a color scheme with two gradient options for displaying news (more details below). If at least one color slider is active, the "Background image" option for the news will be disabled as it will be replaced by the slider.
  • Background image – allows the user to select a graphic content as the widget’s background. This option does not work if at least one color slider is active.
  • Animation – allows the user to choose the animation for news transitions. Two types of animations are available: fade (animation with a gradually disappearing background) and slide (sliding animation from right to left).
  • Content change delay – measured in seconds, this allows the user to set the speed of the news change using a numerical value.
  • Disable images checkbox – when activated, this disables the display of news with images, leaving only the text. If this checkbox is deactivated, the news will display with an image (if available).
  • Autoscroll checkbox – when activated, autoscroll will be enabled for large news articles that do not fit on the screen.
Example of the general settings block

Block "Settings for text information when ticker mode is disabled":

  • Text positioning – allows the user to choose where the news text will be positioned on the screen. Currently, two options are available: centered or at the top of the page. This does not work in ticker mode.
  • Static news text color – allows the user to select the color of the news text. The color can be specified using a HEX code available online.
  • News text font size – allows the user to specify a numerical value for the news text font size.
  • Image width – measured in pixels, this allows the user to specify the width of the news image.
  • Image height – measured in pixels, this allows the user to specify the height of the news image.
  • Image margin – measured in pixels, this allows the user to set the margin distance for the image. The margin applies from the left side of the screen.
  • RSS channel tag – this setting points to the XML tag that the widget will use to retrieve the news text. Currently, three tags are supported: description, content, and title.
Example of the settings block when ticker mode is disabled

Block: "Settings for ticker mode":

  • Ticker mode checkbox – when activated, this allows the user to enable ticker mode for the news text. It removes the news image and scrolls the current news in a single line.
  • Ticker speed – can range from "0" to "1000", allowing the user to set the speed of the ticker’s appearance and scrolling.

News separator symbol – allows the user to specify a symbol that will be used to separate news articles. Recommended symbols include: (".") (",") ("/").

  • News text spacing – allows the user to specify the pixel distance between news articles and the separator symbol. The spacing applies to both the current and next news articles, keeping them equidistant from the separator.
  • Ticker text color – allows the user to select the color of the ticker text.
  • Ticker font size – allows the user to specify a numerical value for the ticker font size.
  • Ticker direction – allows the user to choose the direction of the ticker movement. Two options are available: left to right and right to left.
  • Ticker margin – measured in pixels, this allows the user to set the margin for the ticker relative to the left and right sides of the screen.
Example of the ticker mode settings block