디자이너 엔지엠 매크로 디자이너에서 옵션 설정을 변경하는 방법.
페이지 정보
본문
안녕하세요. 엔지엠소프트웨어입니다. 엔지엠 디자이너로 플레이어를 만드는 경우 아래와 같이 옵션을 변경할 수 있습니다.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DesignerTest
{
public partial class Form1 : Designer.ComponentDefault.MainView
{
public Form1()
{
InitializeComponent();
this.ScriptDirectory = System.IO.Path.Combine(Application.StartupPath, "Script");
this.ImageDirectory = System.IO.Path.Combine(Application.StartupPath, "Image");
var option = NGM.Client.SystemHelper.GetOptionConfig(this.Text, true);
if (option == null )
option = new NGM.Models.Configuration.OptionConfigModel();
// 실행 속도
option.PlaySpeed= 0;
// 서브스크립트 속도
option.SubscriptSpeed= 0;
// 서브스크립트 종료 속도
option.SubscriptStopSpeed= 0;
NGM.Client.SystemHelper.SaveOptionConfig(this.Text, option, true);
}
}
}
코드를 보면 아시겠지만, 실행 속도와 서브스크립트 속도, 서브스크립트 종료 속도를 설정한 값으로 처리합니다. 참고로, 디자이너로 제작하는 프로그램도 엔지엠 플레이어와 동일한 속성을 가집니다. 따라서, Option Config 파일을 불러오거나 저장할 때 IsPlayer 인자를 true로 설정해야 합니다.
개발자에게 후원하기
추천, 구독, 홍보 꼭~ 부탁드립니다.
여러분의 후원이 빠른 귀농을 가능하게 해줍니다~ 답답한 도시를 벗어나 귀농하고 싶은 개발자~
감사합니다~
추천0 비추천0
- 이전글엔지엠 매크로 디자이너에서 마우스 이펙트 표시하는 방법. 23.02.13
- 다음글엔지엠 매크로 디자이너에서 스크립트 및 이미지 폴더 위치 설정하는 방법. 23.02.13
댓글목록
등록된 댓글이 없습니다.