static void Main(string[] args) { osuManager = new OsuManager(); if (!osuManager.Initialize()) { Console.WriteLine(); Console.WriteLine("osu!rx will close in 5 seconds..."); Thread.Sleep(5000); Environment.Exit(0); } configManager = new ConfigManager(); DependencyContainer.Cache(osuManager); DependencyContainer.Cache(configManager); relax = new Relax(); defaultConsoleTitle = Console.Title; if (configManager.UseCustomWindowTitle) { Console.Title = configManager.CustomWindowTitle; } DrawMainMenu(); }
private void Awake() { Instance = this; token = GetComponent <Token>(); active = GetComponent <Active>(); relax = GetComponent <Relax>(); }
// Start is called before the first frame update void Start() { var plane = new Rhino.Geometry.Plane(Point3d.Origin, Vector3d.ZAxis); var interval = new Interval(-0.5, 0.5); rect = new Rectangle3d(plane, interval, interval); var intervalR = new Interval(-5, 5); region = new Rectangle3d(plane, intervalR, intervalR); pts = RhinoWrapper.RandomPt(rect, numSphere); _relax = gameObject.AddComponent <Relax>(); spheres = new List <GameObject>(); var col = new Color(0.5f, 0, 0, 0.01f); for (int i = 0; i < pts.Count; i++) { var sphere = GameObject.CreatePrimitive(PrimitiveType.Quad); sphere.GetComponent <MeshRenderer>().material.color = Random.ColorHSV(1f, 1f, 1f, 1f, 0, 0); spheres.Add(sphere); } RhinoPreview.PolyLineShow(region.ToPolyline(), col, 0.3f); }
public void Init() { //子のエージェントに番号を振る var transforms = gameObject.GetComponentsInChildren <Transform>(false); List <Transform> agents = transforms.Where(transform => transform.CompareTag("agent")).ToList(); for (int i = 0; i < agents.Count; i++) { agents[i].gameObject.GetComponent <LayoutAgent>().agentNumber = i; agents[i].gameObject.name = "Agent" + "Num" + i.ToString(); } //初期化 _shapedGrid = gameObject.AddComponent <ShapedGrid>(); _areaRatio = gameObject.AddComponent <AreaRatio>(); _areaGrowth = gameObject.AddComponent <AreaGrowth>(); _relax = gameObject.AddComponent <Relax>(); _rectSelect = gameObject.AddComponent <RectSelect>(); _gridGrowth = gameObject.AddComponent <GridGrowth>(); ReComputeShape(); ReComputeArea(); if (show) { ReloadPreview(false); } }
/// <summary> /// Tos the relax. 根据数据,返回有钱有闲 /// </summary> /// <returns>The relax.</returns> /// <param name="jsonValue">Json value.</param> public static Relax ToRelaxCard(JsonData jsonValue) { var cardVo = new Relax(); cardVo.id = int.Parse(jsonValue["id"].ToString()); // card name cardVo.title = jsonValue["name"].ToString(); cardVo.cardPath = jsonValue["path"].ToString(); // card infor cardVo.desc = jsonValue["instructions"].ToString(); // pay money cardVo.payment = float.Parse(jsonValue["investmentPay"].ToString()); // show profit cardVo.profit = jsonValue["investmentIncome"].ToString(); // flow income cardVo.income = float.Parse(jsonValue["flowCash"].ToString()); // score of time ; cardVo.timeScore = float.Parse(jsonValue["timeIntegral"].ToString()); /// <summary> /// The rank score.排名积分 /// </summary> cardVo.rankScore = int.Parse(jsonValue["cardIntegral"].ToString()); return(cardVo); }
public ActionResult DeleteConfirmed(int id) { Relax relax = db.Relaxes.Find(id); db.Relaxes.Remove(relax); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,Technique")] Relax relax) { if (ModelState.IsValid) { db.Entry(relax).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(relax)); }
public ActionResult Create([Bind(Include = "Id,Technique")] Relax relax) { if (ModelState.IsValid) { db.Relaxes.Add(relax); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(relax)); }
// GET: Relax/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Relax relax = db.Relaxes.Find(id); if (relax == null) { return(HttpNotFound()); } return(View(relax)); }
public void RefreshRichLeisure(Relax value) { _txtTitle.text = value.title; _txtNnum.text = "1"; if (null != _imgPic) { WebManager.Instance.LoadWebItem(value.cardPath, item => { using (item) { _imgPic.sprite = item.sprite; } }); } relax = value; }
// Token: 0x0600049D RID: 1181 RVA: 0x00017A18 File Offset: 0x00015C18 public void run() { osu = new OsuManager(); getOsu(); DependencyContainer.Cache <OsuManager>(osu); aimAssist = new AimAssist(); relax = new Relax(); replayPlayer = new ReplayPlayer(); gui = new GUI(this); user = new User("", ""); gui.Text = "OsuBuddyCrack - " + this.user.getUsername(); gui.updateLoginGui(this.user.getUsername(), this.user.getSubscriptionExpirationDate()); Thread thread = new Thread((ThreadStart) delegate { gui.ShowDialog(null); }); thread.SetApartmentState(ApartmentState.STA); thread.Start(); StartTasks(); }
static void Main(string[] args) { int win = GetConsoleWindow(); ShowWindow(win, 0); osuManager = new OsuManager(); if (!osuManager.Initialize()) { Console.Clear(); Console.WriteLine("osu!rx failed to initialize:\n"); Console.WriteLine("Memory scanning failed! Try restarting osu!, osu!rx or your computer to fix this issue."); Console.WriteLine("It that didn't helped, then report this on GitHub/MPGH."); Console.WriteLine("Please include as much info as possible (OS version, hack version, build source, debug info, etc.)."); Console.WriteLine($"\n\nDebug Info:\n"); Console.WriteLine(osuManager.DebugInfo); while (true) { Thread.Sleep(1000); } } configManager = new ConfigManager(); DependencyContainer.Cache(osuManager); DependencyContainer.Cache(configManager); relax = new Relax(); timewarp = new Timewarp(); defaultConsoleTitle = Console.Title; if (configManager.UseCustomWindowTitle) { Console.Title = configManager.CustomWindowTitle; } DrawMainMenu(); }
private void _ShowQualityLifeCardData(Relax go, string imgPath) { lb_cardName.text = go.title; lb_cardTitle.text = go.title; if (go.desc == null || go.desc == "") { lb_desc.SetActiveEx(false); } else { // lb_desc.text = go.desc; var str = go.desc; var str1 = str.Replace("\\u3000", "\u3000"); var str2 = str1.Replace("\\n", "\n"); lb_desc.text = str2; } var tmpPay = HandleStringTool.HandleMoneyTostring(Mathf.Abs(go.payment * _controller.castRate)); lb_paymenyTxt.text = string.Format("¥ {0}", tmpPay); if (go.timeScore == 0) { lb_timeName.SetActiveEx(false); lb_timeTxt.SetActiveEx(false); } else { lb_timeTxt.text = string.Concat(go.timeScore); } if (null == go.profit || go.profit == "") { lb_profitName.SetActiveEx(false); lb_profitTxt.SetActiveEx(false); } else { var tmpProfit = ""; if (GameModel.GetInstance.isPlayNet == false) { var tmpvalue = float.Parse(go.profit); tmpProfit = string.Format("{0}%", (tmpvalue * 100).ToString()); } else { tmpProfit = go.profit; } lb_profitTxt.text = tmpProfit; } if (go.income == 0) { lb_incomeName.SetActiveEx(false); lb_incometxt.SetActiveEx(false); } else { lb_incometxt.text = string.Format("¥ {0}", go.income.ToString()); } if ("" != imgPath) { if (null != _cardPic) { _cardPic.Load(imgPath); } } }
private void SetContent(Relax value) { _txtLbcardname.text = value.title; _txtTitle.text = value.title; if (value.desc == null || value.desc == "") { _txtDesc.SetActiveEx(false); } else { var str = value.desc; var str1 = str.Replace("\\u3000", "\u3000"); var str2 = str1.Replace("\\n", "\n"); _txtDesc.text = str2; } var tmpPay = HandleStringTool.HandleMoneyTostring(Mathf.Abs(value.payment)); _txtPayment.text = string.Format("¥ {0}", tmpPay); if (value.timeScore == 0) { _txtTimeName.SetActiveEx(false); _txtTimescore.SetActiveEx(false); } else { _txtTimescore.text = string.Concat(value.timeScore); } if (null == value.profit || value.profit == "") { _txtProfitName.SetActiveEx(false); _txtProfit.SetActiveEx(false); } else { var tmpProfit = ""; if (GameModel.GetInstance.isPlayNet == false) { var tmpValue = float.Parse(value.profit); tmpProfit = string.Format("{0}%", (tmpValue * 100).ToString()); } else { tmpProfit = value.profit; } _txtProfit.text = tmpProfit; } if (value.income == 0) { _txtIncomeName.SetActiveEx(false); _txtIncome.SetActiveEx(false); } else { _txtIncome.text = string.Format("¥ {0}", value.income.ToString()); } WebManager.Instance.LoadWebItem(value.cardPath, item => { using (item) { _imgShowImage.sprite = item.sprite; } }); }
public void setRelax(Relax value) { relax = value; }