diff --git a/Editor/editing/_scenes/level/itemmsgbox.cpp b/Editor/editing/_scenes/level/itemmsgbox.cpp index 802ab9484..3572c55de 100644 --- a/Editor/editing/_scenes/level/itemmsgbox.cpp +++ b/Editor/editing/_scenes/level/itemmsgbox.cpp @@ -20,10 +20,14 @@ #include #include #include +#include #include "itemmsgbox.h" #include +#include "main_window/global_settings.h" + + ItemMsgBox::ItemMsgBox(Opened_By openedBy, QString text, bool isFriendly, QString label, QString title, QWidget *parent) : QDialog(parent), ui(new Ui::ItemMsgBox) @@ -45,27 +49,77 @@ ItemMsgBox::ItemMsgBox(Opened_By openedBy, QString text, bool isFriendly, QStrin if(!title.isEmpty()) this->setWindowTitle(title); - //#ifdef Q_OS_MACX - // QFont theFont("Press Start 2P", 11); - //#else - // QFont theFont("Press Start 2P", 11); - //#endif - QFont theFont("Press Start 2P"); - theFont.setPixelSize(8); - theFont.setStyleHint(QFont::Monospace); - ui->msgTextBox->setFont(theFont); - ui->msgTextBox->clear(); - QFontMetrics meter(ui->msgTextBox->font()); - int w_width = meter.size(Qt::TextSingleLine, "XXXXXXXXXXXXXXXXXXXXXXXXXXX").width(); - int scrW = ui->msgTextBox->style()->pixelMetric(QStyle::PM_ScrollBarExtent); - ui->msgTextBox->setMaximumWidth(w_width + scrW + 18); - ui->msgTextBox->setMinimumWidth(w_width + scrW + 18); - ui->msgTextBox->appendPlainText(currentText); + // Set default preview font to 8 + ui->previewBox->setFontSize(8); + + ui->previewFont->setValue(ui->previewBox->fontSize()); + + QObject::connect(ui->previewShow, static_cast(&QToolButton::toggled), + this, &ItemMsgBox::updateDialogueSize); + + qApp->processEvents(QEventLoop::ExcludeUserInputEvents|QEventLoop::ExcludeSocketNotifiers); + ui->previewArea->setVisible(ui->previewShow->isChecked()); + ItemMsgBox::updateDialogueSize(ui->previewShow->isChecked()); + + QObject::connect(ui->msgTextBox, &QPlainTextEdit::textChanged, this, + [this]()->void + { + ui->previewBox->setText(ui->msgTextBox->toPlainText()); + }); + + QObject::connect(ui->previewFont, static_cast(&QSpinBox::valueChanged), this, + [this](int val)->void + { + ui->previewBox->setFontSize(val); + }); + + QObject::connect(ui->previewEngine, static_cast(&QComboBox::currentIndexChanged), this, + [this](int val)->void + { + ui->previewBox->setVanillaMode(val == 0); + ui->previewMacrosGroup->setVisible(val > 0); + ui->previewBox->setEnableMacros(val > 0 && ui->previewMacrosGroup->isChecked()); + updateEngineDesc(); + }); + + updateEngineDesc(); + + QObject::connect(ui->previewMacrosGroup, static_cast(&QGroupBox::toggled), this, + [this](bool macros)->void + { + ui->previewBox->setEnableMacros(macros && ui->previewEngine->currentIndex() > 0); + ui->previewMacrosGroup->setVisible(ui->previewEngine->currentIndex() > 0); + }); + + QObject::connect(ui->previewMacroPlayer, static_cast(&QSpinBox::valueChanged), this, + [this](int val)->void + { + ui->previewBox->setMacroPlayerNum(val); + }); + + QObject::connect(ui->previewMacroState, static_cast(&QSpinBox::valueChanged), this, + [this](int val)->void + { + ui->previewBox->setMacroPlayerState(val); + }); + + ui->previewMacrosGroup->setChecked(false); + ui->previewMacrosGroup->setVisible(ui->previewEngine->currentIndex() > 0); + +#if 1 // Hide experimental feature + ui->previewMacroState->setVisible(false); + ui->previewMacroStateLabel->setVisible(false); +#endif + + ui->msgTextBox->setPlainText(currentText); updateGeometry(); + + loadSetup(); } ItemMsgBox::~ItemMsgBox() { + saveSetup(); delete ui; } @@ -79,3 +133,114 @@ void ItemMsgBox::on_buttonBox_accepted() currentText = ui->msgTextBox->toPlainText(); accept(); } + +void ItemMsgBox::updateDialogueSize(bool showPreview) +{ + QRect self = this->geometry(); + QRect selfL = ui->dialogueLayout->geometry(); + + QString buttonText = tr("Preview", "The text on the switch button"); + + if(showPreview) + { + ui->previewShow->setText(QString("%1 <<").arg(buttonText)); + + ui->previewArea->setVisible(showPreview); + qApp->processEvents(QEventLoop::ExcludeUserInputEvents|QEventLoop::ExcludeSocketNotifiers); + QSize area = ui->previewArea->size(); + self.setWidth(self.width() + area.width()); + selfL.setWidth(selfL.width() + area.width()); + ui->dialogueLayout->setGeometry(selfL); + this->setGeometry(self); + } + else + { + ui->previewShow->setText(QString("%1 >>").arg(buttonText)); + + QSize area = ui->previewArea->size(); + ui->previewArea->setVisible(showPreview); + this->update(); + qApp->processEvents(QEventLoop::ExcludeUserInputEvents|QEventLoop::ExcludeSocketNotifiers); + self.setWidth(self.width() - area.width()); + selfL.setWidth(selfL.width() - area.width()); + ui->dialogueLayout->setGeometry(selfL); + this->setGeometry(self); + } +} + +void ItemMsgBox::updateEngineDesc() +{ + switch(ui->previewEngine->currentIndex()) + { + case 0: // SMBX 1.3 / X2 + ui->engineDesc->setText( + tr("The basic message box of SMBX 1.3 / X2 has the next restrictions:\n" + "
    \n" + "
  • New line CAN NOT be done via the \"Return\"/\"Enter\" key
    \n" + "(you should use spaces as a workaround).
  • \n" + "
  • Line breaks happen automatically after 27 characters.
  • \n" + "
  • Very long words doesn't breaks and gets printed out of screen.
    \n" + "So, please break these words to avoid this.
  • \n" + "
  • You can't use any Unicode characters: ASCII only works.
  • \n" + "
", "Message box behaviour explanation") + ); + break; + + case 1: // Moondust / TheXTech + ui->engineDesc->setText( + tr("The message box of Moondust / TheXTech has the next restrictions:\n" + "
    \n" + "
  • New line CAN be done by \"Return\"/\"Enter\" key easily.
  • \n" + "
  • Line breaks also happen automatically after 27 characters.
  • \n" + "
  • Very long words gets broken forcibly.
  • \n" + "
  • You can use any Unicode characters.
  • \n" + "
  • Preprocessor's macros can be used.
  • \n" + "
