Back to project page Gloomy-Dungeons-3D.
The source code is released under:
MIT License
If you think the Android project Gloomy-Dungeons-3D listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package zame.game.views; //from w w w . j a va2s. co m import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.Button; import zame.game.Common; import zame.game.GameActivity; import zame.game.R; import zame.game.SoundManager; public class GameOverView extends zame.libs.FrameLayout implements IZameView { private GameActivity activity; public GameOverView(Context context, AttributeSet attrs) { super(context, attrs); activity = (GameActivity)context; } @Override protected void onFinishInflate() { super.onFinishInflate(); Common.setTypeface(this, new int[] { R.id.TxtGameOver, R.id.BtnLoadAutosave, }); ((Button)findViewById(R.id.BtnLoadAutosave)).setOnClickListener(new View.OnClickListener() { public void onClick(View v) { SoundManager.playSound(SoundManager.SOUND_BTN_PRESS); SoundManager.setPlaylist(SoundManager.LIST_MAIN); GameActivity.changeView(R.layout.game, GameActivity.ACTION_LOAD_AUTOSAVE); } }); } public void onResume() { } public void onPause() { } }