-
Notifications
You must be signed in to change notification settings - Fork 0
/
Translation.asc
59 lines (56 loc) · 2.02 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
// 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) // room16 - object 1
{
String SlotObj1Room16=GetTranslation("ObjTrs - start background");
int numberSlotObj1Room16;
numberSlotObj1Room16=SlotObj1Room16.AsInt;
object[1].Graphic=numberSlotObj1Room16;
object[1].X=0; object[1].Y=200;
object[1].Visible=true;
}
if (ObjTrs==2) // room26 - object 2
{
String SlotObj2Room26=GetTranslation("ObjTrs - Hamstar Spot description");
int numberSlotObj2Room26;
numberSlotObj2Room26=SlotObj2Room26.AsInt;
object[2].Graphic=numberSlotObj2Room26;
}
if (ObjTrs==3) // room26 - object 3
{
String SlotObj3Room26=GetTranslation("ObjTrs - Hamstar Background");
int numberSlotObj3Room26;
numberSlotObj3Room26=SlotObj3Room26.AsInt;
object[3].Graphic=numberSlotObj3Room26;
object[3].X=0; object[3].Y=200;
object[3].Visible=true;
}
}
}
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 "gNewspaper"
{
String SlotAddGui13=GetTranslation("AddGuiTrs - gui13: newspaper");
int numberSlotAddGui13;
numberSlotAddGui13=SlotAddGui13.AsInt;
btNewspaper.NormalGraphic=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("MMM 41: Das neue Jugendschutzgesetz");
}
}