Skip to content

Commit

Permalink
적용 작업 진행
Browse files Browse the repository at this point in the history
- 번역 위젯 js화 trPill.twee 까지
  • Loading branch information
uotalkie committed Apr 6, 2024
1 parent b9e19cf commit 8459a78
Show file tree
Hide file tree
Showing 38 changed files with 2,535 additions and 69 deletions.
8 changes: 4 additions & 4 deletions game/03-JavaScript/eyes-related.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ function buildEyeDetails() {
if (lenses.right !== 0 || lenses.left !== 0) {
sentence += "당신은 "; sentence_end = "에 착용하고 있다";
if (typeof lenses.left === "string") {
sentence += trColourJS(setup.colours.eyes_map[lenses.left].name, "과", "sep");
sentence += trColour(setup.colours.eyes_map[lenses.left].name, "과", "sep");
concatFlag = true;
}
if (typeof lenses.right === "string" && lenses.left !== lenses.right) {
if (concatFlag) sentence += T.trPost + " ";
sentence += trColourJS(setup.colours.eyes_map[lenses.right].name);
sentence += trColour(setup.colours.eyes_map[lenses.right].name);
concatFlag = true;
}
if (concatFlag) {
Expand All @@ -27,12 +27,12 @@ function buildEyeDetails() {
const leftEyeColour = colourMap[V.leftEyeColour];
const rightEyeColour = colourMap[V.rightEyeColour];
if (typeof leftEyeColour === "object") {
sentence += trColourJS(leftEyeColour.name, "과", "sep");
sentence += trColour(leftEyeColour.name, "과", "sep");
concatFlag = true;
}
if (typeof rightEyeColour === "object" && V.leftEyeColour !== V.rightEyeColour) {
if (concatFlag) sentence += T.trPost + " ";
sentence += trColourJS(rightEyeColour.name);
sentence += trColour(rightEyeColour.name);
concatFlag = true;
}
if (concatFlag) sentence += " 눈";
Expand Down
2 changes: 1 addition & 1 deletion game/03-JavaScript/sexShopMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ function sexShopOnItemClick(index) {
`
<div colour-name="${item.colour_options[index]}" onclick="window.sexShopOnColourClick(\`${item.colour_options[index]}\`)" class="colour-button div-link">
<div class="bg-${item.colour_options[index]}">
<span class="capitalize colour-name-span">${trColourJS(item.colour_options[index])}</span>
<span class="capitalize colour-name-span">${trColour(item.colour_options[index])}</span>
<a tabindex="0"></a>
</div>
</div>`;
Expand Down
5 changes: 3 additions & 2 deletions game/base-debug/custom-testroom.twee
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ navigator.userAgent=<<print navigator.userAgent>><br><br>
<br>
<<set _test to "소녀를">><<set _test to trChangePost(_test, "과")+" "+"소년을">><<trChangePost _test "으로">><<print _test>> <<print _trResult>><br>
<br>
<<generate1>><<person1>>
<<script>>
T.test = trBodysize("large", "을");
T.test = trPill("anti-parasite cream", "을");
<</script>>script = <<print _test>>, trResult = <<print _trResult>>, trPost = <<print _trPost>><br>
<<trBodysize "large" "을">>widget = _trResult <br>
<<trPill "anti-parasite cream" "을">>widget = _trResult <br><<endevent>>
<br>
[[Robin Trick Hall]]<br>
<<generatem1>><<person1>><<trNPCdesc $NPCList[0].fullDescription "이">>_trResult<br>
Expand Down
2 changes: 1 addition & 1 deletion game/base-system/overlays/feats-ui.twee
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@
<<set _toyColours to {}>>
<<set _selectedToy to Object.values(setup.sextoys).find(toy => toy.index === V.featsBoosts.sexToys[T.toyNumber].index)>>
<<if _selectedToy and _selectedToy.colour_options and _selectedToy.colour_options.length>>
<<run _selectedToy.colour_options.forEach(colour => _toyColours[trColourJS(colour)] = colour)>>
<<run _selectedToy.colour_options.forEach(colour => _toyColours[trColour(colour)] = colour)>>
<</if>>
<<else>>
<<set _toyColours to {}>>
Expand Down
10 changes: 5 additions & 5 deletions game/base-system/translate/init/trinit.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ function trinit_namedNPC()
if (Array.isArray(entry.title))
{
let length = entry.title.length;
for (j = 0; j < length; j++)
for (let j = 0; j < length; j++)
{
temp.koname = entry.kotitle[j];
temp.post = entry.titlepost[j];
Expand Down Expand Up @@ -1258,11 +1258,11 @@ function trinit_roleList()
}
window.trinit_roleList = trinit_roleList;

function trinit_toySelectionList()
function trinit_childToySelectionList()
{
if (!setup.trToySelectionList)
if (!setup.trChildToySelectionList)
{
setup.trToySelectionList = {
setup.trChildToySelectionList = {
/* baby rattles */
"babyrattle" : {ko : "아기 딸랑이", post : 1},
"baby rattle" : {ko : "아기 딸랑이", post : 1},
Expand Down Expand Up @@ -1333,7 +1333,7 @@ function trinit_toySelectionList()

}
}
window.trinit_toySelectionList = trinit_toySelectionList;
window.trinit_childToySelectionList = trinit_childToySelectionList;

function trinit_hairtype()
{
Expand Down
6 changes: 3 additions & 3 deletions game/base-system/translate/init/trinit.twee
Original file line number Diff line number Diff line change
Expand Up @@ -1231,9 +1231,9 @@
<</if>>
<</widget>>

<<widget "trinit_toySelectionList">>
<<if setup.trToySelectionList is undefined>>
<<set setup.trToySelectionList to {
<<widget "trinit_childToySelectionList">>
<<if setup.trChildToySelectionList is undefined>>
<<set setup.trChildToySelectionList to {
/* baby rattles */
"babyrattle" : {ko : "아기 딸랑이", post : 1},
"baby rattle" : {ko : "아기 딸랑이", post : 1},
Expand Down
Loading

0 comments on commit 8459a78

Please sign in to comment.