Esempio n. 1
0
game::game(){
	window.create(sf::VideoMode(windowWidth, windowHight), "The Game");
	window.setKeyRepeatEnabled(0);
	window.setFramerateLimit(maxFramesPerSecond);
	//Setting up walls.
	setUpWalls();
	//set up the Text
	setUpText();

	meny = new gui;
	newGame();
	execute();
}
Esempio n. 2
0
CVarToggleWidget::CVarToggleWidget(char const *cvarPath, int cvarValueMask,
                                   String const &downText, String const &upText)
    : ButtonWidget()
    , d(new Impl)
{
    setFont(MENU_FONT1);
    setColor(MENU_COLOR3);
    setAction(Modified,    CVarToggleWidget_UpdateCVar);
    setAction(FocusGained, Hu_MenuDefaultFocusAction);

    d->cvarPath      = cvarPath;
    d->cvarValueMask = cvarValueMask;
    setDownText(downText);
    setUpText(upText);
}