Changeset 5652 in orxonox.OLD for trunk/src/lib/gui/gl_gui
- Timestamp:
- Nov 20, 2005, 6:32:39 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glmenu/glmenu_imagescreen.cc
r5373 r5652 57 57 void GLMenuImageScreen::loadParams(const TiXmlElement* root) 58 58 { 59 LoadParam <GLMenuImageScreen>(root, "BackgroundImage", this, &GLMenuImageScreen::setBackgroundImage)59 LoadParamNEW(root, "BackgroundImage", this, GLMenuImageScreen, setBackgroundImage) 60 60 .describe("sets the image to load onto the loadscreen"); 61 61 62 LoadParam <GLMenuImageScreen>(root, "BackgroundPS", this, &GLMenuImageScreen::setPosScale)62 LoadParamNEW(root, "BackgroundPS", this, GLMenuImageScreen, setPosScale) 63 63 .describe("The Position and Scale of the Background Image in %(0-1.0). PosX, PosY, SizeX, SizeY"); 64 64 65 LoadParam <GLMenuImageScreen>(root, "BarImage", this, &GLMenuImageScreen::setBarImage)65 LoadParamNEW(root, "BarImage", this, GLMenuImageScreen, setBarImage) 66 66 .describe("sets the image of the LoadingBar"); 67 67 68 LoadParam <GLMenuImageScreen>(root, "BarPS", this, &GLMenuImageScreen::setBarPosScale)68 LoadParamNEW(root, "BarPS", this, GLMenuImageScreen, setBarPosScale) 69 69 .describe("The Position and Scale of the Loading Bar in %(0-1.0). PosX, PosY, SizeX, SizeY"); 70 70 71 LoadParam <GLMenuImageScreen>(root, "ElementCount", this, &GLMenuImageScreen::setMaximum)71 LoadParamNEW(root, "ElementCount", this, GLMenuImageScreen, setMaximum) 72 72 .describe("The Count of elements to load into the bar (this is only a maximum value)"); 73 73 } … … 123 123 void GLMenuImageScreen::setPosScale(float offsetX, float offsetY, float scaleX, float scaleY) 124 124 { 125 printf("IMG: %f %f %f %f\n", offsetX, offsetY,offsetX, offsetY); 125 126 this->setPosition(offsetX, offsetY); 126 127 this->setScale(scaleX, scaleY); … … 144 145 void GLMenuImageScreen::setBarPosScale(float barX, float barY, float barW, float barH) 145 146 { 147 printf("BAR: %f %f %f %f\n", barX, barY, barW, barH); 148 146 149 this->barX = barX; 147 150 this->barY = barY;
Note: See TracChangeset
for help on using the changeset viewer.