#include <unittype.h>
|
| bool | IsVertical |
| |
| bool | SEToNW |
| | if true, vertical bar, else horizontal. More...
|
| |
| int | Height |
| | (SouthEastToNorthWest), if false value 0 is on the left or up of the bar. More...
|
| |
| int | Width |
| | Height of the bar. More...
|
| |
| bool | ShowFullBackground |
| | Width of the bar. More...
|
| |
| char | BorderSize |
| | if true, show background like value equal to max. More...
|
| |
| IntColor | Color |
| | Size of the border, 0 for no border. More...
|
| |
| IntColor | BColor |
| | Color of bar. More...
|
| |
| unsigned int | Index |
| |
| int | OffsetX |
| | Index of the variable. More...
|
| |
| int | OffsetY |
| | Offset in X coord. More...
|
| |
| int | OffsetXPercent |
| | Offset in Y coord. More...
|
| |
| int | OffsetYPercent |
| | Percent offset (TileWidth) in X coord. More...
|
| |
| bool | IsCenteredInX |
| | Percent offset (TileHeight) in Y coord. More...
|
| |
| bool | IsCenteredInY |
| | if true, use center of deco instead of left border More...
|
| |
| bool | ShowIfNotEnable |
| | if true, use center of deco instead of upper border More...
|
| |
| bool | ShowWhenNull |
| | if false, Show only if var is enable More...
|
| |
| bool | HideHalf |
| | if false, don't show if var is null (F.E poison) More...
|
| |
| bool | ShowWhenMax |
| | if true, don't show when 0 < var < max. More...
|
| |
| bool | ShowOnlySelected |
| | if false, don't show if var is to max. (Like mana) More...
|
| |
| bool | HideNeutral |
| | if true, show only for selected units. More...
|
| |
| bool | HideAllied |
| | if true, don't show for neutral unit. More...
|
| |
| bool | ShowOpponent |
| | if true, don't show for allied unit. (but show own units) More...
|
| |
| void CDecoVarBar::Draw |
( |
int |
x, |
|
|
int |
y, |
|
|
const CUnitType & |
type, |
|
|
const CVariable & |
var |
|
) |
| const |
|
virtual |
function to draw the decorations.
Draw bar for variables.
- Parameters
-
| x | X screen pixel position |
| y | Y screen pixel position |
| unit | Unit pointer |
- Todo:
- fix color configuration.
Implements CDecoVar.
| char CDecoVarBar::BorderSize |
if true, show background like value equal to max.
Size of the border, 0 for no border.
(SouthEastToNorthWest), if false value 0 is on the left or up of the bar.
| bool CDecoVarBar::IsVertical |
if true, vertical bar, else horizontal.
| bool CDecoVarBar::ShowFullBackground |
The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The