mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-04-29 08:16:22 +00:00
Initial commit
This commit is contained in:
parent
2211ed7650
commit
ebb3dc9cdd
10121 changed files with 801 additions and 4 deletions
|
|
@ -0,0 +1,59 @@
|
|||
|
||||
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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue