public void initResources(AGUR parent, int resource) { this.btnOK.Text = SK.Text("GENERIC_OK", "OK"); this.btnCancel.Text = SK.Text("GENERIC_Cancel", "Cancel"); this.label1.Text = SK.Text("ReasonPopup_Enter_Reason", "Enter Reason For this Action"); this.Text = base.Title = SK.Text("ReasonPopup_Reason", "Reason") + " : " + VillageBuildingsData.getResourceNames(resource); this.m_agur = parent; }
private void UserinfoScreenLine_DoubleClick(object sender, EventArgs e) { if (this.m_villageID >= 0) { if (RemoteServices.Instance.Admin && GameEngine.shiftPressed) { AGUR agur = new AGUR(); agur.init(this.m_villageID); agur.Show(InterfaceMgr.Instance.ParentForm); } else { GameEngine.Instance.playInterfaceSound("UserinfoScreenLine_village"); Point point = GameEngine.Instance.World.getVillageLocation(this.m_villageID); InterfaceMgr.Instance.closeParishPanel(); GameEngine.Instance.World.startMultiStageZoom(10000.0, (double)point.X, (double)point.Y); InterfaceMgr.Instance.displaySelectedVillagePanel(this.m_villageID, false, true, true, false); } } }