-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<feature> support renpy 6.99, limit max log lines and improve font re…
…place function update version to v2.4.4
- Loading branch information
1 parent
300ff04
commit 1a350af
Showing
39 changed files
with
1,199 additions
and
1,050 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,17 @@ | ||
init python early hide: | ||
old_load_face = renpy.text.font.load_face | ||
if 'tl_font_dic' not in globals(): | ||
global tl_font_dic | ||
tl_font_dic = dict() | ||
global old_load_face | ||
old_load_face = renpy.text.font.load_face | ||
|
||
def my_load_face(fn, *args): | ||
if renpy.game.preferences.language == "{tl_name}": | ||
fn = "{font_path}" | ||
renpy.config.rtl = {is_rtl_enabled} | ||
return old_load_face(fn, *args) | ||
renpy.text.font.load_face = my_load_face | ||
|
||
|
||
translate {tl_name} python: | ||
import os | ||
import sys | ||
font_path = "{font_path}" | ||
gui.text_font = font_path | ||
gui.button_text_font = font_path | ||
gui.interface_text_font = font_path | ||
gui.choice_button_text_font = font_path | ||
gui.name_text_font = font_path | ||
style.default.font = font_path | ||
gui.headline_text_font = font_path | ||
def my_load_face(fn, *args): | ||
renpy.text.font.free_memory() | ||
for key, value in tl_font_dic.items(): | ||
if renpy.game.preferences.language == key: | ||
fn = value[0] | ||
renpy.config.rtl = value[1] | ||
return old_load_face(fn, *args) | ||
renpy.text.font.load_face = my_load_face | ||
global tl_font_dic | ||
tl_font_dic["{tl_name}"] = "{font_path}", {is_rtl_enabled} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.