Skip to content

Commit

Permalink
Версия 2.4.9.
Browse files Browse the repository at this point in the history
Добавлена возможность переопределить размер выводимого текста.
  • Loading branch information
Vladya committed Dec 22, 2020
1 parent 469bf80 commit 5cb0ffe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 deletions game/Translator3000Data/scripts/general.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ init -7 python in _translator3000:
"requestsFrequency": None,
"extraTextOptions": {
"font": None,
"size": None,
"italic": False,
"bold": False
}
Expand Down Expand Up @@ -105,7 +106,6 @@ init -7 python in _translator3000:
Возвращает булевое значение - был ли обновлён словарь.
"""

_list = __builtin__.list
_dict = __builtin__.dict

updated = False
Expand Down Expand Up @@ -149,12 +149,13 @@ init -7 python in _translator3000:

result = self.quote(result)

if self._setting["extraTextOptions"]["font"] is not None:
result = self._add_text_tag(
result,
"font",
self._setting["extraTextOptions"]["font"]
)
for _tag in ("font", "size"):
if self._setting["extraTextOptions"][_tag] is not None:
result = self._add_text_tag(
result,
_tag,
self._setting["extraTextOptions"][_tag]
)
if self._setting["extraTextOptions"]["bold"]:
result = self._add_text_tag(result, 'b')
if self._setting["extraTextOptions"]["italic"]:
Expand Down
2 changes: 1 addition & 1 deletion game/Translator3000Data/scripts/imports.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ init -10 python in _translator3000:
utils
)

VERSION = (2, 4, 8)
VERSION = (2, 4, 9)

DEBUG = False
parent_logger.setLevel((logging.DEBUG if DEBUG else logging.CRITICAL))
Expand Down
2 changes: 1 addition & 1 deletion game/options.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ define gui.show_name = True

## Версия игры.

define config.version = "2.4.8"
define config.version = "2.4.9"


## Текст, помещённый в экран "Об игре". Поместите текст между тройными скобками.
Expand Down

0 comments on commit 5cb0ffe

Please sign in to comment.