public override bool DoDialog() { bool result = false; GUISkin skin = GUI.skin; GUI.skin = GUISkinFinder.Instance.GetGUISkin(); bool enabled = GUI.enabled; if (reasonCombo.IsClickedComboButton()) { GUI.enabled = false; } imgList.Draw(); labelList.Draw(); regMap.Draw(); mapName.Draw(); textDetail.Draw(); ok.Draw(); exit.Draw(); GUI.enabled = enabled; reasonCombo.Draw(); if (ok.isClick()) { if (IsRightReason()) { if (textDetail.GetInputText().Length > 0) { CSNetManager.Instance.Sock.SendCS_ACCUSE_MAP_REQ(reasonCombo.Select - 1, regMap.GetRegMapId(), textDetail.GetInputText()); result = true; } else { MessageBoxMgr.Instance.AddMessage(StringMgr.Instance.Get("REPORT_GM_MESSAGE_04")); } } else { MessageBoxMgr.Instance.AddMessage(StringMgr.Instance.Get("REPORT_GM_REASON_SELECT")); } } if (exit.isClick()) { result = true; } if (!ContextMenuManager.Instance.IsPopup) { WindowUtil.EatEvent(); } GUI.skin = skin; return(result); }