Skip to content

Commit 1a8706c

Browse files
committed
Add guaranteed deletion of links and buttons when executing the quit operator
1 parent 2d6480e commit 1a8706c

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
+ Added: Support for opening .qsz format games.
5353
+ Changed: Inventory item usage options are displayed when the item receives system focus, not just when the mouse is hovering over it.
5454
+ Changed: Inventory item usage options generated from use labels names are displayed with spaces instead of underscores.
55+
+ Changed: When the game over through the quit operator, links and buttons are deleted instead of just stopping response to user actions.
5556
+ Changed: Keypress tracking by key code instead of character code.
5657
+ Changed: Minor adjustment to informative window indentation.
5758
+ Fixed: Links disappear from the text when loading a saved game.

js/Client.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ Client.prototype.render = function (data) {
122122
}
123123
}, wait);
124124
} else if (data.status == PLAYER_STATUS_QUIT) {
125+
GlobalPlayer.clsl();
126+
this.clsb();
125127
var span = $('<span>', {
126128
tabindex: 0,
127129
text: i18next.t('game_over')
@@ -157,7 +159,7 @@ Client.prototype.clst = function() {
157159
* Links cleaning
158160
*/
159161
Client.prototype.clsl = function() {
160-
// No action is required, but the function is reserved for future use
162+
this.drawText();
161163
};
162164

163165
/**

md/ru/other/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
+ Добавлено: Поддержка открытия игр в формате .qsz.
5353
+ Изменено: Варианты использования предмета в инвенторе отображаются, когда предмет принимает системный фокус, а не только когда на него наводится мышь.
5454
+ Изменено: Варианты использования предмета в инвенторе, формируемые из названий меток использования, отображаются с пробелами вместо подчёркиваний.
55+
+ Изменено: При окончании игры через оператор quit ссылки и кнопки удаляются, а не просто перестают реагировать на действия пользователя.
5556
+ Изменено: Отслеживание нажатий клавиш не по коду символа, а по коду клавиши.
5657
+ Изменено: Небольшая правка отступа информативного окна.
5758
+ Исправлено: Ссылки исчезают из текста при загрузке сохранённой игры.

0 commit comments

Comments
 (0)