MCPcopy Create free account
hub / github.com/catabriga/graphwar / setMode

Method setMode

src/Graphwar/PreGameScreen.java:239–293  ·  view source on GitHub ↗
(int mode)

Source from the content-addressed store, hash-verified

237 }
238
239 public void setMode(int mode)
240 {
241 switch(mode)
242 {
243 case Constants.NORMAL_FUNC:
244 {
245 SwingUtilities.invokeLater(
246 new Runnable()
247 {
248 public void run()
249 {
250 normalFuncButton.setVisible(true);
251 firstFuncButton.setVisible(false);
252 secondFuncButton.setVisible(false);
253 }
254 }
255 );
256
257 //normalFuncButton.repaint();
258 }break;
259
260 case Constants.FST_ODE:
261 {
262 SwingUtilities.invokeLater(
263 new Runnable()
264 {
265 public void run()
266 {
267 normalFuncButton.setVisible(false);
268 firstFuncButton.setVisible(true);
269 secondFuncButton.setVisible(false);
270 }
271 }
272 );
273
274 //firstFuncButton.repaint();
275 }break;
276
277 case Constants.SND_ODE:
278 {
279 SwingUtilities.invokeLater(
280 new Runnable()
281 {
282 public void run()
283 {
284 normalFuncButton.setVisible(false);
285 firstFuncButton.setVisible(false);
286 secondFuncButton.setVisible(true);
287 }
288 }
289 );
290 //secondFuncButton.repaint();
291 }break;
292 }
293 }
294
295 private void showShowMessage(boolean s)
296 {

Callers 1

setModeMessageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected