Changeset bb2fa26 in advance-wars for src/com/medievaltech/advancewars/Game.java
- Timestamp:
- Jan 19, 2015, 10:25:28 PM (10 years ago)
- Branches:
- master
- Parents:
- 4666fae
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/com/medievaltech/advancewars/Game.java
r4666fae rbb2fa26 6 6 import android.os.Bundle; 7 7 import android.util.Log; 8 import android.view.ContextMenu; 8 9 import android.view.Menu; 10 import android.view.MenuInflater; 9 11 import android.view.MenuItem; 12 import android.view.View; 13 import android.view.ContextMenu.ContextMenuInfo; 10 14 import android.view.Window; 11 15 … … 77 81 // turn off the window's title bar 78 82 requestWindowFeature(Window.FEATURE_NO_TITLE); 79 83 80 84 // tell system to use the layout defined in our XML file 81 85 setContentView(R.layout.main); 82 86 87 /*View v = findViewById(R.id.main_view); 88 Log.i("AdvanceWars", "view is null?: " + (v==null));*/ 89 83 90 Static.game = this; 84 91 … … 90 97 Static.gameState = (GameState)savedInstanceState.getSerializable("gameState"); 91 98 } 99 } 100 101 @Override 102 public void onCreateContextMenu(ContextMenu menu, View v, 103 ContextMenuInfo menuInfo) { 104 super.onCreateContextMenu(menu, v, menuInfo); 105 MenuInflater inflater = getMenuInflater(); 106 inflater.inflate(R.menu.map_menu, menu); 92 107 } 93 108
Note:
See TracChangeset
for help on using the changeset viewer.