Exemple #1
0
 public MainCode()
 {
     InitializeComponent();
     try
     {
         string       Path = Directory.GetCurrentDirectory();
         StreamWriter stw  = File.CreateText(Path + "/Test.dat");
         stw.WriteLine("Test File");
         stw.Close();
         File.Delete(Path + "/Test.dat");
     }
     catch
     {
         System.Windows.MessageBox.Show("The folder could not be accessed. You need to move the software to another location.");
         System.Windows.Application.Current.Shutdown();
     }
     FMod_List_Clear();
     Voice_Rename_Init();
     Fmod_Player.ESystem.Init(128, Cauldron.FMOD.INITFLAGS.NORMAL, IntPtr.Zero);
     FMOD_API.System FModSys = new FMOD_API.System();
     FMOD_API.Factory.System_Create(ref FModSys);
     Fmod_System.FModSystem = FModSys;
     Fmod_System.FModSystem.init(16, FMOD_API.INITFLAGS.NORMAL, IntPtr.Zero);
     System.Drawing.Size MaxSize = Screen.PrimaryScreen.WorkingArea.Size;
     MaxWidth  = MaxSize.Width;
     MaxHeight = MaxSize.Height;
     //Sliderにクリック判定がないため強制的に判定を付ける
     Location_S.AddHandler(MouseDownEvent, new MouseButtonEventHandler(Location_MouseDown), true);
     Location_S.AddHandler(MouseUpEvent, new MouseButtonEventHandler(Location_MouseUp), true);
     Volume_S.Value = 50;
     Position_Change();
     Window_Show();
 }
 public Tools_V2()
 {
     InitializeComponent();
     Location_S.AddHandler(MouseDownEvent, new MouseButtonEventHandler(Location_MouseDown), true);
     Location_S.AddHandler(MouseUpEvent, new MouseButtonEventHandler(Location_MouseUp), true);
     Change_Volume_S.AddHandler(MouseUpEvent, new MouseButtonEventHandler(Change_Volume_S_MouseUp), true);
     Volume_Setting_Change();
 }
Exemple #3
0
 public BNK_Event()
 {
     InitializeComponent();
     Location_S.AddHandler(MouseDownEvent, new MouseButtonEventHandler(Location_MouseDown), true);
     Location_S.AddHandler(MouseUpEvent, new MouseButtonEventHandler(Location_MouseUp), true);
     Volume_S.AddHandler(MouseUpEvent, new MouseButtonEventHandler(Volume_MouseUp), true);
     Location_S.Maximum = 0;
 }
 public Wwise_Event_Player()
 {
     InitializeComponent();
     Page_Back_B.Visibility = Visibility.Hidden;
     Page_Next_B.Visibility = Visibility.Hidden;
     Location_S.AddHandler(MouseDownEvent, new MouseButtonEventHandler(Location_MouseDown), true);
     Location_S.AddHandler(MouseUpEvent, new MouseButtonEventHandler(Location_MouseUp), true);
     Volume_S.Value = 75;
 }
Exemple #5
0
 public Blitz_To_WoT()
 {
     InitializeComponent();
     Location_S.AddHandler(MouseDownEvent, new MouseButtonEventHandler(Location_MouseDown), true);
     Location_S.AddHandler(MouseUpEvent, new MouseButtonEventHandler(Location_MouseUp), true);
     Volume_S.AddHandler(MouseUpEvent, new MouseButtonEventHandler(Volume_MouseUp), true);
     Voices_L.Items.Add("音声ファイルが選択されていません。");
     Location_S.Maximum = 0;
 }
Exemple #6
0
 public WoT_To_Blitz()
 {
     InitializeComponent();
     Location_S.AddHandler(MouseDownEvent, new MouseButtonEventHandler(Location_MouseDown), true);
     Location_S.AddHandler(MouseUpEvent, new MouseButtonEventHandler(Location_MouseUp), true);
     Volume_S.AddHandler(MouseUpEvent, new MouseButtonEventHandler(Volume_MouseUp), true);
     Voices_L.Items.Add("音声ファイルが選択されていません。");
     Location_S.Maximum = 0;
     Change_Mode_Layout();
     Button_Color_Change(-1);
 }
Exemple #7
0
 public Fmod_Extract()
 {
     InitializeComponent();
     Select_L.Items.Add("リスト内のすべてのファイル");
     Select_L.Items.Add("選択したファイルのみ");
     Extract_L.Items.Add(".aac");
     Extract_L.Items.Add(".flac");
     Extract_L.Items.Add(".mp3");
     Extract_L.Items.Add(".ogg");
     Extract_L.Items.Add(".wav");
     Extract_L.Items.Add(".webm");
     Extract_L.Items.Add(".wma");
     //Sliderにクリック判定がないため強制的に判定を付ける
     Location_S.AddHandler(MouseDownEvent, new MouseButtonEventHandler(Location_MouseDown), true);
     Location_S.AddHandler(MouseUpEvent, new MouseButtonEventHandler(Location_MouseUp), true);
     Volume_S.AddHandler(MouseUpEvent, new MouseButtonEventHandler(Volume_MouseUp), true);
 }
Exemple #8
0
 public Bank_Editor()
 {
     InitializeComponent();
     Location_S.AddHandler(MouseDownEvent, new MouseButtonEventHandler(Location_MouseDown), true);
     Location_S.AddHandler(MouseUpEvent, new MouseButtonEventHandler(Location_MouseUp), true);
 }