mirror of
https://gitgud.io/BondageProjects/Bondage-College.git
synced 2025-04-25 17:59:34 +00:00
Translatable Actor Names (#112)
* Translatable Actor Names * Add Natalie to names list
This commit is contained in:
parent
a4f1d3c2cf
commit
f5044a337f
6 changed files with 86 additions and 2 deletions
9
Actor.js
9
Actor.js
|
@ -1,6 +1,7 @@
|
|||
// Actor variables
|
||||
var CurrentActor;
|
||||
var Actor = [];
|
||||
var ActorNamesText = null;
|
||||
var ActorName = 0;
|
||||
var ActorLove = 1;
|
||||
var ActorSubmission = 2;
|
||||
|
@ -22,6 +23,7 @@ function ActorLoad(ActorToLoad, ActorLeaveScreen) {
|
|||
|
||||
// Sets if the actor is the player lover, submissive or Mistress
|
||||
CurrentActor = ActorToLoad;
|
||||
if (ActorToLoad == "") return;
|
||||
Common_ActorIsLover = (CurrentActor == Common_PlayerLover);
|
||||
Common_ActorIsOwner = (CurrentActor == Common_PlayerOwner);
|
||||
Common_ActorIsOwned = (ActorGetValue(ActorOwner) == "Player");
|
||||
|
@ -48,6 +50,13 @@ function ActorSpecificGetValue(SpecificActorName, ValueType) {
|
|||
return Actor[L][ValueType];
|
||||
}
|
||||
|
||||
// Return the current actor's localized name
|
||||
function ActorGetDisplayName() {
|
||||
if (ActorNamesText == null) ReadCSV("ActorNamesText", "C999_Common", "ActorNames", "Text", GetWorkingLanguage());
|
||||
if (ActorGetValue(ActorHideName)) return GetCSVText(ActorNamesText, "Unknown");
|
||||
return GetCSVText(ActorNamesText, CurrentActor);
|
||||
}
|
||||
|
||||
// Change positively or negatively the current actor attitude toward the player
|
||||
function ActorChangeAttitude(LoveAttitude, SubAttitude) {
|
||||
|
||||
|
|
19
C999_Common/ActorNames/Text_CN.csv
Normal file
19
C999_Common/ActorNames/Text_CN.csv
Normal file
|
@ -0,0 +1,19 @@
|
|||
Tag,Content
|
||||
Amanda,Amanda
|
||||
Sarah,Sarah
|
||||
Sidney,Sidney
|
||||
Jennifer,Jennifer
|
||||
Mildred,Mildred
|
||||
Yuki,Yuki
|
||||
Julia,Julia
|
||||
Sophie,Sophie
|
||||
Natalie,Natalie
|
||||
Jenna,Jenna
|
||||
Lauren,Lauren
|
||||
Amelia,Amelia
|
||||
Charlotte,Charlotte
|
||||
Lucy,Lucy
|
||||
Heather,Heather
|
||||
Unknown,Unknown
|
||||
Erica,Erica
|
||||
Cassi,Cassi
|
|
19
C999_Common/ActorNames/Text_DE.csv
Normal file
19
C999_Common/ActorNames/Text_DE.csv
Normal file
|
@ -0,0 +1,19 @@
|
|||
Tag,Content
|
||||
Amanda,Amanda
|
||||
Sarah,Sarah
|
||||
Sidney,Sidney
|
||||
Jennifer,Jennifer
|
||||
Mildred,Mildred
|
||||
Yuki,Yuki
|
||||
Julia,Julia
|
||||
Sophie,Sophie
|
||||
Natalie,Natalie
|
||||
Jenna,Jenna
|
||||
Lauren,Lauren
|
||||
Amelia,Amelia
|
||||
Charlotte,Charlotte
|
||||
Lucy,Lucy
|
||||
Heather,Heather
|
||||
Unknown,Unbekannt
|
||||
Erica,Erica
|
||||
Cassi,Cassi
|
|
19
C999_Common/ActorNames/Text_EN.csv
Normal file
19
C999_Common/ActorNames/Text_EN.csv
Normal file
|
@ -0,0 +1,19 @@
|
|||
Tag,Content
|
||||
Amanda,Amanda
|
||||
Sarah,Sarah
|
||||
Sidney,Sidney
|
||||
Jennifer,Jennifer
|
||||
Mildred,Mildred
|
||||
Yuki,Yuki
|
||||
Julia,Julia
|
||||
Sophie,Sophie
|
||||
Natalie,Natalie
|
||||
Jenna,Jenna
|
||||
Lauren,Lauren
|
||||
Amelia,Amelia
|
||||
Charlotte,Charlotte
|
||||
Lucy,Lucy
|
||||
Heather,Heather
|
||||
Unknown,Unknown
|
||||
Erica,Erica
|
||||
Cassi,Cassi
|
|
19
C999_Common/ActorNames/Text_FR.csv
Normal file
19
C999_Common/ActorNames/Text_FR.csv
Normal file
|
@ -0,0 +1,19 @@
|
|||
Tag,Content
|
||||
Amanda,Amanda
|
||||
Sarah,Sarah
|
||||
Sidney,Sidney
|
||||
Jennifer,Jennifer
|
||||
Mildred,Mildred
|
||||
Yuki,Yuki
|
||||
Julia,Julia
|
||||
Sophie,Sophie
|
||||
Natalie,Natalie
|
||||
Jenna,Jenna
|
||||
Lauren,Lauren
|
||||
Amelia,Amelia
|
||||
Charlotte,Charlotte
|
||||
Lucy,Lucy
|
||||
Heather,Heather
|
||||
Unknown,Unknown
|
||||
Erica,Erica
|
||||
Cassi,Cassi
|
|
|
@ -149,8 +149,7 @@ function DrawPosNegValue(Value, X, Y) {
|
|||
function DrawActorStats(Left, Top) {
|
||||
|
||||
// Draw the actor name and icon
|
||||
if (ActorGetValue(ActorHideName)) DrawText("Unknown", Left - 200, Top + 17, "black");
|
||||
else DrawText(CurrentActor, Left - 200, Top + 17, "black");
|
||||
DrawText(ActorGetDisplayName(), Left - 200, Top + 17, "black");
|
||||
if (CurrentActor == Common_PlayerLover) DrawImage("Icons/Lover.png", Left - 110, Top);
|
||||
else DrawImage("Icons/Heart.png", Left - 110, Top);
|
||||
if (ActorGetValue(ActorOwner) == "Player") DrawImage("Icons/Collared.png", Left - 10, Top);
|
||||
|
|
Loading…
Add table
Reference in a new issue