Пример #1
0
 /// <summary>
 /// 显示设置窗口。
 /// </summary>
 private void settingsTSBtn_Click(object sender, EventArgs e)
 {
     using (SettingForm form = new SettingForm(this.deviceManager.SupportD3D))
     {
         form.ShowDialog();
         string renderType = form.RendererType.ToString();
         if (JigsawSetting.Default.Renderer != renderType)
         {
             JigsawSetting.Default.Renderer = renderType;
             gameManager.RendererType       = form.RendererType;
         }
         gameManager.BackgroundColor = JigsawSetting.Default.BackgroundColor;
         gameManager.BackgroundAlpha = JigsawSetting.Default.BackgroundAlpha;
         gameManager.InvalidateAll();
     }
 }
Пример #2
0
		/// <summary>
		/// 显示设置窗口。
		/// </summary>
		private void settingsTSBtn_Click(object sender, EventArgs e)
		{
			using (SettingForm form = new SettingForm(this.deviceManager.SupportD3D))
			{
				form.ShowDialog();
				string renderType = form.RendererType.ToString();
				if (JigsawSetting.Default.Renderer != renderType)
				{
					JigsawSetting.Default.Renderer = renderType;
					gameManager.RendererType = form.RendererType;
				}
				gameManager.BackgroundColor = JigsawSetting.Default.BackgroundColor;
				gameManager.BackgroundAlpha = JigsawSetting.Default.BackgroundAlpha;
				gameManager.InvalidateAll();
			}
		}