View Single Post
Old 02-04-2005, 04:39 AM   #1 (permalink)
vegeta486
Junior Member
 
Join Date: Jan 2005
Posts: 4
Default Vertical PowerBar

Hello, i redesigning the controlbar but have a little problem with powerbar.
My power bar only show 3 power states: Good energy with a green bar, critical energy with a yellou bar and low energy with a red bar, the problem is if you have 80 unused energy points it appears the same green bar if you have only unused 20 points, my code is:

Code:
ControlBar.wnd:PowerWindow:
SCREENRECT = UPPERLEFT: 640 179,
                        BOTTOMRIGHT: 651 426,
                        CREATIONRESOLUTION: 800 600;
Code:
ControlBarScheme.ini
  PowerBarUL X:642 Y:243
  PowerBarLR X:653 Y:426
Code:
SAControlBar512.INI
  MappedImage SAPowerPointY
  Texture = yelloubar.tga
  TextureWidth = 11
  TextureHeight = 151
  Coords = Left:0 Top:0 Right:11 Bottom:151
  Status = NONE
  End

  MappedImage SAPowerPointR
  Texture = redbar.tga
  TextureWidth = 11
  TextureHeight = 175
  Coords = Left:0 Top:0 Right:11 Bottom:175
  Status = NONE
  End

 MappedImage SAPowerPointG
  Texture = greenbar.tga
  TextureWidth = 10
  TextureHeight = 87
  Coords = Left:0 Top:0 Right:10 Bottom:87
  Status = NONE
 End

 MappedImage SAPowerBarY
  Texture = yelloubar.tga
  TextureWidth = 11
  TextureHeight = 151
  Coords = Left:0 Top:0 Right:11 Bottom:151
  Status = NONE
  End

  MappedImage SAPowerBarG
  Texture = greenbar.tga
  TextureWidth = 10
  TextureHeight = 87
  Coords = Left:0 Top:0 Right:10 Bottom:87
  Status = NONE
  End

  MappedImage SAPowerBarR
  Texture = redbar.tga
  TextureWidth = 11
  TextureHeight = 175
  Coords = Left:0 Top:0 Right:11 Bottom:175
  Status = NONE
  End
Code:
SCGameUserInterface512.INI
  MappedImage PowerBarYellow
  Texture = yelloubar.tga
  TextureWidth = 11
  TextureHeight = 151
  Coords = Left:0 Top:0 Right:11 Bottom:151
  Status = NONE
  End

  MappedImage PowerBarGreen
  Texture = greenbar.tga
  TextureWidth = 10
  TextureHeight = 87
  Coords = Left:0 Top:0 Right:10 Bottom:87
  Status = NONE
  End

  MappedImage PowerBarRed
  Texture = redbar.tga
  TextureWidth = 11
  TextureHeight = 175
  Coords = Left:0 Top:0 Right:11 Bottom:175
  Status = NONE
  End
Code:
SCSmShellUserInterface512.INI
   MappedImage PowerPointR
   Texture = redbar.tga
  TextureWidth = 11
  TextureHeight = 175
  Coords = Left:0 Top:0 Right:11 Bottom:175
  Status = NONE
  End

  MappedImage PowerPointG
  Texture = greenbar.tga
  TextureWidth = 10
  TextureHeight = 87
  Coords = Left:0 Top:0 Right:10 Bottom:87
  Status = NONE
  End

  MappedImage PowerPointY
    Texture = yellou.tga
    TextureWidth = 11
    TextureHeight = 151
    Coords = Left:0 Top:0 Right:11 Bottom:151
    Status = NONE
    End
vegeta486 is offline   Reply With Quote