", "Message box behaviour explanation") + ); + break; + } +} + +void ItemMsgBox::loadSetup() +{ + QSettings settings(ConfStatus::configLocalSettingsFile, QSettings::IniFormat); +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) + settings.setIniCodec("UTF-8"); +#endif + + settings.beginGroup("MsgBoxEditor"); + { + if(settings.contains("show-preview")) + ui->previewShow->setChecked(settings.value("show-preview", false).toBool()); + + ui->previewEngine->setCurrentIndex(settings.value("engine", 0).toInt()); + if(settings.contains("font-size")) + ui->previewFont->setValue(settings.value("font-size").toInt()); + + ui->previewMacrosGroup->setChecked(settings.value("macros", false).toBool()); + ui->previewMacroPlayer->setValue(settings.value("macros-player", 0).toInt()); + + restoreGeometry(settings.value("geometry").toByteArray()); + } + settings.endGroup(); +} + +void ItemMsgBox::saveSetup() +{ + QSettings settings(ConfStatus::configLocalSettingsFile, QSettings::IniFormat); +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) + settings.setIniCodec("UTF-8"); +#endif + + settings.beginGroup("MsgBoxEditor"); + { + settings.setValue("show-preview", ui->previewShow->isChecked()); + settings.setValue("engine", ui->previewEngine->currentIndex()); + settings.setValue("font-size", ui->previewFont->value()); + settings.setValue("macros", ui->previewMacrosGroup->isChecked()); + settings.setValue("macros-player", ui->previewMacroPlayer->value()); + + settings.setValue("geometry", saveGeometry()); + } + settings.endGroup(); +} diff --git a/Editor/editing/_scenes/level/itemmsgbox.h b/Editor/editing/_scenes/level/itemmsgbox.h index ab0e8acd5..8d2f8cffb 100644 --- a/Editor/editing/_scenes/level/itemmsgbox.h +++ b/Editor/editing/_scenes/level/itemmsgbox.h @@ -45,9 +45,14 @@ class ItemMsgBox : public QDialog private slots: void on_buttonBox_accepted(); + void updateDialogueSize(bool showPreview); + void updateEngineDesc(); private: Ui::ItemMsgBox *ui; + + void loadSetup(); + void saveSetup(); }; #endif // ITEMMSGBOX_H diff --git a/Editor/editing/_scenes/level/itemmsgbox.ui b/Editor/editing/_scenes/level/itemmsgbox.ui index a6fd65a25..bea42cf32 100644 --- a/Editor/editing/_scenes/level/itemmsgbox.ui +++ b/Editor/editing/_scenes/level/itemmsgbox.ui @@ -6,53 +6,41 @@ 0 0 - 444 - 271 + 600 + 446 + + + 0 + 0 + + Set message box - + :/toolbar/dock/coin.png:/toolbar/dock/coin.png - - - QLayout::SetFixedSize - - - - - <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> - + + + - Enter the NPC's dialog message: -(Max length per line is 27 characters) + Friendly (Non-friendly NPCs can't be talked to) - + - - - 420 - 162 - - - <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> - - - background-color: rgb(0, 18, 181); -font: 11pt "Press Start 2P"; -color: rgb(255, 255, 255); + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. - QFrame::Box + QFrame::WinPanel - QFrame::Raised + QFrame::Sunken 2 @@ -64,17 +52,183 @@ color: rgb(255, 255, 255); Qt::ScrollBarAlwaysOff - false + true XxXxXxXxXxXxXxXxXxXxXxXxXxYYYYYYYYYYYYYYYYYYYYYYYYYYZZZZZZZZZZZZZZZZZZZZZZZZZZ - - 28 + + + + + + + 0 + 0 + + + + + 0 + 32 + + + + QFrame::StyledPanel + + + QFrame::Raised + + + + + QFrame::WinPanel + + + QFrame::Sunken + + + 3 + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 0 + 144 + + + + + + + + + + + + 0 + 63 + + + + Preview settings + + + + + + Font size: + + + + + + + + 0 + 0 + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + 10000 + + + + + + + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + Preprocessor + + + true + + + + + + 255 + + + + + + + Player number: + + + + + + + State number + + + + + + + 255 + + + + + + + - + + + + Show/Hide the message box preview area + + + Preview [text in the code] + + + true + + + + Qt::Horizontal @@ -84,17 +238,120 @@ color: rgb(255, 255, 255); - - + + + + <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> + - Friendly (Non-friendly NPCs can't be talked to) + Enter the NPC's dialogue message text: + + + Qt::PlainText + + + + + + + + 0 + 37 + + + + QFrame::NoFrame + + + QFrame::Raised + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + Target engine: + + + + + + + + 0 + 0 + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + + + + SMBX 1.3 / X2 + + + + + Moondust / TheXTech + + + + + + + + &lt;explanations in the code, not here!&gt; + + + Qt::RichText + + + true + + + + + + + MsgBoxPreview + QWidget +
msg_box_preview/msg_box_preview.h
+ 1 +
+
- + @@ -104,8 +361,8 @@ color: rgb(255, 255, 255); accept() - 248 - 254 + 266 + 350 157 @@ -120,8 +377,8 @@ color: rgb(255, 255, 255); reject() - 316 - 260 + 334 + 350 286 diff --git a/Editor/editing/_scenes/level/items/item_block.cpp b/Editor/editing/_scenes/level/items/item_block.cpp index e779c9745..0d798aa80 100644 --- a/Editor/editing/_scenes/level/items/item_block.cpp +++ b/Editor/editing/_scenes/level/items/item_block.cpp @@ -325,12 +325,15 @@ void ItemBlock::contextMenu(QGraphicsSceneMouseEvent *mouseEvent) QLineEdit::Normal, QString(), &ok); if(eventName.isEmpty() && ok) goto typeEventAgain; + if(ok) { ItemMsgBox msgBox(Opened_By::BLOCK, "", false, - tr("Please enter the message which will be shown.\n(Max line length is 27 characters)"), + tr("Please enter the message text that which will be shown:"), tr("Hit message text"), m_scene->m_subWindow); + util::DialogToCenter(&msgBox, true); + if(msgBox.exec() == QDialog::Accepted) { msgText = msgBox.currentText; diff --git a/Editor/editing/_scenes/level/items/item_npc.cpp b/Editor/editing/_scenes/level/items/item_npc.cpp index 9ad5e1942..128fca884 100644 --- a/Editor/editing/_scenes/level/items/item_npc.cpp +++ b/Editor/editing/_scenes/level/items/item_npc.cpp @@ -403,8 +403,9 @@ void ItemNPC::contextMenu(QGraphicsSceneMouseEvent *mouseEvent) { LevelData selData; - ItemMsgBox msgBox(Opened_By::NPC, m_data.msg, m_data.friendly, "", "", m_scene->m_mw); + ItemMsgBox msgBox(Opened_By::NPC, m_data.msg, m_data.friendly, QString(), QString(), m_scene->m_mw); util::DialogToCenter(&msgBox, true); + if(msgBox.exec() == QDialog::Accepted) { //apply to all selected items. diff --git a/Editor/languages/editor_bg.ts b/Editor/languages/editor_bg.ts index b8b3bdf84..e30ca9bdc 100644 --- a/Editor/languages/editor_bg.ts +++ b/Editor/languages/editor_bg.ts @@ -1659,12 +1659,6 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Please enter the name of event: Моля, въведете името на събитието: - - Please enter the message which will be shown. -(Max line length is 27 characters) - Моля, въведете съобщението, което ще бъде показано. -(Максималната дължина на реда е 27 знака) - Hit message text Текст на съобщението при удар @@ -1693,6 +1687,10 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Array-ID: %1 + + Please enter the message text that which will be shown: + + ItemBoxListModel @@ -1939,16 +1937,103 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> &lt;html&gt;&lt;body&gt;<p>Това е съобщението, което ще се покаже, ако играчът разговаря с това NPC.</p><p><span style="">Забележка:</span> Всички кавички и знаци за нов ред ще бъдат премахнати.</p>&lt;/body&gt;&lt;/html&gt; - - Enter the NPC's dialog message: -(Max length per line is 27 characters) - Въведете диалоговото съобщение на NPC: -(Максималната дължина на един ред е 27 знака) - Friendly (Non-friendly NPCs can't be talked to) Приятелски (с неприятелски NPC не може да се разговаря) + + Preview settings + + + + Font size: + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + Preprocessor + + + + Player number: + + + + State number + + + + Show/Hide the message box preview area + + + + Enter the NPC's dialogue message text: + + + + Target engine: + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + + + Preview + The text on the switch button + + + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. + + ItemMusic @@ -3507,11 +3592,6 @@ Do you want to continue? Please, set current section to %1 for capture data for this event - - Please, enter message -(Max line length is 27 characters) - - Autoscroll section (Legacy) @@ -3548,6 +3628,10 @@ Do you want to continue? Disabled by the strict SMBX64 mode + + Please, enter the message box text: + + LvlHistoryManager diff --git a/Editor/languages/editor_bs.ts b/Editor/languages/editor_bs.ts index 04da377e3..33e4d8277 100644 --- a/Editor/languages/editor_bs.ts +++ b/Editor/languages/editor_bs.ts @@ -2023,13 +2023,13 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - + Margin of section - + Please select how far items can travel beyond the section boundaries (in pixels) before they are removed. @@ -2044,33 +2044,32 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - - Please enter the message which will be shown. -(Max line length is 27 characters) + + Please enter the message text that which will be shown: - + Hit message text - + Event created - + Message event created! - + 'Hit' event slot is used - + Sorry, but the 'Hit' event slot already used by the event: '%1'. @@ -2373,27 +2372,128 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec ItemMsgBox - + Set message box - - + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. + + + + + Preview settings + + + + + Font size: + + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + + Preprocessor + + + + + Player number: + + + + + State number + + + + + Show/Hide the message box preview area + + + + <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> - - Enter the NPC's dialog message: -(Max length per line is 27 characters) + + Enter the NPC's dialogue message text: + + + + + Target engine: + + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. - + Friendly (Non-friendly NPCs can't be talked to) + + + Preview + The text on the switch button + + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + ItemMusic @@ -2636,13 +2736,13 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - + Margin of section - + Please select how far items can travel beyond the section boundaries (in pixels) before they are removed. @@ -4459,8 +4559,7 @@ Do you want to continue? - Please, enter message -(Max line length is 27 characters) + Please, enter the message box text: diff --git a/Editor/languages/editor_de.ts b/Editor/languages/editor_de.ts index 44a198c3f..0c0e8bfe5 100644 --- a/Editor/languages/editor_de.ts +++ b/Editor/languages/editor_de.ts @@ -1625,12 +1625,6 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Please enter the name of event: Bitte gib den name für das Event ein: - - Please enter the message which will be shown. -(Max line length is 27 characters) - Bitte gib eine Nachricht ein -Maximal 27 Zeichen pro Zeile - Hit message text Nachrichttext @@ -1683,6 +1677,10 @@ Maximal 27 Zeichen pro Zeile Array-ID: %1 + + Please enter the message text that which will be shown: + + ItemBoxListModel @@ -1930,13 +1928,100 @@ Maximal 27 Zeichen pro Zeile <html><head/><body><p>Diese Nachricht wird angezeigt wenn der Spieler mit einem NPC redet.</p><p><span style=" font-weight:600;">Achtung:</span> Alle Anführungszeichen und Zeilenvorschub [Neue Zeilen] werden gelöscht.</p></body></html> - Enter the NPC's dialog message: -(Max length per line is 27 characters) - Bitte die Nachricht für NPC eingben -Maximale Länge: 27 Zeichen pro Zeile + Friendly (Non-friendly NPCs can't be talked to) + - Friendly (Non-friendly NPCs can't be talked to) + Preview settings + + + + Font size: + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + Preprocessor + + + + Player number: + + + + State number + + + + Show/Hide the message box preview area + + + + Enter the NPC's dialogue message text: + + + + Target engine: + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + + + Preview + The text on the switch button + Vorschau + + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. @@ -3481,12 +3566,6 @@ Do you want to continue? Please, set current section to %1 for capture data for this event Bitte setzte den aktuellen Bereich zu %1, um die Daten aufzunehmen - - Please, enter message -(Max line length is 27 characters) - Bitte gib Nachricht ein -Zeilenlimit: Maximal 27 Zeichen pro Zeile - Autoscroll section (Legacy) @@ -3523,6 +3602,10 @@ Zeilenlimit: Maximal 27 Zeichen pro Zeile Disabled by the strict SMBX64 mode + + Please, enter the message box text: + + LvlHistoryManager diff --git a/Editor/languages/editor_en.ts b/Editor/languages/editor_en.ts index 876e867d0..43e5d77b2 100644 --- a/Editor/languages/editor_en.ts +++ b/Editor/languages/editor_en.ts @@ -1659,12 +1659,6 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Please enter the name of event: Please enter the name of event: - - Please enter the message which will be shown. -(Max line length is 27 characters) - Please enter the message which will be shown. -(Max line length is 27 characters) - Hit message text Hit message text @@ -1717,6 +1711,10 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Array-ID: %1 Array-ID: %1 + + Please enter the message text that which will be shown: + Please enter the message text that which will be shown: + ItemBoxListModel @@ -1963,16 +1961,133 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> <html><head/><body><p>This is the message which will be displayed if the player talks with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> - - Enter the NPC's dialog message: -(Max length per line is 27 characters) - Enter the NPC's dialog message: -(Max length per line is 27 characters) - Friendly (Non-friendly NPCs can't be talked to) Friendly (Non-friendly NPCs can't be talked to) + + Preview settings + Preview settings + + + Font size: + Font size: + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + Preprocessor + Preprocessor + + + Player number: + Player number: + + + State number + State number + + + Show/Hide the message box preview area + Show/Hide the message box preview area + + + Enter the NPC's dialogue message text: + Enter the NPC's dialogue message text: + + + Target engine: + Target engine: + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + + + Preview + The text on the switch button + Preview + + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. + ItemMusic @@ -3544,12 +3659,6 @@ Do you want to continue? Please, set current section to %1 for capture data for this event Please switch current section to %1 to capture data for this event - - Please, enter message -(Max line length is 27 characters) - Please enter message -(Max line length is 27 characters) - Autoscroll section (Legacy) Autoscroll section (Legacy) @@ -3586,6 +3695,10 @@ Do you want to continue? Disabled by the strict SMBX64 mode Disabled by the strict SMBX64 mode + + Please, enter the message box text: + Please, enter the message box text: + LvlHistoryManager diff --git a/Editor/languages/editor_es.ts b/Editor/languages/editor_es.ts index 82be96d99..b286bab49 100644 --- a/Editor/languages/editor_es.ts +++ b/Editor/languages/editor_es.ts @@ -1630,12 +1630,6 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Please enter the name of event: Por favor defina el nombre del evento: - - Please enter the message which will be shown. -(Max line length is 27 characters) - Por favor, escriba el mensaje que se mostrará -Límites: longitud máxima de 27 caracteres - Hit message text Texto del mensaje @@ -1692,6 +1686,10 @@ Límites: longitud máxima de 27 caracteres Array-ID: %1 + + Please enter the message text that which will be shown: + + ItemBoxListModel @@ -1938,16 +1936,103 @@ Límites: longitud máxima de 27 caracteres <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> <html><head/><body><p>Este mensaje aparecerá cuando el jugador hable con este PNJ.</p><p><span style=" font-weight:600;">Nota:</span> Todas las comillas y caracteres de nueva línea serán removidos.</p></body></html> - - Enter the NPC's dialog message: -(Max length per line is 27 characters) - Por favor, ponga un mensaje dialogable para un PNJ. -Límite: máxima longitud de 27 caracteres - Friendly (Non-friendly NPCs can't be talked to) Amigable (PNJs no amigables no pueden hablar) + + Preview settings + + + + Font size: + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + Preprocessor + + + + Player number: + + + + State number + + + + Show/Hide the message box preview area + + + + Enter the NPC's dialogue message text: + + + + Target engine: + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + + + Preview + The text on the switch button + Previsualización + + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. + + ItemMusic @@ -3505,12 +3590,6 @@ Do you want to continue? Please, set current section to %1 for capture data for this event Por favor, fijar sección actual a %1 para capturar los datos de este evento - - Please, enter message -(Max line length is 27 characters) - Por favor, escribir mensaje -Límite: máxima longitud de 27 caracteres - Autoscroll section (Legacy) @@ -3547,6 +3626,10 @@ Límite: máxima longitud de 27 caracteres Disabled by the strict SMBX64 mode + + Please, enter the message box text: + + LvlHistoryManager diff --git a/Editor/languages/editor_fr.ts b/Editor/languages/editor_fr.ts index b2205b797..12e1172fc 100644 --- a/Editor/languages/editor_fr.ts +++ b/Editor/languages/editor_fr.ts @@ -1659,12 +1659,6 @@ ainsi que des boîtes d'outils dans les barres et menus d'outils. Cet Please enter the name of event: Veuillez entrer le nom de l'événement : - - Please enter the message which will be shown. -(Max line length is 27 characters) - Veuillez entrer le message qui s'affichera. -(La longueur maximale des lignes est de 27 caractères) - Hit message text Message lors de la frappe @@ -1693,6 +1687,10 @@ ainsi que des boîtes d'outils dans les barres et menus d'outils. Cet Array-ID: %1 + + Please enter the message text that which will be shown: + + ItemBoxListModel @@ -1939,16 +1937,103 @@ ainsi que des boîtes d'outils dans les barres et menus d'outils. Cet <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> <html><head/><body><p>Il s'agit du message qui sera affiché si le joueur parle avec le PNJ.</p><p><span style=" font-weight:600;">Remarque :</span> Tous les guillemets et retours à la ligne seront supprimés.</p></body></html> - - Enter the NPC's dialog message: -(Max length per line is 27 characters) - Entrez le message de dialogue du PNJ : -(La longueur maximale par ligne est de 27 caractères) - Friendly (Non-friendly NPCs can't be talked to) Amical (On ne peut pas parler aux PNJ non amicaux) + + Preview settings + + + + Font size: + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + Preprocessor + + + + Player number: + + + + State number + + + + Show/Hide the message box preview area + + + + Enter the NPC's dialogue message text: + + + + Target engine: + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + + + Preview + The text on the switch button + Aperçu + + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. + + ItemMusic @@ -3514,12 +3599,6 @@ Souhaitez-vous continuer ? Please, set current section to %1 for capture data for this event Veuillez passer de la section actuelle à la section %1 pour capturer les données pour cet évènement - - Please, enter message -(Max line length is 27 characters) - Veuillez entrer un message -(La longueur maximale de ligne est de 27 caractères) - Autoscroll section (Legacy) @@ -3556,6 +3635,10 @@ Souhaitez-vous continuer ? Disabled by the strict SMBX64 mode Désactivé par le mode SMBX64 strict + + Please, enter the message box text: + + LvlHistoryManager diff --git a/Editor/languages/editor_he-il.ts b/Editor/languages/editor_he-il.ts index 96843029c..f61baf738 100644 --- a/Editor/languages/editor_he-il.ts +++ b/Editor/languages/editor_he-il.ts @@ -1638,11 +1638,6 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Please enter the name of event: - - Please enter the message which will be shown. -(Max line length is 27 characters) - - Hit message text @@ -1671,6 +1666,10 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Array-ID: %1 + + Please enter the message text that which will be shown: + + ItemBoxListModel @@ -1918,12 +1917,100 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - Enter the NPC's dialog message: -(Max length per line is 27 characters) + Friendly (Non-friendly NPCs can't be talked to) - Friendly (Non-friendly NPCs can't be talked to) + Preview settings + + + + Font size: + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + Preprocessor + + + + Player number: + + + + State number + + + + Show/Hide the message box preview area + + + + Enter the NPC's dialogue message text: + + + + Target engine: + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + + + Preview + The text on the switch button + + + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. @@ -3464,11 +3551,6 @@ Do you want to continue? Please, set current section to %1 for capture data for this event - - Please, enter message -(Max line length is 27 characters) - - Autoscroll section (Legacy) @@ -3505,6 +3587,10 @@ Do you want to continue? Disabled by the strict SMBX64 mode + + Please, enter the message box text: + + LvlHistoryManager diff --git a/Editor/languages/editor_hu.ts b/Editor/languages/editor_hu.ts index d0beffe1a..de7b5c3b9 100644 --- a/Editor/languages/editor_hu.ts +++ b/Editor/languages/editor_hu.ts @@ -2042,13 +2042,13 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - + Margin of section Szekciómargó - + Please select how far items can travel beyond the section boundaries (in pixels) before they are removed. @@ -2063,34 +2063,32 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Írd be az esemény nevét: - - Please enter the message which will be shown. -(Max line length is 27 characters) - Írd be a megjeleníteni kívánt üzenet szövegét. -(Egy sorba legfeljebb 27 karakter fér) + + Please enter the message text that which will be shown: + - + Hit message text - + Event created Esemény létrehozva - + Message event created! Üzenetesemény létrehozva! - + 'Hit' event slot is used - + Sorry, but the 'Hit' event slot already used by the event: '%1'. @@ -2393,27 +2391,128 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec ItemMsgBox - + Set message box Üzenet szövegének beállítása - - + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. + + + + + Preview settings + + + + + Font size: + + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + + Preprocessor + + + + + Player number: + + + + + State number + + + + + Show/Hide the message box preview area + + + + <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> - - Enter the NPC's dialog message: -(Max length per line is 27 characters) + + Enter the NPC's dialogue message text: + + + + + Target engine: + + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. - + Friendly (Non-friendly NPCs can't be talked to) Barátságos (Nem barátságos NJK-kal nem lehet beszélgetni) + + + Preview + The text on the switch button + + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + ItemMusic @@ -2656,13 +2755,13 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - + Margin of section Szekciómargó - + Please select how far items can travel beyond the section boundaries (in pixels) before they are removed. @@ -4479,8 +4578,7 @@ Do you want to continue? - Please, enter message -(Max line length is 27 characters) + Please, enter the message box text: diff --git a/Editor/languages/editor_id.ts b/Editor/languages/editor_id.ts index a765f4f20..47aae1b94 100644 --- a/Editor/languages/editor_id.ts +++ b/Editor/languages/editor_id.ts @@ -1638,11 +1638,6 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Please enter the name of event: - - Please enter the message which will be shown. -(Max line length is 27 characters) - - Hit message text @@ -1671,6 +1666,10 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Array-ID: %1 + + Please enter the message text that which will be shown: + + ItemBoxListModel @@ -1918,12 +1917,100 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - Enter the NPC's dialog message: -(Max length per line is 27 characters) + Friendly (Non-friendly NPCs can't be talked to) - Friendly (Non-friendly NPCs can't be talked to) + Preview settings + + + + Font size: + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + Preprocessor + + + + Player number: + + + + State number + + + + Show/Hide the message box preview area + + + + Enter the NPC's dialogue message text: + + + + Target engine: + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + + + Preview + The text on the switch button + + + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. @@ -3464,11 +3551,6 @@ Do you want to continue? Please, set current section to %1 for capture data for this event - - Please, enter message -(Max line length is 27 characters) - - Autoscroll section (Legacy) @@ -3505,6 +3587,10 @@ Do you want to continue? Disabled by the strict SMBX64 mode + + Please, enter the message box text: + + LvlHistoryManager diff --git a/Editor/languages/editor_it.ts b/Editor/languages/editor_it.ts index 586dd7e60..2ac5a69cc 100644 --- a/Editor/languages/editor_it.ts +++ b/Editor/languages/editor_it.ts @@ -1660,12 +1660,6 @@ come le tavolozze in barre e menu. Questo editor ti permette anche di selezionar Please enter the name of event: Inserisci il nome dell'evento: - - Please enter the message which will be shown. -(Max line length is 27 characters) - Inserisci il messaggio che sarà mostrato. -(Massimo 27 caratteri per riga) - Hit message text Prova il testo del messaggio @@ -1694,6 +1688,10 @@ come le tavolozze in barre e menu. Questo editor ti permette anche di selezionar Array-ID: %1 + + Please enter the message text that which will be shown: + + ItemBoxListModel @@ -1940,16 +1938,103 @@ come le tavolozze in barre e menu. Questo editor ti permette anche di selezionar <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> <html><head/><body><p>Questo è un messaggio, che verrà mostrato se il personaggio parlerà con l'NPC. </p><p><span style=" font-weight:600;">Nota:</span> tutti i " e le lettere con '-' verranno rimosse.</p></body></html> - - Enter the NPC's dialog message: -(Max length per line is 27 characters) - Inserisci il messaggio dell'NPC: -(massimo 27 caratteri per riga) - Friendly (Non-friendly NPCs can't be talked to) Amichevole (non puoi parlare con gli NPC non amichevoli) + + Preview settings + + + + Font size: + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + Preprocessor + + + + Player number: + + + + State number + + + + Show/Hide the message box preview area + + + + Enter the NPC's dialogue message text: + + + + Target engine: + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + + + Preview + The text on the switch button + Anteprima + + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. + + ItemMusic @@ -3507,12 +3592,6 @@ Vuoi continuare? Please, set current section to %1 for capture data for this event Imposta la sezione corrente a %1 per catturare i dati per questo evento - - Please, enter message -(Max line length is 27 characters) - Inserisci messaggio -(massimo 27 caratteri per riga) - Autoscroll section (Legacy) @@ -3549,6 +3628,10 @@ Vuoi continuare? Disabled by the strict SMBX64 mode + + Please, enter the message box text: + + LvlHistoryManager diff --git a/Editor/languages/editor_ja.ts b/Editor/languages/editor_ja.ts index 4d2d35579..5152e0a43 100644 --- a/Editor/languages/editor_ja.ts +++ b/Editor/languages/editor_ja.ts @@ -1638,11 +1638,6 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Please enter the name of event: - - Please enter the message which will be shown. -(Max line length is 27 characters) - - Hit message text @@ -1671,6 +1666,10 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Array-ID: %1 + + Please enter the message text that which will be shown: + + ItemBoxListModel @@ -1918,12 +1917,100 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - Enter the NPC's dialog message: -(Max length per line is 27 characters) + Friendly (Non-friendly NPCs can't be talked to) - Friendly (Non-friendly NPCs can't be talked to) + Preview settings + + + + Font size: + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + Preprocessor + + + + Player number: + + + + State number + + + + Show/Hide the message box preview area + + + + Enter the NPC's dialogue message text: + + + + Target engine: + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + + + Preview + The text on the switch button + + + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. @@ -3464,11 +3551,6 @@ Do you want to continue? Please, set current section to %1 for capture data for this event - - Please, enter message -(Max line length is 27 characters) - - Autoscroll section (Legacy) @@ -3505,6 +3587,10 @@ Do you want to continue? Disabled by the strict SMBX64 mode + + Please, enter the message box text: + + LvlHistoryManager diff --git a/Editor/languages/editor_ko.ts b/Editor/languages/editor_ko.ts index e9cbcf650..3415e5633 100644 --- a/Editor/languages/editor_ko.ts +++ b/Editor/languages/editor_ko.ts @@ -2043,13 +2043,13 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - + Margin of section 섹션 여백 - + Please select how far items can travel beyond the section boundaries (in pixels) before they are removed. 항목을 제거하려면 섹션 경계에서 얼마나 멀리 떨어져 있는지 (픽셀 단위) 선택하십시오. @@ -2064,34 +2064,32 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec 이벤트 이름을 입력하세요 : - - Please enter the message which will be shown. -(Max line length is 27 characters) - 표시 될 메시지를 입력하세요. -(최대 줄 길이는 27 자입니다.) + + Please enter the message text that which will be shown: + - + Hit message text 히트 메시지 텍스트 - + Event created 이벤트 생성 - + Message event created! 메시지 이벤트가 생성되었습니다! - + 'Hit' event slot is used '히트'이벤트 슬롯이 사용됩니다 - + Sorry, but the 'Hit' event slot already used by the event: '%1'. 죄송합니다. '% 1'이벤트에서 이미 사용중인 'Hit'이벤트 슬롯입니다. @@ -2394,28 +2392,128 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec ItemMsgBox - + Set message box 메시지 텍스트 설정 - - + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. + + + + + Preview settings + + + + + Font size: + + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + + Preprocessor + + + + + Player number: + + + + + State number + + + + + Show/Hide the message box preview area + + + + <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> <html><head/><body><p>플레이어가이 NPC와 대화 할 때 표시되는 메시지입니다.</p><p><span style=" font-weight:600;">노트 :</span> 모든 따옴표와 개행 문자가 제거됩니다.</p></body></html> - - Enter the NPC's dialog message: -(Max length per line is 27 characters) - NPC의 대화 메시지 입력 : -(라인 당 최대 길이는 27 자입니다.) + + Enter the NPC's dialogue message text: + + + + + Target engine: + + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + - + Friendly (Non-friendly NPCs can't be talked to) 우호적 (우호적이지 않은 NPC와 대화 할 수 없음) + + + Preview + The text on the switch button + 시사 + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + ItemMusic @@ -2658,13 +2756,13 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - + Margin of section 섹션 여백 - + Please select how far items can travel beyond the section boundaries (in pixels) before they are removed. 항목을 제거하려면 섹션 경계에서 얼마나 멀리 떨어져 있는지 (픽셀 단위) 선택하십시오. @@ -4508,10 +4606,8 @@ Do you want to continue? - Please, enter message -(Max line length is 27 characters) - 메시지를 입력하세요 -(최대 줄 길이는 27 자입니다.) + Please, enter the message box text: + diff --git a/Editor/languages/editor_nb-no.ts b/Editor/languages/editor_nb-no.ts index fad7e050a..e540c6ff3 100644 --- a/Editor/languages/editor_nb-no.ts +++ b/Editor/languages/editor_nb-no.ts @@ -2023,13 +2023,13 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - + Margin of section - + Please select how far items can travel beyond the section boundaries (in pixels) before they are removed. @@ -2044,33 +2044,32 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - - Please enter the message which will be shown. -(Max line length is 27 characters) + + Please enter the message text that which will be shown: - + Hit message text - + Event created - + Message event created! - + 'Hit' event slot is used - + Sorry, but the 'Hit' event slot already used by the event: '%1'. @@ -2373,27 +2372,128 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec ItemMsgBox - + Set message box - - + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. + + + + + Preview settings + + + + + Font size: + + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + + Preprocessor + + + + + Player number: + + + + + State number + + + + + Show/Hide the message box preview area + + + + <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> - - Enter the NPC's dialog message: -(Max length per line is 27 characters) + + Enter the NPC's dialogue message text: + + + + + Target engine: + + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. - + Friendly (Non-friendly NPCs can't be talked to) + + + Preview + The text on the switch button + + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + ItemMusic @@ -2636,13 +2736,13 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - + Margin of section - + Please select how far items can travel beyond the section boundaries (in pixels) before they are removed. @@ -4459,8 +4559,7 @@ Do you want to continue? - Please, enter message -(Max line length is 27 characters) + Please, enter the message box text: diff --git a/Editor/languages/editor_nl.ts b/Editor/languages/editor_nl.ts index 7ed602eba..2d31cbde7 100644 --- a/Editor/languages/editor_nl.ts +++ b/Editor/languages/editor_nl.ts @@ -2044,35 +2044,28 @@ evenals is er gereedschap in balken en menu's. Met dit programma kan je ook - + Please select how far items can travel beyond the section boundaries (in pixels) before they are removed. Gelieve aan te geven hoe ver buiten de speelgrens (in pixels) voorwerpen verwijderd moeten worden. - - Please enter the message which will be shown. -(Max line length is 27 characters) - Gelieve een bericht in te vullen dat getoond wordt. -(Maximum 27 tekens per regel) - - - + Event created Event aangemaakt - + Message event created! Bericht event aangemaakt! - + Sorry, but the 'Hit' event slot already used by the event: '%1'. Sorry, de positie van het 'Botsing' event is al in gebruik door dit event: '%1'. - + Margin of section Sectiemarge @@ -2088,11 +2081,16 @@ evenals is er gereedschap in balken en menu's. Met dit programma kan je ook + Please enter the message text that which will be shown: + + + + Hit message text Botsing-geactiveerd bericht - + 'Hit' event slot is used 'Botsing' event slot is in gebruik @@ -2395,28 +2393,128 @@ evenals is er gereedschap in balken en menu's. Met dit programma kan je ook ItemMsgBox - + Set message box Tekstvakje toevoegen - - + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. + + + + + Preview settings + + + + + Font size: + + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + + Preprocessor + + + + + Player number: + + + + + State number + + + + + Show/Hide the message box preview area + + + + <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> <html><head/><body><p>Dit is het bericht dat getoond zal worden als je met de NPC praat.</p><p><span style=" font-weight:600;">Merk op:</span> Al de aanhalingstekens en nieuwe lijncharacters zullen verwijderd worden.</p></body></html> - - Enter the NPC's dialog message: -(Max length per line is 27 characters) - Typ hier de dialoogtekst: -(27 tekens per lijn) + + Enter the NPC's dialogue message text: + + + + + Target engine: + + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + - + Friendly (Non-friendly NPCs can't be talked to) Vriendelijk (Vijandige NPCs kunnen niet worden aangesproken) + + + Preview + The text on the switch button + Voorbeeld + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + ItemMusic @@ -2659,13 +2757,13 @@ evenals is er gereedschap in balken en menu's. Met dit programma kan je ook - + Margin of section Sectiemarge - + Please select how far items can travel beyond the section boundaries (in pixels) before they are removed. Gelieve aan te geven hoe ver buiten de speelgrens (in pixels) voorwerpen verwijderd moeten worden. @@ -4504,10 +4602,8 @@ Wilt u toch doorgaan? - Please, enter message -(Max line length is 27 characters) - Geef een bericht op -(Max. lengte per regel is 27 tekens) + Please, enter the message box text: + diff --git a/Editor/languages/editor_pl.ts b/Editor/languages/editor_pl.ts index f789bd5fc..0b6e3d30a 100644 --- a/Editor/languages/editor_pl.ts +++ b/Editor/languages/editor_pl.ts @@ -1659,12 +1659,6 @@ a także z pasków narzędzi (panele z ikonami na górze okna) i z menu. W tym e Please enter the name of event: Proszę podaj nazwę eventu: - - Please enter the message which will be shown. -(Max line length is 27 characters) - Proszę podaj wiadomość do wyświetlenia -Limity wiadomości: maksymalna długość linii to 27 znaków - Hit message text Wiadomość po uderzeniu @@ -1693,6 +1687,10 @@ Limity wiadomości: maksymalna długość linii to 27 znaków Array-ID: %1 + + Please enter the message text that which will be shown: + + ItemBoxListModel @@ -1939,16 +1937,103 @@ Limity wiadomości: maksymalna długość linii to 27 znaków <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> <html><head/><body><p>Ta wiadomość zostanie wyświetlona, jeśli gracz porozmawia z NPC.</p><p><span style=" font-weight:600;">Notatka:</span> Wszystkie cudzysłowie i znaki następnej linii zostaną usunięte.</p></body></html> - - Enter the NPC's dialog message: -(Max length per line is 27 characters) - Proszę podać wiadomość NPC -Limity wiadomości: maksymalna długość jeden linii to 27 znaków - Friendly (Non-friendly NPCs can't be talked to) Przyjazny (Nie możesz rozmawiać z nieprzyjaznymi NPC) + + Preview settings + + + + Font size: + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + Preprocessor + + + + Player number: + + + + State number + + + + Show/Hide the message box preview area + + + + Enter the NPC's dialogue message text: + + + + Target engine: + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + + + Preview + The text on the switch button + Podgląd + + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. + + ItemMusic @@ -3515,12 +3600,6 @@ Czy chcesz kontynuować? Please, set current section to %1 for capture data for this event Proszę, ustaw sekcję na %1 aby pobrać informacje do tego eventu - - Please, enter message -(Max line length is 27 characters) - Proszę podaj wiadomość -Limity: 27 znaków w jedej linii - Autoscroll section (Legacy) @@ -3557,6 +3636,10 @@ Limity: 27 znaków w jedej linii Disabled by the strict SMBX64 mode + + Please, enter the message box text: + + LvlHistoryManager diff --git a/Editor/languages/editor_pt-br.ts b/Editor/languages/editor_pt-br.ts index 8604ec9c1..81a21ddc9 100644 --- a/Editor/languages/editor_pt-br.ts +++ b/Editor/languages/editor_pt-br.ts @@ -1622,12 +1622,6 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Please enter the name of event: Por favor, insira o nome do evento: - - Please enter the message which will be shown. -(Max line length is 27 characters) - Coloque aqui a mensagem que será mostrada. -Apenas 27 caracteres por linha - Hit message text Texto da mensagem do evento Bater @@ -1680,6 +1674,10 @@ Apenas 27 caracteres por linha Array-ID: %1 + + Please enter the message text that which will be shown: + + ItemBoxListModel @@ -1927,12 +1925,100 @@ Apenas 27 caracteres por linha <html><head/><body><p>Esta é a mensagem, o que irá ser exibido ao jogador falar com o NPC.</p><p><span style=" font-weight:600;">Nota:</span> Todas as aspas e parágrafos serão removidos.</p></body></html> - Enter the NPC's dialog message: -(Max length per line is 27 characters) + Friendly (Non-friendly NPCs can't be talked to) - Friendly (Non-friendly NPCs can't be talked to) + Preview settings + + + + Font size: + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + Preprocessor + + + + Player number: + + + + State number + + + + Show/Hide the message box preview area + + + + Enter the NPC's dialogue message text: + + + + Target engine: + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + + + Preview + The text on the switch button + + + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. @@ -3477,12 +3563,6 @@ Do you want to continue? Please, set current section to %1 for capture data for this event Por favor, defina a seção atual para %1 para capturar dados para este evento - - Please, enter message -(Max line length is 27 characters) - Por favor, insira a mensagm -Apenas 27 caracteres por linha - Autoscroll section (Legacy) @@ -3519,6 +3599,10 @@ Apenas 27 caracteres por linha Disabled by the strict SMBX64 mode + + Please, enter the message box text: + + LvlHistoryManager diff --git a/Editor/languages/editor_pt-pt.ts b/Editor/languages/editor_pt-pt.ts index efcab21e0..dbb1db85b 100644 --- a/Editor/languages/editor_pt-pt.ts +++ b/Editor/languages/editor_pt-pt.ts @@ -1625,12 +1625,6 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Please enter the name of event: Por favor, insira o nome do evento: - - Please enter the message which will be shown. -(Max line length is 27 characters) - Coloque aqui a mensagem que será mostrada. -Apenas 27 caracteres por linha - Hit message text Texto da mensagem do evento Bater @@ -1683,6 +1677,10 @@ Apenas 27 caracteres por linha Array-ID: %1 + + Please enter the message text that which will be shown: + + ItemBoxListModel @@ -1930,12 +1928,100 @@ Apenas 27 caracteres por linha <html><head/><body><p>Esta é a mensagem, o que irá ser exibido ao jogador falar com o NPC.</p><p><span style=" font-weight:600;">Nota:</span> Todas as aspas e parágrafos serão removidos.</p></body></html> - Enter the NPC's dialog message: -(Max length per line is 27 characters) + Friendly (Non-friendly NPCs can't be talked to) - Friendly (Non-friendly NPCs can't be talked to) + Preview settings + + + + Font size: + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + Preprocessor + + + + Player number: + + + + State number + + + + Show/Hide the message box preview area + + + + Enter the NPC's dialogue message text: + + + + Target engine: + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + + + Preview + The text on the switch button + + + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. @@ -3480,12 +3566,6 @@ Do you want to continue? Please, set current section to %1 for capture data for this event Por favor, defina a secção atual para %1 para capturar dados para este evento - - Please, enter message -(Max line length is 27 characters) - Por favor, insira a mensagm -Apenas 27 caracteres por linha - Autoscroll section (Legacy) @@ -3522,6 +3602,10 @@ Apenas 27 caracteres por linha Disabled by the strict SMBX64 mode + + Please, enter the message box text: + + LvlHistoryManager diff --git a/Editor/languages/editor_ro.ts b/Editor/languages/editor_ro.ts index a62a4d623..a315d181a 100644 --- a/Editor/languages/editor_ro.ts +++ b/Editor/languages/editor_ro.ts @@ -2023,13 +2023,13 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - + Margin of section - + Please select how far items can travel beyond the section boundaries (in pixels) before they are removed. @@ -2044,33 +2044,32 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - - Please enter the message which will be shown. -(Max line length is 27 characters) + + Please enter the message text that which will be shown: - + Hit message text - + Event created - + Message event created! - + 'Hit' event slot is used - + Sorry, but the 'Hit' event slot already used by the event: '%1'. @@ -2373,27 +2372,128 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec ItemMsgBox - + Set message box - - + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. + + + + + Preview settings + + + + + Font size: + + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + + Preprocessor + + + + + Player number: + + + + + State number + + + + + Show/Hide the message box preview area + + + + <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> - - Enter the NPC's dialog message: -(Max length per line is 27 characters) + + Enter the NPC's dialogue message text: + + + + + Target engine: + + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. - + Friendly (Non-friendly NPCs can't be talked to) + + + Preview + The text on the switch button + + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + ItemMusic @@ -2636,13 +2736,13 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - + Margin of section - + Please select how far items can travel beyond the section boundaries (in pixels) before they are removed. @@ -4459,8 +4559,7 @@ Do you want to continue? - Please, enter message -(Max line length is 27 characters) + Please, enter the message box text: diff --git a/Editor/languages/editor_ru.ts b/Editor/languages/editor_ru.ts index b51feeb8e..9af47c10b 100644 --- a/Editor/languages/editor_ru.ts +++ b/Editor/languages/editor_ru.ts @@ -1659,12 +1659,6 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Please enter the name of event: Пожалуйста, введите имя события: - - Please enter the message which will be shown. -(Max line length is 27 characters) - Пожалуйста, наберите сообщение, которое будет показано. -(максимальная длина строки - 27 символов) - Hit message text Текст сообщения стукнутого блока @@ -1717,6 +1711,10 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Array-ID: %1 ID в массиве: %1 + + Please enter the message text that which will be shown: + Введите текст сообщения, который будет поканан: + ItemBoxListModel @@ -1963,16 +1961,134 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> <html><head/><body><p>Это сообщение, которое будет отображено игроку при разговоре с этим неигровым персонажем.</p><p><span style=" font-weight:600;">Замечание:</span> Все кавычки и символы переноса строки будут удалены.</p></body></html> - - Enter the NPC's dialog message: -(Max length per line is 27 characters) - Введите сообщение диалога NPC: -(Макс. длина одной строки - 27 символов) - Friendly (Non-friendly NPCs can't be talked to) Дружелюбный (Недружелюбные НИПы не разговаривают) + + Preview settings + Настройки предпросмотра + + + Font size: + Размер шрифта: + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + Определяет размер шрифта в данном предпросмотре. + +Данное поле НЕ ВЛИЯЕТ на результат, отображённый в самой игре, +оно используется лишь в этом диалоге для удобства предпросмотра. + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + Препроцессор - это особая функция движка TheXTech начиная с версии 1.3.6.1, +которая позволяет окнам сообщения меняться в зависимости от различных факторов, +например, в зависимости от текущего игрового персонажа. + + + Preprocessor + Препроцессор + + + Player number: + Номер игрового персонажа: + + + State number + Номер состояния + + + Show/Hide the message box preview area + Скрыть/Показать область предпросмотра окна сообщения + + + Enter the NPC's dialogue message text: + Введите текст сообщения диалога НИП: + + + Target engine: + Целевой движок: + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + Данное поле позволяет увидеть сообщение так, как оно было бы показано в +различных движках с их реализациями отображения окон сообщения. + +- Движки SMBX 1.3 и X2 не поддерживает символы переносы строк совсем. +Символы переноса будут отображены как пробелы. Также, SMBX 1.3 совсем +не поддерживает вывод не-ASCII-символов, которые выводятся как пробелы. +Слишком длинные слова никогда не разбиваются, и поэтому выходят за края +окна сообщения. + +- Движки Moondust и TheXTech штатно поддерживают как переносы срок, так и +символы Юникода. Слишклм длинные слова разбиваются принудительно, +и поэтому они никогда не уйдут за края окна сообщения. + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + Базовое окно сообщения в движках <b>SMBX 1.3</b> и <b>X2</b> имеет следующие ограничения: +<ul> + <li><b>Нельзя делать переносы строк с помощью клавиши "Enter"/"Return"</b><br/> +(Нужно использовать пробелы в качестве обходного решения)</li> + <li>Переносы строк происходят автоматически каждые <b>27 символов</b>.</li> + <li>Очень длинные слова не разбиваются и выводятся за пределы экрана.<br/> +Так что, пожалуйста, разбивайте такие слова, чтобы не допустить подобного.</li> + <li>Нельзя использовать символы Юникода: <b>работают только символы ASCII</b></li> +</ul> + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + Окна сообщений в движках <b>Moondust</b> и <b>TheXTech</b> имеют следующие ограничения: +<ul> + <li>Переносы строк <b>можно делать легко, с помощью клавиши "Enter"/"Return"</b>.</li> + <li>Переносы строк также происходят автоматически после <b>27 знаков</b>.</li> + <li>Очень длинные слова разбиваются принудительно.</li> + <li>Вы можете использовать <b>любые символы Юникода</b>.</li> + <li>Можно использовать <b>макросы препроцессора</b>.</li> +</ul> + + + Preview + The text on the switch button + Предпросмотр + + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. + Это текст сообщения, которое будет отображено, когда игрок попытается поговорить с НИП, либо когда будет запущено событие, содержащее непустое сообщение. + ItemMusic @@ -3543,12 +3659,6 @@ Do you want to continue? Please, set current section to %1 for capture data for this event Пожалуйста, переключите текущую секцию на %1 для захвата данных для этого события - - Please, enter message -(Max line length is 27 characters) - Пожалуйста, введите сообщение -(Макс. длина одной строки - 27 символов) - Autoscroll section (Legacy) Автопрокрутка секции (устар.) @@ -3585,6 +3695,10 @@ Do you want to continue? Disabled by the strict SMBX64 mode Отключено из-за строгого режима SMBX64 + + Please, enter the message box text: + Пожалуйста, введите текст окна сообщения: + LvlHistoryManager diff --git a/Editor/languages/editor_sr.ts b/Editor/languages/editor_sr.ts index 12ddc5b41..88b7b3810 100644 --- a/Editor/languages/editor_sr.ts +++ b/Editor/languages/editor_sr.ts @@ -2023,13 +2023,13 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - + Margin of section - + Please select how far items can travel beyond the section boundaries (in pixels) before they are removed. @@ -2044,33 +2044,32 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - - Please enter the message which will be shown. -(Max line length is 27 characters) + + Please enter the message text that which will be shown: - + Hit message text - + Event created - + Message event created! - + 'Hit' event slot is used - + Sorry, but the 'Hit' event slot already used by the event: '%1'. @@ -2373,27 +2372,128 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec ItemMsgBox - + Set message box - - + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. + + + + + Preview settings + + + + + Font size: + + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + + Preprocessor + + + + + Player number: + + + + + State number + + + + + Show/Hide the message box preview area + + + + <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> - - Enter the NPC's dialog message: -(Max length per line is 27 characters) + + Enter the NPC's dialogue message text: + + + + + Target engine: + + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. - + Friendly (Non-friendly NPCs can't be talked to) + + + Preview + The text on the switch button + + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + ItemMusic @@ -2636,13 +2736,13 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - + Margin of section - + Please select how far items can travel beyond the section boundaries (in pixels) before they are removed. @@ -4459,8 +4559,7 @@ Do you want to continue? - Please, enter message -(Max line length is 27 characters) + Please, enter the message box text: diff --git a/Editor/languages/editor_sv.ts b/Editor/languages/editor_sv.ts index a2356fc1d..bfcf0034b 100644 --- a/Editor/languages/editor_sv.ts +++ b/Editor/languages/editor_sv.ts @@ -1643,11 +1643,6 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Please enter the name of event: - - Please enter the message which will be shown. -(Max line length is 27 characters) - - Hit message text @@ -1676,6 +1671,10 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Array-ID: %1 + + Please enter the message text that which will be shown: + + ItemBoxListModel @@ -1923,12 +1922,100 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - Enter the NPC's dialog message: -(Max length per line is 27 characters) + Friendly (Non-friendly NPCs can't be talked to) - Friendly (Non-friendly NPCs can't be talked to) + Preview settings + + + + Font size: + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + Preprocessor + + + + Player number: + + + + State number + + + + Show/Hide the message box preview area + + + + Enter the NPC's dialogue message text: + + + + Target engine: + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + + + Preview + The text on the switch button + + + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. @@ -3469,11 +3556,6 @@ Do you want to continue? Please, set current section to %1 for capture data for this event - - Please, enter message -(Max line length is 27 characters) - - Autoscroll section (Legacy) @@ -3510,6 +3592,10 @@ Do you want to continue? Disabled by the strict SMBX64 mode + + Please, enter the message box text: + + LvlHistoryManager diff --git a/Editor/languages/editor_tr.ts b/Editor/languages/editor_tr.ts index 18b8d2395..d0218204d 100644 --- a/Editor/languages/editor_tr.ts +++ b/Editor/languages/editor_tr.ts @@ -2023,13 +2023,13 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - + Margin of section - + Please select how far items can travel beyond the section boundaries (in pixels) before they are removed. @@ -2044,33 +2044,32 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - - Please enter the message which will be shown. -(Max line length is 27 characters) + + Please enter the message text that which will be shown: - + Hit message text - + Event created - + Message event created! - + 'Hit' event slot is used - + Sorry, but the 'Hit' event slot already used by the event: '%1'. @@ -2373,27 +2372,128 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec ItemMsgBox - + Set message box - - + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. + + + + + Preview settings + + + + + Font size: + + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + + Preprocessor + + + + + Player number: + + + + + State number + + + + + Show/Hide the message box preview area + + + + <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> - - Enter the NPC's dialog message: -(Max length per line is 27 characters) + + Enter the NPC's dialogue message text: + + + + + Target engine: + + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. - + Friendly (Non-friendly NPCs can't be talked to) + + + Preview + The text on the switch button + + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + ItemMusic @@ -2636,13 +2736,13 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec - + Margin of section - + Please select how far items can travel beyond the section boundaries (in pixels) before they are removed. @@ -4459,8 +4559,7 @@ Do you want to continue? - Please, enter message -(Max line length is 27 characters) + Please, enter the message box text: diff --git a/Editor/languages/editor_uk.ts b/Editor/languages/editor_uk.ts index aff9081e4..3e46867c8 100644 --- a/Editor/languages/editor_uk.ts +++ b/Editor/languages/editor_uk.ts @@ -1661,12 +1661,6 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Please enter the name of event: Будь ласка, вкажіть ім'я Події: - - Please enter the message which will be shown. -(Max line length is 27 characters) - Будь ласка, напишіть повідомлення, яке буде показане. -(максимальна довжина рядка - 27 символів) - Hit message text Текст повідомлення від удару @@ -1695,6 +1689,10 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Array-ID: %1 ID масиву: %1 + + Please enter the message text that which will be shown: + + ItemBoxListModel @@ -1941,16 +1939,103 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> <html><head/><body><p>Це повідомлення, яке буде показане гравцю при розмові з цим неігровим персонажем.</p><p> <span style=" font-weight:600;">Примітка:</span> Всі лапки й символи переносу рядка будуть видалені.</p></body></html> - - Enter the NPC's dialog message: -(Max length per line is 27 characters) - Введіть повідомлення діалогу НІП: -(Максимальна довжина рядка - 27 символів) - Friendly (Non-friendly NPCs can't be talked to) Дружелюбний (Недружелюбні НІП не розмовляють) + + Preview settings + + + + Font size: + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + Preprocessor + + + + Player number: + + + + State number + + + + Show/Hide the message box preview area + + + + Enter the NPC's dialogue message text: + + + + Target engine: + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + + + Preview + The text on the switch button + Перегляд + + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. + + ItemMusic @@ -3516,12 +3601,6 @@ Do you want to continue? Please, set current section to %1 for capture data for this event Будь ласка, змініть дану секцію на %1 для захвату даних для цієї Події - - Please, enter message -(Max line length is 27 characters) - Будь ласка, введіть повідомлення -(Макс. довжина одного рядка - 27 символів) - Autoscroll section (Legacy) Автопрокрутка секції (застар.) @@ -3558,6 +3637,10 @@ Do you want to continue? Disabled by the strict SMBX64 mode Відключено із-за суворого режиму SMBX64 + + Please, enter the message box text: + + LvlHistoryManager diff --git a/Editor/languages/editor_zh.ts b/Editor/languages/editor_zh.ts index 0ed6610dc..2d8425d6b 100644 --- a/Editor/languages/editor_zh.ts +++ b/Editor/languages/editor_zh.ts @@ -1683,12 +1683,6 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Please enter the name of event: 请输入事件名称: - - Please enter the message which will be shown. -(Max line length is 27 characters) - 请输入信息: -(每行不超过 27 个字符) - Hit message text 撞击方块信息 @@ -1717,6 +1711,10 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec Array-ID: %1 对象索引:%1 + + Please enter the message text that which will be shown: + + ItemBoxListModel @@ -1964,16 +1962,103 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec <html><head/><body><p>This is a message, what will be displayed if player will do talk with this NPC.</p><p><span style=" font-weight:600;">Note:</span> All quotes and new-line characters will be removed.</p></body></html> <p>这是和此 NPC 对话时要显示的内容。</p><p><span style=" font-weight:600;">注:</span>所有双引号和换行字符都将被移除。</p> - - Enter the NPC's dialog message: -(Max length per line is 27 characters) - 请输入 NPC 对话信息: -(每行不超过 27 个字符) - Friendly (Non-friendly NPCs can't be talked to) 友好(不能和不友好的 NPC 对话) + + Preview settings + + + + Font size: + + + + Defines the size of the font in this preview. + +This field does NOT affects the result shown in the game itself, +it's only used for the preview convenience in this dialogue. + + + + Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows +you to make the message box being different depending on various factors, for example, +depending on which playable character is used. + + + + Preprocessor + + + + Player number: + + + + State number + + + + Show/Hide the message box preview area + + + + Enter the NPC's dialogue message text: + + + + Target engine: + + + + This field allows you to preview the message box like it shown in different engines +that has different behaviour of the message box displaying: + +- The SMBX 1.3 / X2 doesn't support line break characters at all. Characters of line break +gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters +that gets printed as spaces. Too long words never gets broken and they gets printed +out of the dialogue box area. + +- The Moondust / TheXTech has a full support for line breaks as well as unicode +characters. Too long words gets broken and they will never go out of the dialogue +box area. + + + + The basic message box of <b>SMBX 1.3 / X2</b> has the next restrictions: +<ul> + <li>New line <b>CAN NOT be done via the "Return"/"Enter" key</b><br/> +(you should use spaces as a workaround).<li> + <li>Line breaks happen automatically after <b>27 characters</b>.</li> + <li>Very long words doesn't breaks and gets printed out of screen.<br/> +So, please break these words to avoid this.</li> + <li>You can't use any Unicode characters: <b>ASCII only</b> works.</li> +</ul> + Message box behaviour explanation + + + + The message box of <b>Moondust / TheXTech</b> has the next restrictions: +<ul> + <li>New line <b>CAN be done by "Return"/"Enter" key</b> easily.</li> + <li>Line breaks also happen automatically after <b>27 characters</b>.</li> + <li>Very long words gets broken forcibly.</li> + <li>You can use <b>any Unicode</b> characters.</li> + <li><b>Preprocessor's macros</b> can be used.</li> +</ul> + Message box behaviour explanation + + + + Preview + The text on the switch button + 预览 + + + This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered. + + ItemMusic @@ -2780,7 +2865,7 @@ Do you want to save your changes? SMBX-38A file version - + SMBX-38A文件版本 Which version do you want to save as? (from 64 to 69) @@ -3541,12 +3626,6 @@ Do you want to continue? Please, set current section to %1 for capture data for this event 请将场景切换到 %1 以获取本事件的数据 - - Please, enter message -(Max line length is 27 characters) - 请输入信息: -(每行不超过 27 个字符) - Autoscroll section (Legacy) 强制卷轴场景(旧) @@ -3583,6 +3662,10 @@ Do you want to continue? Disabled by the strict SMBX64 mode 在严格兼容的 SMBX64 模式中已被禁用 + + Please, enter the message box text: + + LvlHistoryManager diff --git a/Editor/main_window/dock/lvl_events_box.cpp b/Editor/main_window/dock/lvl_events_box.cpp index 1abc8cbcd..f1e13d2e3 100644 --- a/Editor/main_window/dock/lvl_events_box.cpp +++ b/Editor/main_window/dock/lvl_events_box.cpp @@ -2245,7 +2245,7 @@ void LvlEventsBox::on_LVLEvent_Cmn_Msg_clicked() if(i < 0) return; ItemMsgBox *msgBox = new ItemMsgBox(Opened_By::EVENT, edit->LvlData.events[i].msg, false, - tr("Please, enter message\n(Max line length is 27 characters)"), "", this); + tr("Please, enter the message box text:"), QString(), this); util::DialogToCenter(msgBox); if(msgBox->exec() == QDialog::Accepted) diff --git a/Editor/main_window/dock/lvl_item_properties.cpp b/Editor/main_window/dock/lvl_item_properties.cpp index c66644b15..20b9db254 100644 --- a/Editor/main_window/dock/lvl_item_properties.cpp +++ b/Editor/main_window/dock/lvl_item_properties.cpp @@ -1992,7 +1992,7 @@ void LvlItemProperties::on_PROPS_NpcTMsg_clicked() } } - ItemMsgBox *msgBox = new ItemMsgBox(Opened_By::NPC, message, friendly, "", "", this); + ItemMsgBox *msgBox = new ItemMsgBox(Opened_By::NPC, message, friendly, QString(), QString(), this); util::DialogToCenter(msgBox, true); if(msgBox->exec() == QDialog::Accepted) diff --git a/_common/qt-modules/msg_box_preview/msg_box_preview.cpp b/_common/qt-modules/msg_box_preview/msg_box_preview.cpp index f631b47eb..2e85589de 100644 --- a/_common/qt-modules/msg_box_preview/msg_box_preview.cpp +++ b/_common/qt-modules/msg_box_preview/msg_box_preview.cpp @@ -37,6 +37,7 @@ QString MsgBoxPreview::runPreProcessor() const std::string cond_else = "#else"; std::regex reg_op_player = std::regex("^player\\((.*)\\)$"); + std::regex reg_op_state = std::regex("^state\\((.*)\\)$"); struct State { @@ -83,6 +84,23 @@ QString MsgBoxPreview::runPreProcessor() } } } + else if(std::regex_search(cond, m_op_player, reg_op_state)) // check whaever state + { + st.open = true; + std::string players = m_op_player[1].str(); + std::vector nums; + s_splitString(nums, players, ','); + + for(auto &i : nums) + { + if(std::atoi(i.c_str()) == m_macro.state) + { + st.cond_true = true; + st.skip_to_endif = true; + break; + } + } + } else // invalid line { if(!ret.empty()) @@ -151,6 +169,7 @@ void MsgBoxPreview::setFontSize(int size) QFontMetrics meter(m_font); m_letter_w = int(double(meter.maxWidth()) * 1.1); m_letter_h = int(double(meter.height()) * 1.5); + updateGeometry(); update(); } @@ -201,19 +220,22 @@ void MsgBoxPreview::paintEvent(QPaintEvent *e) if(m_shownLines.isEmpty()) return; // Don't draw anything when field is empty - int boxY = 10; + const int boxYtop = 10; + int boxY = boxYtop; int boxX = 10; - int paddingL = m_letter_w / 2; - int paddingR = m_letter_w / 2; - int paddingT = m_letter_h / 4; - int paddingB = m_letter_h / 4; - int boxW = paddingL + (27 * m_letter_w) + paddingR; + const int paddingL = m_letter_w / 2; + const int paddingR = m_letter_w / 2; + const int paddingT = m_letter_h / 4; + const int paddingB = m_letter_h / 4; + const int boxW = paddingL + (27 * m_letter_w) + paddingR; + int boxH = 0; boxX = (rect().width() / 2) - (boxW / 2); p.fillRect(boxX, boxY, boxW, paddingT, Qt::darkBlue); boxY += paddingT; + boxH += paddingT + paddingB - 2; p.setFont(m_font); p.setBrush(Qt::white); @@ -229,9 +251,13 @@ void MsgBoxPreview::paintEvent(QPaintEvent *e) printLine(p, boxX + paddingL, boxY, tempText); boxY += m_letter_h; + boxH += m_letter_h; } p.fillRect(boxX, boxY, boxW, paddingB, Qt::darkBlue); + p.setPen(QPen(Qt::white, 2)); + p.setBrush(Qt::transparent); + p.drawRect(boxX, boxYtop, boxW, boxH); } void MsgBoxPreview::updateLines() @@ -245,6 +271,21 @@ void MsgBoxPreview::updateLines() QString SuperText = m_macroEnable ? runPreProcessor() : m_currentText; + if(doVanilla) + { + // Simulate vanilla behaviour: print all non-ASCII characters as spaces + std::string text = SuperText.toStdString(); + + for(char &c : text) + { + if(c < 0 || c == '\r' || c == '\n' || c == '\t') + c = ' '; + } + + SuperText = QString::fromStdString(text); + } + + do { B = 0; @@ -292,9 +333,12 @@ void MsgBoxPreview::updateLines() B = A; auto lin = SuperText.mid(0, size_t(B)); + if(lin.endsWith('\n')) lin.remove(lin.size()-1, 1); + m_shownLines.append(lin); + SuperText.remove(0, size_t(B)); } while(!SuperText.isEmpty()); } diff --git a/changelog.editor.txt b/changelog.editor.txt index d2da35044..4ad93655e 100644 --- a/changelog.editor.txt +++ b/changelog.editor.txt @@ -49,6 +49,7 @@ beta2 - Added the sound and music preview for the music/sound file select dialogue - Added an ability to open an intro level from the world map directly - World maps saving into the SMBX-38A format now works +- Reworked the message box edit dialogue: Added the accurate preview for different target engines Editor 0.3.2 - Added support for an element (Block, BGO, NPC), section, and level-wide Extra Settings