Changeset 7297 for code/branches/doc/src/modules/overlays/hud
- Timestamp:
- Aug 31, 2010, 8:37:29 PM (14 years ago)
- Location:
- code/branches/doc/src/modules/overlays/hud
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/doc/src/modules/overlays/hud/HUDBar.cc
r6677 r7297 55 55 } 56 56 57 void BarColour::XMLPort(Element& xml Element, XMLPort::Mode mode)58 { 59 SUPER(BarColour, XMLPort, xml Element, mode);60 61 XMLPortParam(BarColour, "colour", setColour, getColour, xml Element, mode);62 XMLPortParam(BarColour, "position", setPosition, getPosition, xml Element, mode);57 void BarColour::XMLPort(Element& xmlelement, XMLPort::Mode mode) 58 { 59 SUPER(BarColour, XMLPort, xmlelement, mode); 60 61 XMLPortParam(BarColour, "colour", setColour, getColour, xmlelement, mode); 62 XMLPortParam(BarColour, "position", setPosition, getPosition, xmlelement, mode); 63 63 } 64 64 … … 104 104 } 105 105 106 void HUDBar::XMLPort(Element& xml Element, XMLPort::Mode mode)107 { 108 SUPER(HUDBar, XMLPort, xml Element, mode);109 110 XMLPortParam(HUDBar, "initialvalue", setValue, getValue, xml Element, mode);111 XMLPortParam(HUDBar, "righttoleft", setRightToLeft, getRightToLeft, xml Element, mode);112 XMLPortParam(HUDBar, "autocolour", setAutoColour, getAutoColour, xml Element, mode);113 XMLPortParam(HUDBar, "bartexture", setBarTexture, getBarTexture, xml Element, mode);114 XMLPortObject(HUDBar, BarColour, "", addColour, getColour, xml Element, mode);106 void HUDBar::XMLPort(Element& xmlelement, XMLPort::Mode mode) 107 { 108 SUPER(HUDBar, XMLPort, xmlelement, mode); 109 110 XMLPortParam(HUDBar, "initialvalue", setValue, getValue, xmlelement, mode); 111 XMLPortParam(HUDBar, "righttoleft", setRightToLeft, getRightToLeft, xmlelement, mode); 112 XMLPortParam(HUDBar, "autocolour", setAutoColour, getAutoColour, xmlelement, mode); 113 XMLPortParam(HUDBar, "bartexture", setBarTexture, getBarTexture, xmlelement, mode); 114 XMLPortObject(HUDBar, BarColour, "", addColour, getColour, xmlelement, mode); 115 115 } 116 116 -
code/branches/doc/src/modules/overlays/hud/HUDBar.h
r5781 r7297 50 50 virtual ~BarColour() { } 51 51 52 virtual void XMLPort(Element& xml Element, XMLPort::Mode mode);52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 53 53 54 54 void setColour(const ColourValue& colour) { this->colour_ = colour; } … … 70 70 virtual ~HUDBar(); 71 71 72 virtual void XMLPort(Element& xml Element, XMLPort::Mode mode);72 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 73 73 74 74 void clearColours(); -
code/branches/doc/src/modules/overlays/hud/HUDHealthBar.h
r6417 r7297 45 45 virtual ~HUDHealthBar(); 46 46 47 virtual void XMLPort(Element& xml Element, XMLPort::Mode mode);47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 48 48 virtual void tick(float dt); 49 49 virtual void changedOwner(); -
code/branches/doc/src/modules/overlays/hud/HUDNavigation.cc
r7163 r7297 90 90 } 91 91 92 void HUDNavigation::XMLPort ( Element& xml Element, XMLPort::Mode mode )93 { 94 SUPER ( HUDNavigation, XMLPort, xml Element, mode );95 96 XMLPortParam ( HUDNavigation, "font", setFont, getFont, xml Element, mode );97 XMLPortParam ( HUDNavigation, "textSize", setTextSize, getTextSize, xml Element, mode );98 XMLPortParam ( HUDNavigation, "navMarkerSize", setNavMarkerSize, getNavMarkerSize, xml Element, mode );92 void HUDNavigation::XMLPort ( Element& xmlelement, XMLPort::Mode mode ) 93 { 94 SUPER ( HUDNavigation, XMLPort, xmlelement, mode ); 95 96 XMLPortParam ( HUDNavigation, "font", setFont, getFont, xmlelement, mode ); 97 XMLPortParam ( HUDNavigation, "textSize", setTextSize, getTextSize, xmlelement, mode ); 98 XMLPortParam ( HUDNavigation, "navMarkerSize", setNavMarkerSize, getNavMarkerSize, xmlelement, mode ); 99 99 } 100 100 -
code/branches/doc/src/modules/overlays/hud/HUDNavigation.h
r7163 r7297 51 51 void setConfigValues(); 52 52 53 virtual void XMLPort ( Element& xml Element, XMLPort::Mode mode );53 virtual void XMLPort ( Element& xmlelement, XMLPort::Mode mode ); 54 54 virtual void tick ( float dt ); 55 55 -
code/branches/doc/src/modules/overlays/hud/HUDRadar.cc
r7184 r7297 82 82 } 83 83 84 void HUDRadar::XMLPort(Element& xml Element, XMLPort::Mode mode)84 void HUDRadar::XMLPort(Element& xmlelement, XMLPort::Mode mode) 85 85 { 86 SUPER(HUDRadar, XMLPort, xml Element, mode);86 SUPER(HUDRadar, XMLPort, xmlelement, mode); 87 87 88 XMLPortParam(HUDRadar, "sensitivity", setRadarSensitivity, getRadarSensitivity, xml Element, mode);89 XMLPortParam(HUDRadar, "halfDotSizeDistance", setHalfDotSizeDistance, getHalfDotSizeDistance, xml Element, mode);90 XMLPortParam(HUDRadar, "maximumDotSize", setMaximumDotSize, getMaximumDotSize, xml Element, mode);88 XMLPortParam(HUDRadar, "sensitivity", setRadarSensitivity, getRadarSensitivity, xmlelement, mode); 89 XMLPortParam(HUDRadar, "halfDotSizeDistance", setHalfDotSizeDistance, getHalfDotSizeDistance, xmlelement, mode); 90 XMLPortParam(HUDRadar, "maximumDotSize", setMaximumDotSize, getMaximumDotSize, xmlelement, mode); 91 91 } 92 92 -
code/branches/doc/src/modules/overlays/hud/HUDRadar.h
r7163 r7297 49 49 virtual ~HUDRadar(); 50 50 51 virtual void XMLPort(Element& xml Element, XMLPort::Mode mode);51 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 52 52 virtual void changedOwner(); 53 53
Note: See TracChangeset
for help on using the changeset viewer.