public static void InitializeMenu() { Logger.Log("Initializing menu"); Logger.Log("Initializing GUI"); gui = new GUI(l = new GUIList { PlayerModels = c.CharacterModelsList(), PlayerModelNames = c.CharacterModelNamesList(), VehicleModels = c.CarModelsList(), VehicleModelNames = c.CarModelsNameList(), WeaponModels = c.WeaponModelsList(), WeaponNames = c.WeaponModelNamesList(), WeatherType = c.WeatherTypesList(), WeatherName = c.WeatherNamesList(), TimeInt = c.TimesList(), Time = c.TimeNamesList() }); Logger.Log("Creating GUI"); gui.Create(); Logger.Log("Running GUI"); gui.Run(); new GameFiber(IsCheckboxChecked, "LSPDE Thread").Start(); Logger.Log("Loaded GUIHandler"); OpenCloseMenu(); }
public GUI(GUIList l) { this.l = l; }