mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-03-21 17:34:42 -05:00
Fixing multiline centering
This commit is contained in:
parent
c5d252e3b5
commit
0d9b10d12c
|
|
@ -17,7 +17,7 @@
|
|||
#define INSTANT_TEXT_SPEED (false && DEBUG_MODE)
|
||||
#define IGNORE_GAME_PAK (true && DEBUG_MODE)
|
||||
#define IGNORE_GAME_PAK_SPRITES (false && DEBUG_MODE)
|
||||
#define IGNORE_LINK_CABLE (true && DEBUG_MODE)
|
||||
#define IGNORE_LINK_CABLE (false && DEBUG_MODE)
|
||||
#define IGNORE_MG_E4_FLAGS (true && DEBUG_MODE)
|
||||
#define IGNORE_UNRECEIVED_PKMN (false && DEBUG_MODE)
|
||||
#define FORCE_TUTORIAL (false && DEBUG_MODE)
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class Languages(Enum):
|
|||
SpanishEU = 5
|
||||
SpanishLA = 6
|
||||
|
||||
FIRST_TRANSLATION_COL_INDEX = 9
|
||||
FIRST_TRANSLATION_COL_INDEX = 10
|
||||
PURPOSEFUL_SPACE_CHAR = '|'
|
||||
|
||||
BASE_DIR = Path(__file__).resolve().parent
|
||||
|
|
@ -203,7 +203,7 @@ def split_sentence_into_lines(sentence, offset, pixelsPerChar, pixelsInLine, cen
|
|||
lineCount += 1
|
||||
lineLength = 0
|
||||
offset = 0
|
||||
if (centered and (len(words) > 0) and words[0] != 'ɑ'):
|
||||
if (centered and (len(words) > 0) and words[0] not in ['ɑ', 'ȼ', 'Ň', 'Ş']):
|
||||
count = ((pixelsInLine - lineLength) // 2)
|
||||
currLine = f'_[{count}]{currLine}'
|
||||
lineLength += count
|
||||
|
|
@ -562,12 +562,12 @@ def transfer_xlsx_to_dict():
|
|||
offset = lang.value
|
||||
if (pd.isna(currRow.iloc[FIRST_TRANSLATION_COL_INDEX + lang.value])):
|
||||
offset = Languages.English.value
|
||||
mainDict[lang.name][currRow.iloc[0]][currRow.iloc[1]] = {"bytes": currRow.iloc[FIRST_TRANSLATION_COL_INDEX + offset],
|
||||
"numLines": currRow.iloc[2],
|
||||
"pixelsPerChar": currRow.iloc[3],
|
||||
"pixelsInLine" : currRow.iloc[4],
|
||||
"includeBoxBreaks": currRow.iloc[5],
|
||||
"includeScrolling": currRow.iloc[6],
|
||||
mainDict[lang.name][currRow.iloc[1]][currRow.iloc[2]] = {"bytes": currRow.iloc[FIRST_TRANSLATION_COL_INDEX + offset],
|
||||
"numLines": currRow.iloc[3],
|
||||
"pixelsPerChar": currRow.iloc[4],
|
||||
"pixelsInLine" : currRow.iloc[5],
|
||||
"includeBoxBreaks": currRow.iloc[6],
|
||||
"includeScrolling": currRow.iloc[7],
|
||||
}
|
||||
def test_if_release():
|
||||
if (BUILD_TYPE == 'release'):
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user