Example #1
0
 private void InitGUI()
 {
     Locale.GlobalLocale = new Locale(Path.Combine(Paths.ReadOnlyDataFolder, "locales", "English.locale.xml"));
     m_gui_host          = new GUIHost(Locale.GlobalLocale, 11f, Paths.PublicDataFolder, glControl1);
     m_gui_host.OnResize(glControl1.Width, glControl1.Height);
     Sprite.texture_height_pixels = 1024;
     Sprite.texture_width_pixels  = 1024;
     Sprite.pixel_perfect         = true;
     messagebox = new PopupMessageBox(0);
     messagebox.Init(m_gui_host);
     informationbox = new MessagePopUp(0, settingsManager);
     informationbox.Init(m_gui_host);
 }