-
Notifications
You must be signed in to change notification settings - Fork 1
/
Translation.asc
99 lines (94 loc) · 3.7 KB
/
Translation.asc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// new module script
function SetRoomObjTranslated(int ObjTrs)
{
String comment="COMMENT *** Room Objects Translation: insert the appropriate sprite slot number under each line called 'ObjTrs'";
if (IsTranslationAvailable())
{
if (ObjTrs==1) // room1 - object 1
{
String SlotObj1Room1=GetTranslation("ObjTrs - start background");
int numberSlotObj1Room1;
numberSlotObj1Room1=SlotObj1Room1.AsInt;
object[1].Graphic=numberSlotObj1Room1;
object[1].X=0; object[1].Y=200;
object[1].Visible=true;
}
if (ObjTrs==2) // room18 - object 0
{
String SlotObj0Room18=GetTranslation("ObjTrs - basement door note");
int numberSlotObj0Room18;
numberSlotObj0Room18=SlotObj0Room18.AsInt;
object[0].Graphic=numberSlotObj0Room18;
object[0].Visible=true;
}
if (ObjTrs==3) // room19 - object 6
{
String SlotObj6Room19=GetTranslation("ObjTrs - Bernard's certificate");
int numberSlotObj6Room19;
numberSlotObj6Room19=SlotObj6Room19.AsInt;
object[6].Graphic=numberSlotObj6Room19;
object[6].Visible=true;
}
/*
// info for author:to active the following code (objtrs==4 ... objtrs=8), the Use_Function on hWohnzimmer(room29) must restored with player.changeroom(16) function
if (ObjTrs==4) // room16 - object 0
{
String SlotObj0Room16=GetTranslation("ObjTrs - computer working area");
int numberSlotObj0Room16;
numberSlotObj0Room16=SlotObj0Room16.AsInt;
object[0].Graphic=numberSlotObj0Room16;
}
if (ObjTrs==5) // room16 - object 1
{
String SlotObj1Room16=GetTranslation("ObjTrs - computer recycle bin");
int numberSlotObj1Room16;
numberSlotObj1Room16=SlotObj1Room16.AsInt;
object[1].Graphic=numberSlotObj1Room16;
}
if (ObjTrs==6) // room16 - object 2
{
String SlotObj2Room16=GetTranslation("ObjTrs - computer word processor");
int numberSlotObj2Room16;
numberSlotObj2Room16=SlotObj2Room16.AsInt;
object[2].Graphic=numberSlotObj2Room16;
}
if (ObjTrs==7) // room16 - object 3 - Part1
{
String SlotObj3Room16=GetTranslation("ObjTrs - computer word processor: character description Part1");
int numberSlotObj3Room16;
numberSlotObj3Room16=SlotObj3Room16.AsInt;
object[3].Graphic=numberSlotObj3Room16;
}
if (ObjTrs==8) // room16 - object 3 - Part2
{
String SlotObj3Room16=GetTranslation("ObjTrs - computer word processor: character description Part2");
int numberSlotObj3Room16;
numberSlotObj3Room16=SlotObj3Room16.AsInt;
object[3].Graphic=numberSlotObj3Room16;
}
*/
}
}
function SetAdditionalGuiTranslated(int AddGuiTrs)
{
String comment="COMMENT *** Additional GUI Translation: insert the appropriate sprite slot number under each line called 'AddGuiTrs'";
if (IsTranslationAvailable())
{
if (AddGuiTrs==1) // gui13 "gKeypad"
{
String SlotAddGui13=GetTranslation("AddGuiTrs - gui13: door keypad");
int numberSlotAddGui13;
numberSlotAddGui13=SlotAddGui13.AsInt;
gui[13].BackgroundGraphic=numberSlotAddGui13;
}
}
}
function SetGameNameTranslated(int GameNameTrs)
{
String comment="COMMENT *** Game Name Translation: translate the name of game and it will be translated in the title bar";
if (IsTranslationAvailable())
{
if (GameNameTrs==1)
Game.Name=GetTranslation("Maniac Mansion Mania Episode 38: Rescue Mission");
}
}