void BiomesMainScreen::buttonClicked(Button *button) {
	if(button->_buttonId == _backMainButton->_buttonId) {
		closeScreen();
	}else if(button->_buttonId == _modInfoButton->_buttonId) {
		_minecraftClient->setScreen(new ModInfoScreen());
	}else if(button->_buttonId == _biomesInfoButton->_buttonId) {
		closeScreen();
	}
}
bool BiomesMainScreen::handleBackEvent(bool b1) {
	if(!b1) {
		closeScreen();
	}

	return true;
}
Ejemplo n.º 3
0
// 버튼 클릭시 처리부분.
void ExampleScreen::buttonClicked(Button *button) {
	// 클릭한 버튼이 추가한 버튼의 아이디와 같다면
	if(button->_buttonId == _exampleButton->_buttonId) {
		// 화면을 닫습니다.
		closeScreen();
	}
}
Ejemplo n.º 4
0
// 뒤로가기 버튼을 눌렀을때 부분
bool ExampleScreen::handleBackEvent(bool b1) {
	if(!b1) {
		// 화면을 닫습니다.
		closeScreen();
	}

	return true;
}
Ejemplo n.º 5
0
int main(){
	initScreen();
	lcdTest();
	while(1){
		fillBoard();
		printBoard();
		for (int i = 0; i < 1000; i++){
			playerStep();
			printBoard();
		}
	}
	closeScreen();

}
Ejemplo n.º 6
0
int main(){
	initScreen();
	initSound();
	initLedButtons();
	lcdTest();
	while(1){
		fillBoard();
		printBoard();
		
		for (int i = 0; i < 100; i++){
			setLeds((char)i);
			setFrequency(120*(i%20));
			playerStep();
			printBoard();
			playSounds();
			if (readButtons() & 0x01 > 0) break;
		}
	}
	closeLedButtons();
	closeScreen();
	closeSound();

}