mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-02-22 08:03:48 +00:00
59 lines
1.4 KiB
C#
59 lines
1.4 KiB
C#
|
|
package LakObjHud {
|
|
function setupObjHud(%gameType)
|
|
{
|
|
switch$ (%gameType)
|
|
{
|
|
case LakRabbitGame:
|
|
// set separators
|
|
objectiveHud.setSeparators("56 156");
|
|
objectiveHud.disableHorzSeparator();
|
|
|
|
// Your score label ("SCORE")
|
|
objectiveHud.scoreLabel = new GuiTextCtrl() {
|
|
profile = "GuiTextObjGreenLeftProfile";
|
|
horizSizing = "right";
|
|
vertSizing = "bottom";
|
|
position = "4 3";
|
|
extent = "50 16";
|
|
visible = "1";
|
|
text = "SCORE";
|
|
};
|
|
// Your score
|
|
objectiveHud.yourScore = new GuiTextCtrl() {
|
|
profile = "GuiTextObjGreenCenterProfile";
|
|
horizSizing = "right";
|
|
vertSizing = "bottom";
|
|
position = "60 3";
|
|
extent = "90 16";
|
|
visible = "1";
|
|
};
|
|
// Rabbit label ("RABBIT")
|
|
objectiveHud.rabbitLabel = new GuiTextCtrl() {
|
|
profile = "GuiTextObjGreenLeftProfile";
|
|
horizSizing = "right";
|
|
vertSizing = "bottom";
|
|
position = "4 19";
|
|
extent = "50 16";
|
|
visible = "1";
|
|
text = "RABBIT";
|
|
};
|
|
// rabbit name
|
|
objectiveHud.rabbitName = new GuiTextCtrl() {
|
|
profile = "GuiTextObjGreenCenterProfile";
|
|
horizSizing = "right";
|
|
vertSizing = "bottom";
|
|
position = "60 19";
|
|
extent = "90 16";
|
|
visible = "1";
|
|
};
|
|
|
|
objectiveHud.add(objectiveHud.scoreLabel);
|
|
objectiveHud.add(objectiveHud.yourScore);
|
|
objectiveHud.add(objectiveHud.rabbitLabel);
|
|
objectiveHud.add(objectiveHud.rabbitName);
|
|
}
|
|
parent::setupObjHud(%gameType);
|
|
}
|
|
};
|
|
activatePackage(LakObjHud);
|