Exemplo n.º 1
0
        private void MainWin_Load(object sender, EventArgs e)
        {
            CheckPos.RunWorkerAsync();
            GarbageCollector.RunWorkerAsync();

            DebugInfo.Checked              = Properties.Settings.Default.DebugInfo;
            NoTrimMillisecs.Checked        = Properties.Settings.Default.NoTrimMilliseconds;
            HideMilliseconds.Checked       = Properties.Settings.Default.RemoveMilliseconds;
            StillFramesEnd.Checked         = Properties.Settings.Default.StillFramesEnd;
            StillFramesBeginning.Checked   = Properties.Settings.Default.StillFramesBeginning;
            RemoveAdditionalZeroes.Checked = Properties.Settings.Default.RemoveAdditionalZeroes;

            if (Properties.Settings.Default.TemplatesCounterIndex == 0)
            {
                Data.TextTemplateBL = Properties.Settings.Default.CustomCounterTemplateBL;
                Data.TextTemplateBC = Properties.Settings.Default.CustomCounterTemplateBC;
                Data.TextTemplateBR = Properties.Settings.Default.CustomCounterTemplateBR;
                Data.TextTemplateML = Properties.Settings.Default.CustomCounterTemplateML;
                Data.TextTemplateMC = Properties.Settings.Default.CustomCounterTemplateMC;
                Data.TextTemplateMR = Properties.Settings.Default.CustomCounterTemplateMR;
                Data.TextTemplateTL = Properties.Settings.Default.CustomCounterTemplateTL;
                Data.TextTemplateTC = Properties.Settings.Default.CustomCounterTemplateTC;
                Data.TextTemplateTR = Properties.Settings.Default.CustomCounterTemplateTR;
            }
            else
            {
                Data.TextTemplateBL = Properties.Settings.Default.TemplatesCounterBL[Properties.Settings.Default.TemplatesCounterIndex - 1].Replace("\\n", "\n");
                Data.TextTemplateBC = Properties.Settings.Default.TemplatesCounterBC[Properties.Settings.Default.TemplatesCounterIndex - 1].Replace("\\n", "\n");
                Data.TextTemplateBR = Properties.Settings.Default.TemplatesCounterBR[Properties.Settings.Default.TemplatesCounterIndex - 1].Replace("\\n", "\n");
                Data.TextTemplateML = Properties.Settings.Default.TemplatesCounterML[Properties.Settings.Default.TemplatesCounterIndex - 1].Replace("\\n", "\n");
                Data.TextTemplateMC = Properties.Settings.Default.TemplatesCounterMC[Properties.Settings.Default.TemplatesCounterIndex - 1].Replace("\\n", "\n");
                Data.TextTemplateMR = Properties.Settings.Default.TemplatesCounterMR[Properties.Settings.Default.TemplatesCounterIndex - 1].Replace("\\n", "\n");
                Data.TextTemplateTL = Properties.Settings.Default.TemplatesCounterTL[Properties.Settings.Default.TemplatesCounterIndex - 1].Replace("\\n", "\n");
                Data.TextTemplateTC = Properties.Settings.Default.TemplatesCounterTC[Properties.Settings.Default.TemplatesCounterIndex - 1].Replace("\\n", "\n");
                Data.TextTemplateTR = Properties.Settings.Default.TemplatesCounterTR[Properties.Settings.Default.TemplatesCounterIndex - 1].Replace("\\n", "\n");
            }

            PushFrame(true);
        }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     win   = FindObjectOfType <WinObject>();
     check = FindObjectOfType <CheckPos>();
 }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     win    = FindObjectOfType <WinObject>();
     check  = FindObjectOfType <CheckPos>();
     button = FindObjectOfType <ButtonRotation>();
 }
Exemplo n.º 4
0
 public static void Init()
 {
     CheckPos win = (CheckPos)EditorWindow.GetWindow(typeof(CheckPos), true, "查看点击的按钮的屏幕位置");
 }