MCPcopy Create free account
hub / github.com/demoth/jake2 / Menu

Class Menu

client/src/main/java/jake2/client/Menu.java:58–4732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58public final class Menu extends Key {
59
60 private static int m_main_cursor;
61
62 private static final int NUM_CURSOR_FRAMES = 15;
63
64 private static final String menu_in_sound = "misc/menu1.wav";
65
66 private static final String menu_move_sound = "misc/menu2.wav";
67
68 private static final String menu_out_sound = "misc/menu3.wav";
69
70 private static boolean m_entersound; // play after drawing a frame, so caching
71
72 // won't disrupt the sound
73
74 private static Command m_drawfunc;
75
76 private static keyfunc_t m_keyfunc;
77
78 // =============================================================================
79 /* Support Routines */
80
81 private final static int MAX_MENU_DEPTH = 8;
82
83 public static class menulayer_t {
84 Command draw;
85
86 keyfunc_t key;
87 }
88
89 static class menuframework_s {
90 int x, y;
91
92 int cursor;
93
94 int nitems;
95
96 int nslots;
97
98 menucommon_s items[] = new menucommon_s[64];
99
100 String statusbar;
101
102 //void (*cursordraw)( struct _tag_menuframework *m );
103 mcallback cursordraw;
104
105 }
106
107 abstract static class mcallback {
108 abstract public void execute(Object self);
109 }
110
111 static class menucommon_s {
112 int type;
113
114 String name = "";
115

Callers

nothing calls this directly

Calls 4

Main_DrawMethod · 0.95
Keys_MenuDraw_fMethod · 0.95
StartServer_MenuDrawMethod · 0.95

Tested by

no test coverage detected