public About() { this.InitializeComponent(); View = new ViewModel.ViewModel(); if (!APPDATA.app_data.Views.Contains(View)) { APPDATA.app_data.Views.Add(View); } }
public SelectChapter() { this.InitializeComponent(); View = new ViewModel.ViewModel(); if (!APPDATA.app_data.Views.Contains(View)) { APPDATA.app_data.Views.Add(View); } init(); }
public Freestyle() { this.InitializeComponent(); View = new ViewModel.ViewModel(); if (!APPDATA.app_data.Views.Contains(View)) { APPDATA.app_data.Views.Add(View); } userTools = UserToolsManager.GetInstance().GetTools(); controller = new Controllers.Geometry.Controllers(1); }
public Game() { this.InitializeComponent(); View = new ViewModel.ViewModel(); if (!APPDATA.app_data.Views.Contains(View)) { APPDATA.app_data.Views.Add(View); } userTools = UserToolsManager.GetInstance().GetTools(); init(); }
public Achievement() { this.InitializeComponent(); changefont(); View = new ViewModel.ViewModel(); if (!APPDATA.app_data.Views.Contains(View)) { APPDATA.app_data.Views.Add(View); } ach = Achievements.GetAch(10); APPDATA.app_data.ACHIEVEMENTS = ach; }
public async void init() { MainFrame = this.myFrame; debugTxt = this.debugT; BgaP = bgaPlayer; BgmP = bgmPlayer; mytitle.Visibility = Visibility.Collapsed; startFrame.Navigate(typeof(SplashScreen)); init_gamesetting(); View = new ViewModel.ViewModel(); if (!APPDATA.app_data.Views.Contains(View)) { APPDATA.app_data.Views.Add(View); } init_music(); if (APPDATA.app_data.ISMUTE) { MuteButton.Content = CONST.mute; } else { MuteButton.Content = CONST.volume2; } BackButton.Visibility = Visibility.Collapsed; myFrame.Navigate(typeof(HomePage)); optionFrame.Navigate(typeof(Option)); achievementFrame.Navigate(typeof(Achievement)); await SplashScreen.goback(); mytitle.Visibility = Visibility.Visible; startFrame.Visibility = Visibility.Collapsed; if (!APPDATA.app_data.ISFULLSCREEN) { ApplicationView.GetForCurrentView().ExitFullScreenMode(); //退出全屏 } rotate(); }
void init() { View = new ViewModel.ViewModel(); if (!APPDATA.app_data.Views.Contains(View)) { APPDATA.app_data.Views.Add(View); } if (APPDATA.app_data.LANGGUAGE != "en-US") { LanguageNow.Text = "简体中文"; } else { LanguageNow.Text = "English"; } SFXVolSlider.Value = APPDATA.app_data.SFXVOLUME * SFXVolSlider.Maximum; MusicVolSlider.Value = APPDATA.app_data.MUSICVOLUME * MusicVolSlider.Maximum; NightMode.IsChecked = APPDATA.app_data.ISNIGHT; Fullscreen.IsChecked = APPDATA.app_data.ISFULLSCREEN; Fullscreen.Content = APPDATA.app_data.ISFULLSCREEN ? CONST.yes : CONST.no; NightMode.Content = APPDATA.app_data.ISNIGHT ? CONST.yes : CONST.no; }