Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5325


Ignore:
Timestamp:
Dec 10, 2008, 3:38:53 AM (15 years ago)
Author:
landauf
Message:

added healthbar

Location:
data/media
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • data/media/levels/hudtemplates3.oxw

    r5286 r5325  
    55   font     = "VeraMono"
    66   caption  = ""
    7    textSize = 0.025
     7   textsize = 0.025
    88  />
    99</OverlayGroup>
     
    1616     font     = "VeraMono"
    1717     caption  = "Press [Fire] to start the match"
    18      textSize = 0.05
     18     textsize = 0.05
    1919     colour   = "1.0, 1.0, 0.0, 0.8"
    2020     align    = "center"
     
    2525<Template name="spaceshiphud">
    2626  <OverlayGroup name = "HUD" scale = "1, 1">
     27    <HUDHealthBar
     28     name              = "HealthBar1"
     29     background        = "Orxonox/HealthBarBackground"
     30     size              = "0.35, 0.0875"
     31     position          = "0.0 , 0.95 "
     32     pickpoint         = "0, 1"
     33     bartexture        = "healthbar_bar.tga"
     34     textfont          = "VeraMono"
     35     textusebarcolour  = true
     36     textsize          = 0.039
     37     textoffset        = "0.315, 0.05"
     38     textpickpoint     = "0, 0"
     39     textalign         = "right"
     40     correctaspect     = false
     41     textcorrectaspect = false
     42    >
     43      <BarColour position = 0.0 colour = "0.7,0.2,0.2" />
     44      <BarColour position = 0.5 colour = "0.7,0.7,0.2" />
     45      <BarColour position = 1.0 colour = "0.2,0.7,0.2" />
     46    </HUDHealthBar>
     47
    2748    <HUDSpeedBar
    28      name       = "SpeedBar1"
    29      background = "Orxonox/BarBackground"
    30      size       = "0.35, 0.05"
    31      position   = "0.0 , 1.0 "
    32      pickPoint  = "0, 1"
    33      value      = 0
     49     name          = "SpeedBar1"
     50     background    = "Orxonox/BarBackground"
     51     size          = "0.35, 0.05"
     52     position      = "0.0 , 1.0 "
     53     pickpoint     = "0, 1"
     54     correctaspect = false
    3455    >
    35       <BarColour position = 0.7 colour = "0.2,0.7,0.2" />
    36       <BarColour position = 0.4 colour = "0.7,0.5,0.2" />
    37       <BarColour position = 0.1 colour = "0.7,0.2,0.2" />
     56      <BarColour position = 0.0 colour = "0.7,0.5,0.2" />
     57      <BarColour position = 0.5 colour = "0.2,0.7,0.2" />
     58      <BarColour position = 1.0 colour = "0.7,0.2,0.2" />
    3859    </HUDSpeedBar>
    3960
    4061    <HUDNavigation
    4162     name          = "Navigation"
    42      correctAspect = true
     63     correctaspect = true
    4364     font          = "Monofur"
    44      textSize      = 0.05
     65     textsize      = 0.05
    4566     navMarkerSize = 0.03
    4667     aimMarkerSize = 0.04
     
    5071     name          = "Radar"
    5172     background    = "Orxonox/Radar"
    52      correctAspect = true
     73     correctaspect = true
    5374     size          = "0.17, 0.17"
    5475     position      = "1.0, 1.0"
    55      pickPoint     = "1.0, 1.0"
     76     pickpoint     = "1.0, 1.0"
    5677     rotation      = 0
    5778     sensitivity   = 1.0
  • data/media/levels/sample3.oxw

    r5323 r5325  
    1818    <SpawnPoint position="0,   0, -700" yaw  =180 spawnclass=SpaceShip pawndesign=spaceshipassff />
    1919    <SpawnPoint position="0, 300, -300" pitch=-90 spawnclass=SpaceShip pawndesign=spaceshipassff />
    20 
     20<!--
    2121    <GlobalShader compositor="Old TV" visible=false>
    2222      <events>
     
    2626      </events>
    2727    </GlobalShader>
    28 
     28-->
    2929    <Bot/>
    3030    <Bot/>
  • data/media/materials/scripts/Orxonox.material

    r5313 r5325  
    107107}
    108108
     109material Orxonox/HealthBarBackground
     110{
     111        technique
     112        {
     113                pass
     114                {
     115                        lighting off
     116                        scene_blend alpha_blend
     117                        depth_check off
     118
     119                        texture_unit
     120                        {
     121                                texture healthbar_bg.tga
     122                        }
     123                }
     124        }
     125}
    109126material Orxonox/Radar
    110127{
  • data/media/overlay/debug.oxo

    r5260 r5325  
    44 scale   = "1.0, 1.0"
    55 scroll  = "0, 0"
    6  visible = true>
     6 visible = false
     7>
    78
    89  <OverlayText
     
    1112   font     = "Monofur"
    1213   caption  = "Frames per second:"
     14   textsize = 0.03
    1315   textSize = 0.03
    1416  />
     
    1820   position = "0.3, 0.05"
    1921   font     = "Monofur"
     22   textsize = 0.03
    2023   textSize = 0.03
    2124  />
     
    2629   font     = "Monofur"
    2730   caption  = "Tick time in ms: "
     31   textsize = 0.03
    2832   textSize = 0.03
    2933  />
     
    3337   position = "0.3, 0.09"
    3438   font     = "Monofur"
     39   textsize = 0.03
    3540   textSize = 0.03
    3641  />
Note: See TracChangeset for help on using the changeset viewer.