private void MainForm_Load(object sender, EventArgs e) { // On Working Monitor this.Location = Screen.AllScreens[0].WorkingArea.Location; CenterToScreen(); this.TopMost = true; zoneName = "?"; actString = "?"; currentDirectory = Application.StartupPath; bIsMinimized = false; bool bRet = ReadDirectionHelperData(); if (bRet == false) { this.Close(); Application.Exit(); } /* * [DIRECTIONHELPER] * POELOGPATH="SET" */ string strINIPath = String.Format("{0}\\{1}", Application.StartupPath, "ConfigPath.ini"); IniParser parser = new IniParser(strINIPath); DeadlyLog4Net._log.Info($"{MethodBase.GetCurrentMethod().Name} RESOLUTION : " + strINIPath); try { noteLabel.Text = ""; string strLastPart = parser.GetSetting("INITPART", "LASTPART"); if (strLastPart == "1") { partTwo = false; } else if (strLastPart == "2") { partTwo = true; } /* * [LOCATION] * LEFT=1385 * TOP=941 * ISMIN=N */ string sLeft = parser.GetSetting("LOCATION", "LEFT"); string sTop = parser.GetSetting("LOCATION", "TOP"); string sMin = parser.GetSetting("LOCATION", "ISMIN"); if (sLeft != "CENTER" && sTop != "CENTER") { StartPosition = FormStartPosition.Manual; Left = Int32.Parse(sLeft); Top = Int32.Parse(sTop); } } catch { StartPosition = FormStartPosition.Manual; Left = 0; Top = 0; } if (actString == "?") { actString = DeadlyZoneInform.GetActROMAbyZoneName(zoneName, partTwo); } if (actString == "I" || actString == "II" || actString == "III" || actString == "IV" || actString == "V") { //parser.AddSetting("INITPART", "LASTPART", "1"); noteLabel.Text = "마을입니다."; } else if (actString == "VI" || actString == "VII" || actString == "VIII" || actString == "IX" || actString == "X") { //parser.AddSetting("INITPART", "LASTPART", "2"); noteLabel.Text = "마을입니다."; } else if (actString == "O") { //parser.AddSetting("INITPART", "LASTPART", "2"); noteLabel.Text = "액트 클리어를 축하드립니다."; } else if (actString == "Z") { //parser.AddSetting("INITPART", "LASTPART", "2"); noteLabel.Text = "지도의 대가 자나를 만나보세요."; } else if (actString == "H") { //parser.AddSetting("INITPART", "LASTPART", "2"); noteLabel.Text = "멋진 은신처군요~!"; } else { //parser.AddSetting("INITPART", "LASTPART", "3"); noteLabel.Text = "정보가 없습니다. (더블클릭시에도 나타나지 않으면 지역 정보가 충분히 파악되지 않았거나, 정보가 없어도 진행이 가능한 지역입니다.)"; } //parser.AddSetting("INITPART", "zoneName", zoneName); //parser.AddSetting("INITPART", "actString", actString); //parser.SaveSettings(); btnLangText = String.Format("Act {0} : {1}", actString, zoneName); btnLang.Text = btnLangText; if (LauncherForm.g_strUILang == "KOR") { nUILang = UI_LANG.UI_KOREAN; } else if (LauncherForm.g_strUILang == "ENG") { nUILang = UI_LANG.UI_ENGLISH; } else { MSGForm frmMSG = new MSGForm(); frmMSG.btmConfirm.Visible = false; frmMSG.btnENG.Visible = true; frmMSG.btnKOR.Visible = true; frmMSG.lbMsg.Text = "Can't find POE UI Configuration. What is your OPTION-UI Languge in POE?" + "\r\n\r\n(언어 설정을 확인할 수 없습니다. 옵션-UI에서 어떤 언어를 사용하고 계신가요?)"; DialogResult dr = frmMSG.ShowDialog(); if (dr == DialogResult.Yes) { LauncherForm.g_strUILang = "KOR"; LauncherForm.g_strExplanationLANG = LauncherForm.g_strUILang; nUILang = UI_LANG.UI_KOREAN; } else { LauncherForm.g_strUILang = "ENG"; LauncherForm.g_strExplanationLANG = LauncherForm.g_strUILang; nUILang = UI_LANG.UI_ENGLISH; } } }
private void ImageOverlayFormAlva_Paint(object sender, PaintEventArgs e) { string strINIPath = String.Format("{0}\\{1}", Application.StartupPath, "ConfigPath.ini"); if (LauncherForm.resolution_width < 1920 && LauncherForm.resolution_height < 1080) { strINIPath = String.Format("{0}\\{1}", Application.StartupPath, "ConfigPath_1600_1024.ini"); if (LauncherForm.resolution_width < 1600 && LauncherForm.resolution_height < 1024) { strINIPath = String.Format("{0}\\{1}", Application.StartupPath, "ConfigPath_1280_768.ini"); } else if (LauncherForm.resolution_width < 1280) { strINIPath = String.Format("{0}\\{1}", Application.StartupPath, "ConfigPath_LOW.ini"); } } else if (LauncherForm.resolution_width > 1920) { strINIPath = String.Format("{0}\\{1}", Application.StartupPath, "ConfigPath_HIGH.ini"); } IniParser parser = new IniParser(strINIPath); string sLeft = parser.GetSetting("LOCATIONIMGALVA", "LEFT"); string sTop = parser.GetSetting("LOCATIONIMGALVA", "TOP"); string sZoom = parser.GetSetting("LOCATIONIMGALVA", "ZOOM"); if (sLeft == null) { sLeft = "0"; } if (sTop == null) { sTop = "0"; } if (sZoom == null) { sZoom = "0"; } gGDIfx = e.Graphics; gGDIfx.DrawImage(img, new Point(0, 20)); this.Top = Int32.Parse(sTop); this.Left = Int32.Parse(sLeft); this.Width = img.Width; this.Height = img.Height + 20; #region Removed ⨌⨌ /*switch (nButtonNumber) * { * case 3: // Incursion.png * gGDIfx.DrawImage(Bitmap.FromFile(@".\DeadlyInform\Incursion.png"), new Point(0, 25)); * break; * case 4:// Betrayal.png * gGDIfx.DrawImage(Bitmap.FromFile(@".\DeadlyInform\Betrayal.png"), new Point(0, 25)); * break; * case 6: // ExpensiveItemB.png * gGDIfx.DrawImage(Bitmap.FromFile(@".\DeadlyInform\ExpensiveItemB.png"), new Point(0, 25)); * break; * case 7: // Atlas.png * gGDIfx.DrawImage(Bitmap.FromFile(@".\DeadlyInform\Atlas.png"), new Point(0, 25)); * break; * case 9: // Vendorrecipe.png * gGDIfx.DrawImage(Bitmap.FromFile(@".\DeadlyInform\Vendorrecipe.png"), new Point(0, 25)); * break; * case 0: * gGDIfx.DrawImage(Bitmap.FromFile(@".\DeadlyInform\Currency.png"), new Point(0, 25)); * break; * default: * break; * } */ #endregion }