feat: Ren'Py screens (screen/call screen/show screen) with actions and styles
Converter - screens.py parses the screen language: containers (fixed, frame, vbox, hbox, grid, vpgrid, viewport, button, has), widgets (text, textbutton, imagebutton, add, bar ...), if/for/use/transclude, default, python, key, timer, on, inline ATL, conditional properties, and decompiled forms (unparenthesised operators, glued property values, comma separated actions) - style statements, call/show/hide screen operators and Python-level renpy.show_screen are translated; only screens the game shows are audited, unused stock screens no longer block an import; undefined screens do - ATL values may be computed at run time and transforms take parameters (at blink(0.2, 0.3)); blur property Player - screens.ts builds the DOM from the IR and rebuilds it on state changes; buttons with idle/hover/selected/insensitive states, tooltips, sounds, modal screens, timers and keys that survive re-rendering, saved with the save file - Actions: Jump, Call, Return, SetVariable, Toggle*, SetScreenVariable, Show, Hide, ToggleScreen, Function, Play, Notify, If, Language, ShowMenu, OpenURL ... - Crop/LiveCrop/Solid/Frame/Transform/DynamicDisplayable values, crop property, globals(), renpy.variant/change_language/seen_image, transition stubs Tests: screen parser and runtime (linkedom DOM), screens fixture compiled from tests/fixtures/screens.rpy. Docs: docs/SCREENS.md. Twisted-Thoughts now passes the strict compatibility check. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
47fc121e7d
commit
62ece25902
24 files changed
+2997
-60
No files matched your search
@@ -125,10 +125,12 @@ Python игры выполняется в песочнице плеера: св
|
||||
(`linear`/`ease`/`easein`/`easeout`), `pause`, `repeat`, `parallel`, `choice`,
|
||||
`block`, `on show`/`on hide`, вызов других transform.
|
||||
|
||||
Пока **не** поддерживается: `screen`-язык (кастомные экраны, карты,
|
||||
мини-игры), в ATL — `function`, `time`, `contains`, `matrixcolor` и шейдеры,
|
||||
Экраны игры (`screen`, `call screen`, `show screen`) и их действия — см.
|
||||
[docs/SCREENS.md](docs/SCREENS.md).
|
||||
|
||||
Пока **не** поддерживается: в экранах — `input`, `imagemap`, `mousearea`, `drag`, `side`, в ATL —
|
||||
`function`, `time`, `contains`, `matrixcolor` и шейдеры,
|
||||
в Python — специальные методы кроме `__init__`/`__str__`/`__repr__`, генераторы,
|
||||
`with`, системные модули (`os`, `socket`, …) и картинки, которые игра вычисляет
|
||||
своими функциями. Такие места перечислены в отчёте конвертации у версии и
|
||||
останавливают импорт. Игры-«песочницы», где навигация построена на экранах,
|
||||
пока не играбельны.
|
||||
останавливают импорт. Игры-«песочницы» на `renpy.ui.*` и `im.*` пока не играбельны.
|
||||
Reference in new issue
Block a user