private void PrintMapInfo(RegMap reg) { Color txtMainColor = GlobalVars.Instance.txtMainColor; LabelUtil.TextOut(crdDeveloperLabel, StringMgr.Instance.Get("DEVELOPER") + " : ", "MiniLabel", txtMainColor, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); LabelUtil.TextOut(crdDeveloperVal, reg.Developer, "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); LabelUtil.TextOut(crdMapAliasLabel, StringMgr.Instance.Get("MAP_NAME_IS") + " " + StringMgr.Instance.Get("MAP_VERSION") + " : ", "MiniLabel", txtMainColor, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); LabelUtil.TextOut(crdMapAliasVal, reg.Alias + reg.Version, "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); LabelUtil.TextOut(crdLastModifiedLabel, StringMgr.Instance.Get("LAST_MODIFIED_DATE"), "MiniLabel", txtMainColor, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); LabelUtil.TextOut(crdLastModifiedVal, DateTimeLocal.ToString(reg.RegisteredDate), "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); LabelUtil.TextOut(crdPlayCountLabel, StringMgr.Instance.Get("PLAY_COUNT") + " : ", "MiniLabel", txtMainColor, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); LabelUtil.TextOut(crdPlayCountVal, reg.DisLikes.ToString(), "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); LabelUtil.TextOut(crdDownloadCountLabel, StringMgr.Instance.Get("DOWNLOAD_COUNT") + " : ", "MiniLabel", txtMainColor, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); LabelUtil.TextOut(crdDownloadCountVal, reg.DownloadCount.ToString(), "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); LabelUtil.TextOut(crdDownloadFeeLabel, StringMgr.Instance.Get("DOWNLOAD_FEE") + " : ", "MiniLabel", txtMainColor, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); LabelUtil.TextOut(crdDownloadFeeVal, reg.DownloadFee.ToString(), "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); LabelUtil.TextOut(crdMapEvalLabel, StringMgr.Instance.Get("MAP_EVAL") + " : ", "MiniLabel", txtMainColor, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); TextureUtil.DrawTexture(crdStar, texStarGradeBg, ScaleMode.StretchToFill); LabelUtil.TextOut(crdGradeText, "[ " + reg.GetStarAvgString() + " ]", "MiniLabel", txtMainColor, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); float num = (float)reg.Likes / 100f; Rect position = new Rect(crdStar.x, crdStar.y, crdStar.width * num, crdStar.height); GUI.BeginGroup(position); TextureUtil.DrawTexture(new Rect(0f, 0f, crdStar.width, crdStar.height), texStarGrade); GUI.EndGroup(); LabelUtil.TextOut(crdSupportModeLabel, StringMgr.Instance.Get("SUPPORT_MODE") + " : ", "MiniLabel", txtMainColor, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); }
private void PrintMapInfo(RegMap reg, Vector2 pos) { Texture2D image = (!(reg.Thumbnail == null)) ? reg.Thumbnail : nonAvailable; TextureUtil.DrawTexture(new Rect(pos.x + 5f, pos.y + 10f, crdThumbnail.x, crdThumbnail.y), image, ScaleMode.StretchToFill); Color txtMainColor = GlobalVars.Instance.txtMainColor; LabelUtil.TextOut(new Vector2(pos.x + 115f, pos.y - 3f), StringMgr.Instance.Get("DEVELOPER"), "MiniLabel", txtMainColor, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); LabelUtil.TextOut(new Vector2(pos.x + 120f, pos.y + 12f), reg.Developer, "MiniLabel", Color.white, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); LabelUtil.TextOut(new Vector2(pos.x + 115f, pos.y + 37f), StringMgr.Instance.Get("MAP_NAME_IS") + " " + StringMgr.Instance.Get("MAP_VERSION"), "MiniLabel", txtMainColor, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); LabelUtil.TextOut(new Vector2(pos.x + 120f, pos.y + 52f), reg.Alias + reg.Version, "MiniLabel", Color.white, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); LabelUtil.TextOut(new Vector2(pos.x + 115f, pos.y + 77f), StringMgr.Instance.Get("LAST_MODIFIED_DATE"), "MiniLabel", txtMainColor, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); LabelUtil.TextOut(new Vector2(pos.x + 120f, pos.y + 92f), DateTimeLocal.ToString(reg.RegisteredDate), "MiniLabel", Color.white, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); LabelUtil.TextOut(new Vector2(pos.x + 280f, pos.y - 3f), StringMgr.Instance.Get("PLAY_COUNT"), "MiniLabel", txtMainColor, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); LabelUtil.TextOut(new Vector2(pos.x + 286f, pos.y + 12f), reg.DisLikes.ToString(), "MiniLabel", Color.white, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); LabelUtil.TextOut(new Vector2(pos.x + 280f, pos.y + 37f), StringMgr.Instance.Get("DOWNLOAD_COUNT"), "MiniLabel", txtMainColor, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); LabelUtil.TextOut(new Vector2(pos.x + 286f, pos.y + 52f), reg.DownloadCount.ToString(), "MiniLabel", Color.white, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); LabelUtil.TextOut(new Vector2(pos.x + 280f, pos.y + 77f), StringMgr.Instance.Get("MAP_EVAL"), "MiniLabel", txtMainColor, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); Rect position = new Rect(pos.x + 286f, pos.y + 95f, 74f, 14f); TextureUtil.DrawTexture(position, texStarGradeBg, ScaleMode.StretchToFill); Vector2 pos2 = new Vector2(position.x + 80f, position.y - 4f); string text = "[ " + reg.GetStarAvgString() + " ]"; LabelUtil.TextOut(pos2, text, "MiniLabel", txtMainColor, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); float num = (float)reg.Likes / 100f; TextureUtil.DrawTexture(new Rect(position.x, position.y, position.width * num, position.height), srcRect: new Rect(0f, 0f, num, 1f), image: texStarGrade); }
/// <inheritdoc /> protected override void Execute(Context context) { var now = DateTime.Now; var utcNow = DateTime.UtcNow; DateTimeLocal.Set(context, now); DateTimeUtc.Set(context, utcNow); }
private void PrintMapInfo() { string text = StringMgr.Instance.Get("MAP_NAME_IS") + " " + StringMgr.Instance.Get("MAP_VERSION") + " " + reg[selected].Alias + reg[selected].Version; LabelUtil.TextOut(crdMapNameText, text, "MiniLabel", new Color(0.79f, 0.76f, 0.67f, 1f), GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); text = StringMgr.Instance.Get("LAST_MODIFIED_DATE") + " " + DateTimeLocal.ToString(reg[selected].RegisteredDate); LabelUtil.TextOut(crdLastDateText, text, "MiniLabel", new Color(0.79f, 0.76f, 0.67f, 1f), GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); text = StringMgr.Instance.Get("DOWNLOAD_COUNT") + ": " + reg[selected].DownloadCount; LabelUtil.TextOut(crdDnCountText, text, "MiniLabel", new Color(0.79f, 0.76f, 0.67f, 1f), GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); text = StringMgr.Instance.Get("MAP_EVAL") + ": "; LabelUtil.TextOut(crdMapEvalText, text, "MiniLabel", new Color(0.79f, 0.76f, 0.67f, 1f), GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); TextureUtil.DrawTexture(crdStarGrade, texStarGradeBg, ScaleMode.StretchToFill); Vector2 pos = new Vector2(crdStarGrade.x + 80f, crdStarGrade.y - 4f); text = "[ " + reg[selected].GetStarAvgString() + " ]"; LabelUtil.TextOut(pos, text, "MiniLabel", new Color(0.79f, 0.76f, 0.67f, 1f), GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); float num = (float)reg[selected].Likes / 100f; TextureUtil.DrawTexture(new Rect(crdStarGrade.x, crdStarGrade.y, crdStarGrade.width * num, crdStarGrade.height), srcRect: new Rect(0f, 0f, num, 1f), image: texStarGrade); text = StringMgr.Instance.Get("SUPPORT_MODE") + ": "; crdModeTextSize = LabelUtil.TextOut(crdSppModeText, text, "MiniLabel", new Color(0.79f, 0.76f, 0.67f, 1f), GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); }
public override bool DoDialog() { bool result = false; if (GlobalVars.Instance.IsIntroChange) { mapIntroduce = WordFilter.Instance.IgnoreFilter(GlobalVars.Instance.intro); GlobalVars.Instance.IsIntroChange = false; } if (GlobalVars.Instance.IsIntroChangeTemp) { mapIntroduce = WordFilter.Instance.IgnoreFilter(GlobalVars.Instance.introTemp); GlobalVars.Instance.IsIntroChangeTemp = false; } if (GlobalVars.Instance.IsPriceChangeTemp) { reg.DownloadFee = GlobalVars.Instance.downloadPriceTemp; GlobalVars.Instance.IsPriceChangeTemp = false; } GUISkin skin = GUI.skin; GUI.skin = GUISkinFinder.Instance.GetGUISkin(); Vector2 pos = new Vector2(size.x / 2f, 15f); LabelUtil.TextOut(pos, reg.Alias, "BigLabel", GlobalVars.Instance.txtMainColor, GlobalVars.txtEmptyColor, TextAnchor.UpperCenter); LabelUtil.TextOut(crdDeveloperVal, StringMgr.Instance.Get("DEVELOPER") + " : " + reg.Developer, "MidLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperRight); TextureUtil.DrawTexture(crdContury, BuildOption.Instance.defaultCountryFilter, ScaleMode.StretchToFill); GUI.Box(crdOutline, string.Empty, "LineBoxBlue"); TextureUtil.DrawTexture(crdThumbnail, reg.Thumbnail, ScaleMode.StretchToFill); DateTime registeredDate = reg.RegisteredDate; if (registeredDate.Year == DateTime.Today.Year && registeredDate.Month == DateTime.Today.Month && registeredDate.Day == DateTime.Today.Day) { TextureUtil.DrawTexture(new Rect(crdThumbnail.x, crdThumbnail.y, (float)GlobalVars.Instance.iconNewmap.width, (float)GlobalVars.Instance.iconNewmap.height), GlobalVars.Instance.iconNewmap, ScaleMode.StretchToFill); } else if ((reg.tagMask & 8) != 0) { TextureUtil.DrawTexture(new Rect(crdThumbnail.x, crdThumbnail.y, (float)GlobalVars.Instance.iconglory.width, (float)GlobalVars.Instance.iconglory.height), GlobalVars.Instance.iconglory, ScaleMode.StretchToFill); } else if ((reg.tagMask & 4) != 0) { TextureUtil.DrawTexture(new Rect(crdThumbnail.x, crdThumbnail.y, (float)GlobalVars.Instance.iconMedal.width, (float)GlobalVars.Instance.iconMedal.height), GlobalVars.Instance.iconMedal, ScaleMode.StretchToFill); } else if ((reg.tagMask & 2) != 0) { TextureUtil.DrawTexture(new Rect(crdThumbnail.x, crdThumbnail.y, (float)GlobalVars.Instance.icongoldRibbon.width, (float)GlobalVars.Instance.icongoldRibbon.height), GlobalVars.Instance.icongoldRibbon, ScaleMode.StretchToFill); } if (reg.IsAbuseMap()) { float x = crdThumbnail.x + crdThumbnail.width - (float)GlobalVars.Instance.iconDeclare.width; TextureUtil.DrawTexture(new Rect(x, crdThumbnail.y, (float)GlobalVars.Instance.iconDeclare.width, (float)GlobalVars.Instance.iconDeclare.height), GlobalVars.Instance.iconDeclare, ScaleMode.StretchToFill); } TextureUtil.DrawTexture(crdThumbUp, GlobalVars.Instance.iconThumbUp, ScaleMode.StretchToFill); LabelUtil.TextOut(new Vector2(crdThumbUp.x + 30f, crdThumbUp.y), reg.Likes.ToString(), "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); TextureUtil.DrawTexture(crdThumbDn, GlobalVars.Instance.iconThumbDn, ScaleMode.StretchToFill); LabelUtil.TextOut(new Vector2(crdThumbDn.x + 30f, crdThumbDn.y), reg.DisLikes.ToString(), "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); TextureUtil.DrawTexture(crdSave, GlobalVars.Instance.iconSave, ScaleMode.StretchToFill); LabelUtil.TextOut(new Vector2(crdSave.x + 30f, crdSave.y), reg.DownloadCount.ToString(), "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); LabelUtil.TextOut(crdMapAliasLabel, StringMgr.Instance.Get("VERSIONINFO") + string.Empty + StringMgr.Instance.Get("MAP_VERSION") + " : " + reg.Version, "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); LabelUtil.TextOut(crdLastModifiedLabel, StringMgr.Instance.Get("LAST_MODIFIED_DATE") + " : " + DateTimeLocal.ToString(reg.RegisteredDate), "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); LabelUtil.TextOut(crdSupportModeLabel, StringMgr.Instance.Get("SUPPORT_MODE"), "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); DrawMode(reg.ModeMask); LabelUtil.TextOut(crdTitle1, StringMgr.Instance.Get("MAP_INTRO"), "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); GUI.Box(crdOutline1, string.Empty, "BoxInnerLine"); GUI.SetNextControlName("MapIntroduceInput"); GUILayout.BeginArea(crdIntroArea); scrollPositionTA = GUILayout.BeginScrollView(scrollPositionTA, false, false, GUILayout.Width(crdIntroArea.width), GUILayout.Height(crdIntroArea.height)); GUILayout.TextArea(mapIntroduce, maxIntroduceLength); GUILayout.EndScrollView(); GUILayout.EndArea(); LabelUtil.TextOut(crdTitle2, StringMgr.Instance.Get("A_LINE_EVAL"), "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); GUI.Box(crdOutline2, string.Empty, "BoxInnerLine"); float num = 0f; Rect viewRect = new Rect(crdScreen); viewRect.width -= 20f; viewRect.height = rectHeight; scrollPosition = GUI.BeginScrollView(crdScreen, scrollPosition, viewRect); for (int i = 0; i < GlobalVars.Instance.snipets.Count; i++) { Rect position = new Rect(viewRect.x, viewRect.y + num, 18f, 18f); if (GlobalVars.Instance.snipets[i].likeOrDislike == 1) { TextureUtil.DrawTexture(position, GlobalVars.Instance.iconThumbUp, ScaleMode.StretchToFill); } else { TextureUtil.DrawTexture(position, GlobalVars.Instance.iconThumbDn, ScaleMode.StretchToFill); } Vector2 pos2 = new Vector2(viewRect.x + 30f, viewRect.y + num); LabelUtil.TextOut(pos2, "[" + GlobalVars.Instance.snipets[i].nickNameCmt + "]", "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); GUIStyle style = GUI.skin.GetStyle("MiniLabel"); float num2 = style.CalcHeight(new GUIContent(GlobalVars.Instance.snipets[i].cmt), viewRect.width - 130f); GUI.Label(new Rect(viewRect.x + 130f, viewRect.y + num, viewRect.width - 130f, num2), GlobalVars.Instance.snipets[i].cmt, "MiniLabel"); num = ((!(num2 <= 20f)) ? (num + (num2 + 4f)) : (num + 20f)); } rectHeight = num; GUI.EndScrollView(); if (GlobalVars.Instance.totalComments > 5 && GlobalVars.Instance.snipets.Count < GlobalVars.Instance.totalComments) { Vector2 pos3 = new Vector2((crdOutline2.x + crdOutline2.width) / 2f, crdOutline2.y + crdOutline2.height - 25f); LabelUtil.TextOut(pos3, StringMgr.Instance.Get("MORE"), "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperCenter); Vector2 vector = LabelUtil.CalcLength("MiniLabel", StringMgr.Instance.Get("MORE")); if (GlobalVars.Instance.MyButton(new Rect(pos3.x + vector.x, pos3.y, 22f, 22f), string.Empty, "BtnArrowDn")) { CSNetManager.Instance.Sock.SendCS_MORE_COMMENT_REQ(reg.Map, GlobalVars.Instance.snipets[GlobalVars.Instance.snipets.Count - 1].cmtSeq); } } DoBuyHow(); bool flag = DoPrice(); string text = StringMgr.Instance.Get("DOWNLOAD_FEE") + " : " + downloadFee.ToString(); LabelUtil.TextOut(crdPrice, text, "MidLabel", GlobalVars.Instance.txtMainColor, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); Rect rc = new Rect(size.x - 50f, 10f, 34f, 34f); if (GlobalVars.Instance.MyButton(rc, string.Empty, "BtnClose") || GlobalVars.Instance.IsEscapePressed()) { result = true; } Rect rc2 = new Rect(size.x - 187f, size.y - 44f, 176f, 34f); GUIContent content = new GUIContent(StringMgr.Instance.Get("DOWNLOAD").ToUpper(), GlobalVars.Instance.iconDisk); if (GlobalVars.Instance.MyButton3(rc2, content, "BtnAction")) { if (flag) { result = true; CSNetManager.Instance.Sock.SendCS_DOWNLOAD_MAP_REQ(reg.Map, (int)buyHow); } else { string arg = string.Empty; switch (buyHow) { case Good.BUY_HOW.GENERAL_POINT: arg = StringMgr.Instance.Get("GENERAL_POINT"); break; case Good.BUY_HOW.BRICK_POINT: arg = StringMgr.Instance.Get("BRICK_POINT"); break; case Good.BUY_HOW.CASH_POINT: arg = TokenManager.Instance.GetTokenString(); break; } string msg = string.Format(StringMgr.Instance.Get("MORE_POINT_NEED_TO_SAVE_MAP"), arg); MessageBoxMgr.Instance.AddMessage(msg); } } GUI.skin = skin; if (!ContextMenuManager.Instance.IsPopup) { WindowUtil.EatEvent(); } return(result); }
public void CanGetUtc() { var currentDateTimeLocal = new DateTimeLocal("2015-10-14 22:54","Pacific Standard Time"); Assert.That(currentDateTimeLocal.Utc, Is.EqualTo(new DateTime(2015, 10, 15, 5, 54, 0, DateTimeKind.Utc))); }
private void PrintMapInfo(RegMap reg) { Color txtMainColor = GlobalVars.Instance.txtMainColor; LabelUtil.TextOut(crdMapAliasVal, reg.Alias, "SubTitleLabel", txtMainColor, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); LabelUtil.TextOut(crdDeveloperVal, StringMgr.Instance.Get("DEVELOPER") + " : " + reg.Developer, "SubTitleLabel", txtMainColor, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperRight); LabelUtil.TextOut(crdMapAliasLabel, StringMgr.Instance.Get("VERSIONINFO") + string.Empty + StringMgr.Instance.Get("MAP_VERSION") + " : " + reg.Version, "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); LabelUtil.TextOut(crdLastModifiedLabel, StringMgr.Instance.Get("LAST_MODIFIED_DATE") + " : " + DateTimeLocal.ToString(reg.RegisteredDate), "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); LabelUtil.TextOut(crdSupportModeLabel, StringMgr.Instance.Get("SUPPORT_MODE"), "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); TextureUtil.DrawTexture(crdThumbUp, GlobalVars.Instance.iconThumbUp, ScaleMode.StretchToFill); LabelUtil.TextOut(new Vector2(crdThumbUp.x + 30f, crdThumbUp.y), reg.Likes.ToString(), "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); TextureUtil.DrawTexture(crdThumbDn, GlobalVars.Instance.iconThumbDn, ScaleMode.StretchToFill); LabelUtil.TextOut(new Vector2(crdThumbDn.x + 30f, crdThumbDn.y), reg.DisLikes.ToString(), "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); TextureUtil.DrawTexture(crdSave, GlobalVars.Instance.iconSave, ScaleMode.StretchToFill); LabelUtil.TextOut(new Vector2(crdSave.x + 30f, crdSave.y), reg.DownloadCount.ToString(), "MiniLabel", Color.white, new Color(0f, 0f, 0f, 0f), TextAnchor.UpperLeft); }
private void PrintMapInfo() { GUI.Box(crdMapInfoBox, string.Empty, "BoxSunken"); if (userMap != null) { LabelUtil.TextOut(crdAlias, userMap.Alias, "Label", Color.white, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); LabelUtil.TextOut(crdDeveloper, StringMgr.Instance.Get("DEVELOPER_IS") + " " + MyInfoManager.Instance.Nickname, "MiniLabel", Color.white, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); LabelUtil.TextOut(crdLastModified, StringMgr.Instance.Get("LAST_MODIFIED_DATE") + " " + DateTimeLocal.ToString(userMap.LastModified), "MiniLabel", Color.white, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); } else if (regMap != null) { LabelUtil.TextOut(crdAlias, regMap.Alias, "Label", Color.white, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); LabelUtil.TextOut(crdDeveloper, StringMgr.Instance.Get("DEVELOPER_IS") + " " + regMap.Developer, "MiniLabel", Color.white, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); LabelUtil.TextOut(crdLastModified, StringMgr.Instance.Get("REGISTERED_DATE") + " " + DateTimeLocal.ToString(regMap.RegisteredDate), "MiniLabel", Color.white, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); LabelUtil.TextOut(crdPossibleMode, StringMgr.Instance.Get("POSSIBLE_MODE"), "MiniLabel", Color.white, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); string text = Room.ModeMask2String(regMap.ModeMask); LabelUtil.TextOut(crdModeLT, text, "MiniLabel", Color.white, GlobalVars.txtEmptyColor, TextAnchor.UpperLeft); } }