private void Init() { Name = Languages.ReturnString(NotificationKey + ".Noti.Name"); Description = Languages.ReturnString(NotificationKey + ".Noti.Desc"); if (!String.IsNullOrEmpty(Param1)) { if (NotificationKey == "ShipPayed") { Param1 = MyText.DollarFormat(float.Parse(Param1)); } else if (NotificationKey == "NoInput") { Param1 = Languages.ReturnString(Param1); } else if (NotificationKey == "Built")//so StorageBig is Big Storage { Param1 = Languages.ReturnString(Param1); } Description = string.Format(Description, Param1); } NotificationKey = NotificationKey; }
/// <summary> /// Will displya the final order how looks like /// </summary> private void Display() { if (_prodSelect != P.None) { var key = _prodSelect.ToString(); _prodSelLbl.text = Languages.ReturnString(key); } else { _prodSelLbl.text = "-"; } if (_inputAmt.text != "") { _amtEnterLbl.text = _inputAmt.text + " " + Unit.CurrentWeightUnitsString(); } else { _amtEnterLbl.text = "-"; }; if (_prodSelect != P.None && _inputAmt.text != "") { var trans = Program.gameScene.ExportImport1.CalculateTransaction(_prodSelect, _amt); _priceLbl.text = MyText.DollarFormat(trans); } }
public static void OKDialog(H type, string str1 = "") { if (type == H.CompleteQuest) { str1 = MyText.DollarFormat(float.Parse(str1)); } RoutineSetUp(); _type = type; _dialogGo = DialogGO.Create(Root.dialogOK, _canvas, _middleOfScreen, _type, str1); }
private void Init() { _leftText.text = ""; _rightText.text = ""; _centerText.text = ""; if (Acct.Balance == -1) { _centerText.text = Acct.Name; } else { _leftText.text = Acct.Name; _rightText.text = MyText.DollarFormat(Acct.Balance); } Year(); Fonts(); }
private void InitExport() { //HandleTitleBar if (Export.MDate == null) { _prodLbl.text = Languages.ReturnString("Date"); _input1Lbl.text = Languages.ReturnString("Building"); _input2Lbl.text = Languages.ReturnString("Product"); _input3Lbl.text = Languages.ReturnString("Amount"); _priceLbl.text = Languages.ReturnString("Transaction"); return; } _prodLbl.text = Export.MDate.ToStringFormatMonDayYear(); _input1Lbl.text = Export.Building; _input2Lbl.text = Languages.ReturnString(Export.Prod); _input3Lbl.text = Unit.ConvertFromKGToCurrent(Export.Amt).ToString("N0") + " " + Unit.CurrentWeightUnitsString(); _priceLbl.text = MyText.DollarFormat(Export.Money); }
public string Cost() { return(MyText.DollarFormat(MoneyNeeded())); }