Skip to content

Commit 40b7cc3

Browse files
committed
Fix RedM builds
1 parent c1351d4 commit 40b7cc3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

TestMenu/ExampleMenu.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ string ChangeCallback(MenuDynamicListItem item, bool left)
181181
submenu.InstructionalButtons.Add(Control.CreatorDelete, "Out!");
182182
submenu.InstructionalButtons.Add(Control.Cover, "This");
183183
submenu.InstructionalButtons.Add(Control.Context, "Check");
184-
#endif
185184

186185
// Create a third menu without a banner.
187186
Menu menu3 = new Menu(null, "Only a subtitle, no banner.");
@@ -196,7 +195,6 @@ string ChangeCallback(MenuDynamicListItem item, bool left)
196195
menu.AddMenuItem(weaponStats);
197196
MenuController.BindMenuItem(menu, menu4, weaponStats);
198197

199-
200198
// Create menu with vehicle stats panel
201199
Menu menu5 = new Menu("Vehicle Stats", "Vehicle Stats Panel") { ShowVehicleStatsPanel = true };
202200
menu5.AddMenuItem(new MenuItem("dummy item", "You should add at least one item when using vehicle stat panels"));
@@ -206,6 +204,7 @@ string ChangeCallback(MenuDynamicListItem item, bool left)
206204
MenuItem vehicleStats = new MenuItem("Vehicle stats", "Demo menu for vehicle stats components");
207205
menu.AddMenuItem(vehicleStats);
208206
MenuController.BindMenuItem(menu, menu5, vehicleStats);
207+
#endif
209208

210209
// you can use AddSubmenu or AddMenu, both will work but if you want to link this menu from another menu,
211210
// you should use AddSubmenu.

0 commit comments

Comments
 (0)