fix:1、添加多语言的json文件,修复bug
This commit is contained in:
@@ -98,6 +98,7 @@ namespace RedHotRoast
|
||||
public int[] inlineInitNum;
|
||||
public int[] BalanceExchange;
|
||||
public int[] PotExchange;
|
||||
public int StatementSwitch;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -435,7 +435,7 @@ namespace RedHotRoast
|
||||
/// <returns></returns>
|
||||
public static string Get102Str(decimal currency)
|
||||
{
|
||||
var exchangeRateVO = GetExchangeRateVO();
|
||||
var exchangeRateVO = GetExchangeRateVo();
|
||||
decimal price = currency * (decimal)exchangeRateVO.Multi;
|
||||
return $"{exchangeRateVO.Payicon}{price:N}";
|
||||
}
|
||||
@@ -457,7 +457,7 @@ namespace RedHotRoast
|
||||
|
||||
public static string getPrice(decimal ch)
|
||||
{
|
||||
var exchangeRateVO = GetExchangeRateVO();
|
||||
var exchangeRateVO = GetExchangeRateVo();
|
||||
decimal price = ch * (decimal)exchangeRateVO.Multi;
|
||||
return $"{exchangeRateVO.Payicon}{price:N}";
|
||||
}
|
||||
@@ -465,11 +465,11 @@ namespace RedHotRoast
|
||||
|
||||
public static string ChooseCurrency()
|
||||
{
|
||||
var exchangeRateVO = GetExchangeRateVO();
|
||||
var exchangeRateVO = GetExchangeRateVo();
|
||||
return exchangeRateVO.Payicon;
|
||||
}
|
||||
|
||||
public static ExchangeRate GetExchangeRateVO()
|
||||
public static ExchangeRate GetExchangeRateVo()
|
||||
{
|
||||
var code = GetCurrCountry();
|
||||
var voList = ConfigSystem.GetConfig<ExchangeRate>();
|
||||
@@ -485,7 +485,7 @@ namespace RedHotRoast
|
||||
|
||||
public static float GetExchangeRateMulti()
|
||||
{
|
||||
return GetExchangeRateVO().Multi;
|
||||
return GetExchangeRateVo().Multi;
|
||||
}
|
||||
|
||||
public static string GetCurrCountry()
|
||||
@@ -1235,6 +1235,12 @@ namespace RedHotRoast
|
||||
if (ShowStatementViewCount > 0) return;
|
||||
if (!IsGiftSwitch()) return;
|
||||
|
||||
if (ConfigSystem.GetCommonConf().StatementSwitch == 0)
|
||||
{
|
||||
HallManager.Instance.openTipsTimes++;
|
||||
ShowStatementViewCount++;
|
||||
return;
|
||||
}
|
||||
ShowStatementViewCount++;
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.StatementViewUI_Open);
|
||||
}
|
||||
@@ -1398,7 +1404,7 @@ namespace RedHotRoast
|
||||
{
|
||||
if (!IsConnect())
|
||||
{
|
||||
ShowTips("The network connection is abnormal.");
|
||||
ShowTips("no_network", true);
|
||||
}
|
||||
|
||||
return isCanCloseResultView;
|
||||
@@ -1505,12 +1511,12 @@ namespace RedHotRoast
|
||||
try
|
||||
{
|
||||
OpenBrowser.OpenURL(url);
|
||||
GameHelper.ShowTips("try_send", true);
|
||||
ShowTips("try_send", true);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Debug.LogError("打开邮箱失败:" + ex.Message);
|
||||
GameHelper.ShowTips("send_failed", true);
|
||||
// Debug.LogError("打开邮箱失败:" + ex.Message);
|
||||
// GameHelper.ShowTips("send_failed", true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1851,7 +1857,7 @@ namespace RedHotRoast
|
||||
#else
|
||||
Debug.LogWarning("当前平台不支持复制到剪贴板功能");
|
||||
#endif
|
||||
GameHelper.ShowTips("Copy Succeed");
|
||||
ShowTips("copy_succeed", true);
|
||||
}
|
||||
|
||||
public static string GetPriceInt(decimal ch)
|
||||
|
||||
@@ -82,7 +82,6 @@
|
||||
"Special_level": "Special level",
|
||||
"VIP_level": "VIP level",
|
||||
"day": "Day {0}",
|
||||
|
||||
"permission_vip": "Free access to VIP levels",
|
||||
"permission_slv": "Free access to Special levels",
|
||||
"permission_reward": "Double Chest Coin Rewards",
|
||||
@@ -92,9 +91,36 @@
|
||||
"permission_unlock_album":"Unlock the Secret Album and enjoy exclusive resources",
|
||||
"permission_unlock_live": "Unlock the live stream and enjoy exclusive resources",
|
||||
"permission_unlock_chat": "Unlock the Assitant",
|
||||
"permission_banner_ads": "Remove banner ads"
|
||||
"permission_banner_ads": "Remove banner ads",
|
||||
"copy_succeed": "Copy Succeed",
|
||||
"delete_arrow": "You can delete any one of the arrows!",
|
||||
"Complete_tips": "Complete level {0} to unlock.",
|
||||
"failed_save": "Failed to save information., please try again!",
|
||||
"redeem_success": "Claim X{0}",
|
||||
"free_revive": "Free Revive",
|
||||
"revive": "Revive",
|
||||
"get_card": "GET GIFT CARD",
|
||||
"saveingpot_get": "You will get the {0} for 90 days",
|
||||
"saveingpot_claimed": "{0} directly to your gift card",
|
||||
"use_item": "Use Item",
|
||||
"congratulations": "congratulations",
|
||||
"exchange_success": " Successful exchange"
|
||||
},
|
||||
"pt": {
|
||||
"delete_arrow": "Você pode excluir qualquer uma das setas!",
|
||||
"copy_succeed": "Cópia realizada com sucesso",
|
||||
"Complete_tips": "Conclua o nível {0} para desbloquear.",
|
||||
"failed_save": "Falha ao salvar as informações, tente novamente!",
|
||||
"redeem_success": "Resgatar X{0}",
|
||||
"free_revive": "Reviver grátis",
|
||||
"revive": "Reviver",
|
||||
"get_card": "OBTER CARTÃO DE PRESENTE",
|
||||
"saveingpot_get": "Você receberá {0} por 90 dias",
|
||||
"saveingpot_claimed": "{0} será enviado diretamente para seu cartão de presente",
|
||||
"use_item": "Usar item",
|
||||
"congratulations": "Parabéns",
|
||||
"exchange_success": "Troca bem-sucedida",
|
||||
|
||||
"no_ad_count": "Seus anúncios estão acabando!",
|
||||
"purchase_succ": "Sua compra foi concluída com sucesso!",
|
||||
"no_enough_gold": "Você não tem ouro suficiente!",
|
||||
@@ -190,6 +216,20 @@
|
||||
"permission_banner_ads": "Remover anúncios em banner"
|
||||
},
|
||||
"fr": {
|
||||
"copy_succeed": "Copie réussie",
|
||||
"delete_arrow": "Vous pouvez supprimer n'importe quelle flèche !",
|
||||
"Complete_tips": "Terminez le niveau {0} pour débloquer.",
|
||||
"failed_save": "Échec de l'enregistrement, veuillez réessayer !",
|
||||
"redeem_success": "Réclamer X{0}",
|
||||
"free_revive": "Réanimation gratuite",
|
||||
"revive": "Réanimer",
|
||||
"get_card": "OBTENIR LA CARTE CADEAU",
|
||||
"saveingpot_get": "Vous obtiendrez {0} pendant 90 jours",
|
||||
"saveingpot_claimed": "{0} sera directement versé sur votre carte cadeau",
|
||||
"use_item": "Utiliser l'objet",
|
||||
"congratulations": "Félicitations",
|
||||
"exchange_success": "Échange réussie",
|
||||
|
||||
"no_ad_count": "Vous n’avez presque plus de publicités !",
|
||||
"purchase_succ": "Votre achat a été effectué avec succès !",
|
||||
"no_enough_gold": "Vous n’avez pas assez d’or !",
|
||||
@@ -285,6 +325,20 @@
|
||||
"permission_banner_ads": "Supprimer les bannières publicitaires"
|
||||
},
|
||||
"de": {
|
||||
"copy_succeed": "Kopieren erfolgreich",
|
||||
"delete_arrow": "Du kannst einen beliebigen Pfeil löschen!",
|
||||
"Complete_tips": "Schließe Level {0} zum Freischalten ab.",
|
||||
"failed_save": "Speichern fehlgeschlagen, bitte erneut versuchen!",
|
||||
"redeem_success": "X{0} einlösen",
|
||||
"free_revive": "Kostenlose Wiederbelebung",
|
||||
"revive": "Wiederbeleben",
|
||||
"get_card": "GESCHENKKARTE ERHALTEN",
|
||||
"saveingpot_get": "Du erhältst {0} für 90 Tage",
|
||||
"saveingpot_claimed": "{0} wird direkt auf deine Geschenkkarte gutgeschrieben",
|
||||
"use_item": "Nutzung des Items",
|
||||
"congratulations": "Glückwunsch",
|
||||
"exchange_success": "Erfolgreiche Tausch",
|
||||
|
||||
"no_ad_count": "Ihre Anzeigen gehen zur Neige!",
|
||||
"purchase_succ": "Ihr Kauf war erfolgreich!",
|
||||
"no_enough_gold": "Sie haben nicht genug Gold!",
|
||||
@@ -380,6 +434,20 @@
|
||||
"permission_banner_ads": "Bannerwerbung entfernen"
|
||||
},
|
||||
"es": {
|
||||
"copy_succeed": "Copia realizada con éxito",
|
||||
"delete_arrow": "Puedes borrar cualquiera de las flechas!",
|
||||
"Complete_tips": "Completa el nivel {0} para desbloquear.",
|
||||
"failed_save": "Error al guardar la información, inténtalo de nuevo!",
|
||||
"redeem_success": "Reclamar X{0}",
|
||||
"free_revive": "Revivir gratis",
|
||||
"revive": "Revivir",
|
||||
"get_card": "OBTENER TARJETA DE REGALO",
|
||||
"saveingpot_get": "Recibirás {0} durante 90 días",
|
||||
"saveingpot_claimed": "{0} se enviará directamente a tu tarjeta de regalo",
|
||||
"use_item": "Usar objeto",
|
||||
"congratulations": "Felicidades",
|
||||
"exchange_success": "Intercambio exitoso",
|
||||
|
||||
"no_ad_count": "¡Tus anuncios están por agotarse!",
|
||||
"purchase_succ": "¡Tu compra se realizó con éxito!",
|
||||
"no_enough_gold": "¡No tienes suficiente oro!",
|
||||
@@ -475,6 +543,20 @@
|
||||
"permission_banner_ads": "Eliminar los banners publicitarios"
|
||||
},
|
||||
"ja": {
|
||||
"copy_succeed": "コピー完了",
|
||||
"delete_arrow": "矢印を1つ削除できます!",
|
||||
"Complete_tips": "レベル{0}をクリアすると解放されます。",
|
||||
"failed_save": "情報の保存に失敗しました。再度お試しください!",
|
||||
"redeem_success": "X{0}を受け取る",
|
||||
"free_revive": "無料復活",
|
||||
"revive": "復活",
|
||||
"get_card": "ギフトカードを取得",
|
||||
"saveingpot_get": "{0}を90日間獲得できます",
|
||||
"saveingpot_claimed": "{0}がギフトカードに直接届きます",
|
||||
"use_item": "アイテムを使用する",
|
||||
"congratulations": "おめでとうございます",
|
||||
"exchange_success": "交換完了",
|
||||
|
||||
"no_ad_count": "広告の回数が少なくなっています!",
|
||||
"purchase_succ": "購入が完了しました!",
|
||||
"no_enough_gold": "ゴールドが不足しています!",
|
||||
@@ -570,6 +652,20 @@
|
||||
"permission_banner_ads": "バナー広告を削除"
|
||||
},
|
||||
"ko": {
|
||||
"copy_succeed": "복사 완료",
|
||||
"delete_arrow": "화살표 하나를 삭제할 수 있습니다!",
|
||||
"Complete_tips": "{0} 레벨을 완료하면 잠금 해제됩니다.",
|
||||
"failed_save": "정보 저장에 실패했습니다. 다시 시도해 주세요!",
|
||||
"redeem_success": "X{0} 수령",
|
||||
"free_revive": "무료 부활",
|
||||
"revive": "부활",
|
||||
"get_card": "기프트 카드 받기",
|
||||
"saveingpot_get": "{0}을 90일간 획득합니다",
|
||||
"saveingpot_claimed": "{0}이 기프트 카드로 직접 지급됩니다",
|
||||
"use_item": "아이템 사용하기",
|
||||
"congratulations": "축하합니다",
|
||||
"exchange_success": "교환 성공",
|
||||
|
||||
"no_ad_count": "광고 횟수가 얼마 남지 않았어요!",
|
||||
"purchase_succ": "구매가 완료되었습니다!",
|
||||
"no_enough_gold": "골드가 부족합니다!",
|
||||
@@ -665,6 +761,20 @@
|
||||
"permission_banner_ads": "배너 광고 제거"
|
||||
},
|
||||
"ru": {
|
||||
"copy_succeed": "Копирование выполнено",
|
||||
"delete_arrow": "Можно удалить любую стрелку!",
|
||||
"Complete_tips": "Пройдите уровень {0}, чтобы разблокировать.",
|
||||
"failed_save": "Не удалось сохранить данные, попробуйте снова!",
|
||||
"redeem_success": "Забрать X{0}",
|
||||
"free_revive": "Бесплатное воскрешение",
|
||||
"revive": "Воскреснуть",
|
||||
"get_card": "Получить подарочную карту",
|
||||
"saveingpot_get": "Вы получите {0} на 90 дней",
|
||||
"saveingpot_claimed": "{0} сразу поступит на подарочную карту",
|
||||
"use_item": "Использовать предмет",
|
||||
"congratulations": "Поздравляем",
|
||||
"exchange_success": "Успешная обмен",
|
||||
|
||||
"no_ad_count": "У вас почти закончились рекламные показы!",
|
||||
"purchase_succ": "Покупка успешно завершена!",
|
||||
"no_enough_gold": "У вас недостаточно золота!",
|
||||
@@ -758,28 +868,33 @@
|
||||
"permission_unlock_live": "Разблокировать прямой эфир и наслаждаться эксклюзивными ресурсами",
|
||||
"permission_unlock_chat": "Разблокировать помощника",
|
||||
"permission_banner_ads": "Удалить баннерную рекламу"
|
||||
},
|
||||
"id": {
|
||||
"copy_succeed": "कॉपी सफल",
|
||||
"not_ads": "विज्ञापन अभी तैयार नहीं है!",
|
||||
"try_send": "ईमेल भेज रहा है…",
|
||||
"no_network": "आपका इंटरनेट कनेक्शन अस्थिर है!",
|
||||
"delete_arrow": "आप कोई भी तीर हटा सकते हैं!",
|
||||
"Complete_tips": "अनलॉक करने के लिए स्तर {0} पूरा करें।",
|
||||
"empty_account": "कृपया सही खाता जानकारी दर्ज करें!",
|
||||
"empty_account1": "कृपया सही खाता जानकारी दर्ज करें{0}",
|
||||
"empty_input": "इनपुट खाली नहीं हो सकता!",
|
||||
"failed_save": "जानकारी सहेजने में विफल, कृपया पुनः प्रयास करें!",
|
||||
"un_lock": "जल्द अनलॉक होगा",
|
||||
"exchange_succ": "दावा करें({0})",
|
||||
"redeem_success": "X{0} दावा करें",
|
||||
"free_revive": "मुफ्त पुनर्जीवन",
|
||||
"revive": "पुनर्जीवित करें",
|
||||
"need_lv_text": "स्तर {0}",
|
||||
"owner_ad": "स्वामी विज्ञापन: {0}",
|
||||
"go": "जाएं",
|
||||
"claim": "दावा करें",
|
||||
"claimed": "दावा किया गया",
|
||||
"get_card": "उपहार कार्ड प्राप्त करें",
|
||||
"saveingpot_get": "आपको {0} 90 दिनों के लिए मिलेगा",
|
||||
"saveingpot_claimed": "{0} सीधे आपके उपहार कार्ड पर मिल जाएगा",
|
||||
"use_item": "वस्तु उपयोग करेंं",
|
||||
"congratulations": "बधाई हो",
|
||||
"exchange_success": "विनिमय सफल"
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -19,8 +19,10 @@ public class LoveLegendRoot : MonoBehaviour
|
||||
OnLauncher();
|
||||
TrackKit.TrackLoginFunnel(LoginFunnelEventType.Bootstrap);
|
||||
|
||||
#if !GAME_RELEASE
|
||||
BuildGMTool();
|
||||
NetGmTool.Instance.Init();
|
||||
#endif
|
||||
}
|
||||
|
||||
public static void OnLauncher()
|
||||
@@ -90,18 +92,11 @@ public class LoveLegendRoot : MonoBehaviour
|
||||
{
|
||||
// ErrorLogKit.Send("error", "客户端日志上传", "GM工具点击测试",SuperApplication.Instance.attribution);
|
||||
|
||||
}));
|
||||
GMTool.Instance.AddItem(new GMToolItem(GUIType.Button,
|
||||
() => "广告ID信息打印",
|
||||
s =>
|
||||
{
|
||||
// adInfoLabel += $"Max token: {MaxADKit.SDKKey} \n 激励广告Id: {MaxADKit.rewardedADUnitID} \n 插屏广告Id: {MaxADKit.interstitialADUnitID} \n";
|
||||
|
||||
}));
|
||||
GMTool.Instance.AddItem(new GMToolItem(GUIType.Button, () => "关卡+1",
|
||||
s =>
|
||||
{
|
||||
DataMgr.GameLevel.Value = DataMgr.GameLevel.Value + 1;
|
||||
DataMgr.GameLevel.Value += 1;
|
||||
}));
|
||||
// 输入设置等级
|
||||
GMTool.Instance.AddItem(new GMToolItem(
|
||||
@@ -123,9 +118,6 @@ public class LoveLegendRoot : MonoBehaviour
|
||||
}
|
||||
}
|
||||
));
|
||||
GMTool.Instance.AddItem(new GMToolItem(GUIType.Label, () => $"{DataMgr.Ticket} 类型测试"));
|
||||
// 来显示 adInfoLabel 的内容
|
||||
GMTool.Instance.AddItem(new GMToolItem(GUIType.Label, () => adInfoLabel));
|
||||
GMTool.Instance.AddItem(new GMToolItem(
|
||||
GUIType.InputField,
|
||||
() => "设置等级",
|
||||
@@ -145,6 +137,15 @@ public class LoveLegendRoot : MonoBehaviour
|
||||
}
|
||||
}
|
||||
));
|
||||
|
||||
GMTool.Instance.AddItem(new GMToolItem(GUIType.Button,
|
||||
() => "打开 跳过广告",
|
||||
s =>
|
||||
{
|
||||
adInfoLabel += "跳过广告开关, 已打开";
|
||||
MaxADKit.IsOpenAd = true;
|
||||
}));
|
||||
GMTool.Instance.AddItem(new GMToolItem(GUIType.Label, () => $"{DataMgr.Ticket} 类型测试"));
|
||||
// 来显示 adInfoLabel 的内容
|
||||
GMTool.Instance.AddItem(new GMToolItem(GUIType.Label, () => adInfoLabel));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace RedHotRoast
|
||||
uiInfo.layerType = UILayerType.Bottom;
|
||||
uiInfo.isNeedOpenAnim = false;
|
||||
uiInfo.isNeedCloseAnim = false;
|
||||
uiInfo.isNeedUIMask = true;
|
||||
uiInfo.isNeedUIMask = false;
|
||||
uiInfo.isTickUpdate = true;
|
||||
}
|
||||
|
||||
@@ -386,8 +386,6 @@ namespace RedHotRoast
|
||||
|
||||
GameHelper.IsShowFirstReward();
|
||||
|
||||
// GameHelper.IsShowPettyReward();
|
||||
|
||||
GameHelper.ShowStatementView();
|
||||
}
|
||||
|
||||
@@ -410,6 +408,7 @@ namespace RedHotRoast
|
||||
{
|
||||
decimal coin = DataMgr.Ticket.Value;
|
||||
|
||||
coin *= (decimal)GameHelper.GetExchangeRateVo().Multi;
|
||||
if (ui.com_money is com_money comMoney) comMoney.text_gold.text = coin.ToString("0.00");
|
||||
}
|
||||
|
||||
@@ -600,7 +599,8 @@ namespace RedHotRoast
|
||||
{
|
||||
if (ui.com_money is com_money btnMoney)
|
||||
{
|
||||
btnMoney.text_gold.text = DataMgr.Ticket.Value.ToString("0.00");
|
||||
// btnMoney.text_gold.text = DataMgr.Ticket.Value.ToString("0.00");
|
||||
Set102();
|
||||
btnMoney.SetClick(PopMakeup);
|
||||
}
|
||||
}
|
||||
@@ -608,6 +608,11 @@ namespace RedHotRoast
|
||||
private void PopMakeup()
|
||||
{
|
||||
var makeupTaskData = DataMgr.MakeupTaskHistory.Value.Last();
|
||||
Debug.Log($"makeupTaskData============{DataMgr.MakeupTaskHistory.Value.Count} {makeupTaskData.tableId}");
|
||||
if (DataMgr.MakeupTaskHistory.Value.Count > 0 && makeupTaskData.tableId <= 0)
|
||||
{
|
||||
makeupTaskData.tableId = DataMgr.MakeupTaskHistory.Value.Count;
|
||||
}
|
||||
var vo = MakeupModel.GetData(makeupTaskData.tableId);
|
||||
if (vo == null)
|
||||
{
|
||||
@@ -653,7 +658,23 @@ namespace RedHotRoast
|
||||
|
||||
ui.btn_signin.SetClick(() => { uiCtrlDispatcher.Dispatch(UICtrlMsg.SignInUI_Open); });
|
||||
|
||||
ui.btn_statement.SetClick(() => { uiCtrlDispatcher.Dispatch(UICtrlMsg.StatementViewUI_Open); });
|
||||
|
||||
if (ConfigSystem.GetCommonConf().StatementSwitch == 1)
|
||||
{
|
||||
|
||||
ui.btn_statement.SetClick(() =>
|
||||
{
|
||||
uiCtrlDispatcher.Dispatch(UICtrlMsg.StatementViewUI_Open);
|
||||
});
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
HallManager.Instance.openTipsTimes++;
|
||||
ui.btn_statement.visible = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
ui.btn_saveingpot.SetClick(() => { uiCtrlDispatcher.Dispatch(UICtrlMsg.SaveingPotUI_Open); });
|
||||
|
||||
@@ -1270,7 +1291,7 @@ namespace RedHotRoast
|
||||
else if (type == 1)
|
||||
{
|
||||
_isDeleteMode = !_isDeleteMode;
|
||||
GameHelper.ShowTips("You can delete any one of the arrows!");
|
||||
GameHelper.ShowTips("delete_arrow", true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1479,6 +1500,7 @@ namespace RedHotRoast
|
||||
}
|
||||
else
|
||||
{
|
||||
ReleaseArrowOccupied(clickArrow);
|
||||
MoveToDisappear(clickArrow);
|
||||
}
|
||||
}
|
||||
@@ -1863,7 +1885,7 @@ namespace RedHotRoast
|
||||
if (CheckIsOutOfBounds(tailPos, arrow.finalMoveDir))
|
||||
{
|
||||
// ========== 以下销毁逻辑和原代码保持一致 ==========
|
||||
ReleaseArrowOccupied(arrow);
|
||||
// ReleaseArrowOccupied(arrow);
|
||||
|
||||
foreach (var line in arrow.lineUnits)
|
||||
{
|
||||
@@ -1972,7 +1994,6 @@ namespace RedHotRoast
|
||||
/// </summary>
|
||||
private void DisappearLineGetReward()
|
||||
{
|
||||
|
||||
if (!GameHelper.IsGiftSwitch()) return;
|
||||
|
||||
bool isGet = false;
|
||||
@@ -2007,8 +2028,10 @@ namespace RedHotRoast
|
||||
var start = fguiPosition;
|
||||
var end = GameHelper.GetUICenterPosition(ui.com_money.GetChild("text_gold"));
|
||||
float[] cash_array = GameHelper.GetRewardValue(0);
|
||||
Debug.Log($"小额奖励:{cash_array[0]}");
|
||||
var rewardSingleData = new RewardSingleData(102, (decimal)cash_array[0], RewardOrigin.AdTask)
|
||||
var littleReward = GameHelper.GetExchangeRateVo().Multi * cash_array[0];
|
||||
Debug.Log($"小额奖励:{cash_array[0]} {littleReward}");
|
||||
|
||||
var rewardSingleData = new RewardSingleData(102, (decimal)littleReward, RewardOrigin.AdTask)
|
||||
{
|
||||
startPosition = start,
|
||||
endPosition = new Vector2(end.x - 135, end.y - 135)
|
||||
|
||||
@@ -117,9 +117,9 @@ namespace RedHotRoast
|
||||
{
|
||||
AwardNum = 20;
|
||||
AwardRate = 2;
|
||||
ui.btn_claim.title = "Claim(" + AwardNum + ")";
|
||||
ui.btn_claim.title = Language.GetContentParams("exchange_succ", AwardNum);
|
||||
}
|
||||
else ui.btn_claim.title = "Claim(" + GameHelper.getChString((decimal)AwardNum) + ")";
|
||||
else ui.btn_claim.title = Language.GetContentParams("exchange_succ", GameHelper.getChString((decimal)AwardNum));
|
||||
if (IsWin)
|
||||
{
|
||||
if (PlayerPrefs.GetFloat("soundVolume", 1.0f) > 0f)
|
||||
@@ -155,7 +155,7 @@ namespace RedHotRoast
|
||||
|
||||
|
||||
((btn_claim)ui.com_arrow_end.btn_watchAd).state.selectedIndex = DataMgr.ArrowResultLevel.Value == 1 ? 1 : 0;
|
||||
((btn_claim)ui.com_arrow_end.btn_watchAd).title = DataMgr.ArrowResultLevel.Value == 1 ? "Free Revive" : "Revive";
|
||||
((btn_claim)ui.com_arrow_end.btn_watchAd).title = DataMgr.ArrowResultLevel.Value == 1 ? Language.GetContent("free_revive") : Language.GetContent("revive");
|
||||
|
||||
ui.com_arrow_end.btn_watchAd.SetClick(() =>
|
||||
{
|
||||
@@ -191,7 +191,7 @@ namespace RedHotRoast
|
||||
});
|
||||
|
||||
|
||||
ui.btn_mult.GetChild("title").text = "Claim X" + AwardRate;
|
||||
ui.btn_mult.GetChild("title").text = Language.GetContentParams(" redeem_success", AwardRate);
|
||||
|
||||
if (SuccessDatas.IsH5Reward)
|
||||
ui.com_ch.visible = false;
|
||||
@@ -235,7 +235,7 @@ namespace RedHotRoast
|
||||
}
|
||||
}
|
||||
ui.btn_gold.GetChild("text_gold").text = $"{DataMgr.Coin.Value:N0}";
|
||||
ui.top_money.GetChild("text_gold").text = DataMgr.Ticket.Value.ToString();
|
||||
ui.top_money.GetChild("text_gold").text = GameHelper.Get102Str(DataMgr.Ticket.Value);
|
||||
ui.btn_mult.SetClick(() =>
|
||||
{
|
||||
if (!GameHelper.GetCloseResult())
|
||||
@@ -311,7 +311,7 @@ namespace RedHotRoast
|
||||
{
|
||||
curr_type = 102;
|
||||
end_ = GameHelper.GetUICenterPosition(ui.top_money, true);
|
||||
|
||||
awardNum *= GameHelper.GetExchangeRateVo().Multi;
|
||||
}
|
||||
var rewardSingleData = new RewardSingleData(curr_type, (decimal)awardNum, RewardOrigin.Play)
|
||||
{
|
||||
|
||||
@@ -119,6 +119,9 @@ namespace RedHotRoast
|
||||
|
||||
ui.text_chdate3.text = GameHelper.getDesByKey("makeup_11");
|
||||
|
||||
// ui.text_rate1.text = GameHelper.GetExchangeRateVo().Payicon + " 1";
|
||||
// ui.text_rate.text = GameHelper.GetExchangeRateVo().Payicon + " 1";
|
||||
|
||||
updateSpeedCD();
|
||||
InitView();
|
||||
initButtom();
|
||||
@@ -211,17 +214,17 @@ namespace RedHotRoast
|
||||
ui.text_chneedlv.text = str;
|
||||
ui.lab_lv_need_des.SetVar("num", ConfigSystem.GetCommonConf().ExpiryUnlock.ToString()).FlushVars();
|
||||
Debug.Log(ConfigSystem.GetCommonConf().ExpiryUnlock);
|
||||
str = string.Format("Owner ADs: {0}/{1}", makeupTaskData.LvVideoCount, ConfigSystem.GetCommonConf().ExpiryUnlock);
|
||||
ui.lab_ads.text = str;
|
||||
str = $"{makeupTaskData.LvVideoCount}/{ConfigSystem.GetCommonConf().ExpiryUnlock}";
|
||||
ui.lab_ads.text = Language.GetContentParams("owner_ad", str);
|
||||
ui.text_nowch.text = GameHelper.Get102Str(DataMgr.Ticket.Value);
|
||||
ui.text_ch_title.text = "Level " + vo.levels_need;
|
||||
ui.text_ch_title.text = Language.GetContentParams("need_lv_text", vo.levels_need);
|
||||
if (GameHelper.IsGiftSwitch() && ConfigSystem.GetCommonConf().PiggyBankSwitch == 1)
|
||||
{
|
||||
(ui.btn_watchad.GetChild("img_saveingpot") as GImage).visible = true;
|
||||
}
|
||||
if (GameHelper.GetLevel() <= vo.levels_need)
|
||||
{
|
||||
ui.btn_check_level.title = "Go";
|
||||
ui.btn_check_level.title = Language.GetContentParams("go");
|
||||
if (UIManager.Instance.IsExistUI(UIConst.RainPlayUI))
|
||||
{
|
||||
ui.btn_check_level.SetClick(() =>
|
||||
@@ -315,10 +318,10 @@ namespace RedHotRoast
|
||||
ui.text_chneedlv.text = str;
|
||||
ui.lab_lv_need_des.SetVar("num", ConfigSystem.GetCommonConf().ExpiryUnlock.ToString()).FlushVars();
|
||||
Debug.Log(ConfigSystem.GetCommonConf().ExpiryUnlock);
|
||||
str = string.Format("Owner ADs: {0}/{1}", makeupTaskData.LvVideoCount, ConfigSystem.GetCommonConf().ExpiryUnlock);
|
||||
ui.lab_ads.text = str;
|
||||
str = $"{makeupTaskData.LvVideoCount}/{ ConfigSystem.GetCommonConf().ExpiryUnlock}";
|
||||
ui.lab_ads.text = Language.GetContentParams("owner_ad", str);
|
||||
ui.text_nowch.text = GameHelper.Get102Str(DataMgr.Ticket.Value);
|
||||
ui.text_ch_title.text = "Level " + vo.levels_need;
|
||||
ui.text_ch_title.text = Language.GetContentParams("need_lv_text", vo.levels_need);
|
||||
if (GameHelper.IsGiftSwitch() && ConfigSystem.GetCommonConf().PiggyBankSwitch == 1)
|
||||
{
|
||||
(ui.btn_watchad.GetChild("img_saveingpot") as GImage).visible = true;
|
||||
@@ -326,7 +329,7 @@ namespace RedHotRoast
|
||||
|
||||
if (GameHelper.GetLevel() <= vo.levels_need)
|
||||
{
|
||||
ui.btn_check_level.title = "Go";
|
||||
ui.btn_check_level.title = Language.GetContentParams("go");
|
||||
if (UIManager.Instance.IsExistUI(UIConst.RainPlayUI))
|
||||
{
|
||||
ui.btn_check_level.SetClick(() =>
|
||||
@@ -432,9 +435,9 @@ namespace RedHotRoast
|
||||
now_selectindex = makeupTaskData.tableId - 1;
|
||||
for (int i = 0; i < btn_list.Count; i++)
|
||||
{
|
||||
btn_list[i].text_level0.text = "Level " + makeup_list[i].levels_need;
|
||||
btn_list[i].text_level1.text = "Level " + makeup_list[i].levels_need;
|
||||
btn_list[i].text_level2.text = "Level " + makeup_list[i].levels_need;
|
||||
btn_list[i].text_level0.text = Language.GetContentParams("need_lv_text", makeup_list[i].levels_need);
|
||||
btn_list[i].text_level1.text = Language.GetContentParams("need_lv_text", makeup_list[i].levels_need);
|
||||
btn_list[i].text_level2.text = Language.GetContentParams("need_lv_text", makeup_list[i].levels_need);
|
||||
if (i < ch_index)
|
||||
{
|
||||
btn_list[i].img_check.visible = true;
|
||||
@@ -459,7 +462,8 @@ namespace RedHotRoast
|
||||
int _temp_index = i;
|
||||
btn_list[i].SetClick(() =>
|
||||
{
|
||||
GameHelper.ShowTips("Complete level " + makeup_list[_temp_index].levels_need + " to unlock.");
|
||||
var tips = Language.GetContentParams("Complete_tips", makeup_list[_temp_index].levels_need);
|
||||
GameHelper.ShowTips(tips);
|
||||
});
|
||||
}
|
||||
else
|
||||
@@ -533,27 +537,27 @@ namespace RedHotRoast
|
||||
var account = enter_input.text.Replace(" ", "");
|
||||
if (account == null || account == "")
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information", true);
|
||||
GameHelper.ShowTips("empty_account", true);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!GameHelper.CheckAccountValidly(account))
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information", true);
|
||||
GameHelper.ShowTips("empty_account", true);
|
||||
return;
|
||||
}
|
||||
|
||||
var fname = ui.com_fname.enter_fname.text.Replace(" ", "");
|
||||
if (!GameHelper.CheckNameValidly(fname))
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information", true);
|
||||
GameHelper.ShowTips("empty_account", true);
|
||||
return;
|
||||
}
|
||||
|
||||
var lname = ui.com_lname.enter_lname.text.Replace(" ", "");
|
||||
if (!GameHelper.CheckNameValidly(lname) && !AppConst.isPt())
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information", true);
|
||||
GameHelper.ShowTips("empty_account", true);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -985,7 +989,7 @@ namespace RedHotRoast
|
||||
value += makeupTaskData.rdData[i].coupon_mount;
|
||||
}
|
||||
}
|
||||
ui.lab_mn.text = GameHelper.Get101Str(vo.item_need - value);
|
||||
ui.lab_mn.text = GameHelper.Get102Str(vo.item_need - value);
|
||||
|
||||
ui.list_kicket.itemRenderer = refreshItem;
|
||||
ui.list_kicket.numItems = makeupTaskData.rdData.Count;
|
||||
@@ -1000,12 +1004,12 @@ namespace RedHotRoast
|
||||
if (makeupTaskData.rdData[index].isClaimed)
|
||||
{
|
||||
item.btn_claim.state.selectedIndex = 1;
|
||||
item.btn_claim.title = "Claimed";
|
||||
item.btn_claim.title = Language.GetContentParams("claimed");
|
||||
}
|
||||
else
|
||||
{
|
||||
item.btn_claim.state.selectedIndex = 0;
|
||||
item.btn_claim.title = "Claim";
|
||||
item.btn_claim.title = Language.GetContentParams("claim");
|
||||
}
|
||||
|
||||
item.btn_claim.SetClick(() =>
|
||||
@@ -1039,7 +1043,7 @@ namespace RedHotRoast
|
||||
}
|
||||
|
||||
var vo = MakeupModel.GetData(makeupTaskData.tableId);
|
||||
ui.lab_mn2.text = GameHelper.Get101Str(vo.item_need - value);
|
||||
ui.lab_mn2.text = GameHelper.Get102Str(vo.item_need - value);
|
||||
ui.lab_ticket.text = GameHelper.GetPriceInt(makeupTaskData.lastRdData.coupon_mount);
|
||||
ui.lab_code.text = makeupTaskData.lastRdData.code;
|
||||
|
||||
@@ -1207,7 +1211,7 @@ namespace RedHotRoast
|
||||
btn_watchad.can_buy.selectedIndex = 1;
|
||||
btn_watchad.btn_text.text = CommonHelper.TimeFormat(SaveData.GetSaveObject()._watch_ad_cd - Convert.ToInt32(GameHelper.GetNowTime()), CountDownType.Hour);
|
||||
HallManager.Instance.UpdateSecondEvent += upLvWatchAdsBtn;
|
||||
// makeupTaskData.cash_time = GameHelper.GetNowTime() + ConfigSystem.GetCommonConf().BalanceExpired * 3600;
|
||||
// makeupTaskData.cash_time = GameHelper.GetNowTime() + ConfigSystem.GetConfig<CommonModel>().BalanceExpired * 3600;
|
||||
InitView();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -39,7 +39,6 @@ namespace RedHotRoast
|
||||
|
||||
protected override void OnClose()
|
||||
{
|
||||
SaveData.SaveDataFunc();
|
||||
|
||||
GameDispatcher.Instance.Dispatch(GameMsg.StopArrowTouch, true);
|
||||
|
||||
@@ -90,8 +89,8 @@ namespace RedHotRoast
|
||||
{
|
||||
_mLastState = DataMgr.PettyState.Value;
|
||||
// Debug.Log($"PettyState============: {DataMgr.PettyState.Value}");
|
||||
var num = ConfigSystem.GetCommonConf().SmallReward;
|
||||
ui.com_get_panel.text_reward.text = $"{GameHelper.Get102Str(num)} USD";
|
||||
var num = GameHelper.GetCommonModel().SmallReward;
|
||||
ui.com_get_panel.text_reward.text = $"{GameHelper.GetExchangeRateVo().Payicon}{GameHelper.Get102Str(num)}";
|
||||
|
||||
|
||||
ui.com_get_panel.btn_get.SetClick(GotoEnterAccount);
|
||||
@@ -179,27 +178,27 @@ namespace RedHotRoast
|
||||
var account = ui.com_account.com_email.enter_email.text.Replace(" ", "");
|
||||
if (account == "")
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information", true);
|
||||
GameHelper.ShowTips("empty_account", true);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!GameHelper.CheckAccountValidly(account))
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information", true);
|
||||
GameHelper.ShowTips("empty_account", true);
|
||||
return;
|
||||
}
|
||||
|
||||
var fname = ui.com_account.com_first_name.enter_first_name.text.Replace(" ", "");
|
||||
if (!GameHelper.CheckNameValidly(fname))
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information", true);
|
||||
GameHelper.ShowTips("empty_account", true);
|
||||
return;
|
||||
}
|
||||
|
||||
var lname = ui.com_account.com_last_name.enter_last_name.text.Replace(" ", "");
|
||||
if (!GameHelper.CheckNameValidly(lname) && !AppConst.isPt())
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information", true);
|
||||
GameHelper.ShowTips("empty_account", true);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -238,7 +237,7 @@ namespace RedHotRoast
|
||||
}
|
||||
else
|
||||
{
|
||||
GameHelper.ShowTips("Failed to save information., please try again");
|
||||
GameHelper.ShowTips("failed_save", true);
|
||||
ui.com_second_confirm.btn_confirm.enabled = true;
|
||||
}
|
||||
});
|
||||
@@ -253,13 +252,14 @@ namespace RedHotRoast
|
||||
var pettyAmount = DataMgr.PettyAmount.Value;
|
||||
if (pettyAmount != 0)
|
||||
{
|
||||
ui.com_detail.text_amount.SetVar("num", GameHelper.Get102Str(pettyAmount)).FlushVars();
|
||||
ui.com_detail.text_amount.SetVar("num", $" {GameHelper.GetExchangeRateVo().Payicon}{GameHelper.Get102Str(pettyAmount)}").FlushVars();
|
||||
}
|
||||
else
|
||||
{
|
||||
var num = GameHelper.GetCommonModel().SmallReward;
|
||||
ui.com_detail.text_amount.SetVar("num", GameHelper.Get102Str(num)).FlushVars();
|
||||
ui.com_detail.text_amount.SetVar("num", $" {GameHelper.GetExchangeRateVo().Payicon}{GameHelper.Get102Str(num)}").FlushVars();
|
||||
DataMgr.PettyAmount.Value = num;
|
||||
|
||||
}
|
||||
|
||||
var pettyDateTime = DataMgr.PettyDateTime.Value;
|
||||
@@ -299,7 +299,7 @@ namespace RedHotRoast
|
||||
}
|
||||
else
|
||||
{
|
||||
var day = ConfigSystem.GetCommonConf().ProcessingTime;
|
||||
var day = GameHelper.GetCommonModel().ProcessingTime;
|
||||
ui.com_detail.text_limit.SetVar("day", day.ToString()).FlushVars();
|
||||
DataMgr.PettyDataLimit.Value = day;
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace RedHotRoast
|
||||
}
|
||||
|
||||
// WebviewManager.ShezhiACT(false);
|
||||
WebviewManager.Instance.SetDarkThough(false);
|
||||
// WebviewManager.Instance.SetDarkThough(false);
|
||||
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.BuygoldUI_Close);
|
||||
|
||||
@@ -163,7 +163,7 @@ namespace RedHotRoast
|
||||
initTop();
|
||||
|
||||
ske_pot.SetActive(false);
|
||||
string val = $"{SaveData.GetSaveObject().saveingpot_ch:N}";
|
||||
string val = $"{SaveingPotHelper.getChNumber(SaveData.GetSaveObject().saveingpot_ch):N}";
|
||||
ui.text_lose.SetVar("num", val).FlushVars();
|
||||
// ui.text_lose.text = string.Format(ui.text_lose.text, SaveingPotHelper.getChString(SaveData.GetSaveObject().saveingpot_ch));
|
||||
if (makeupTaskData.needShowAni)
|
||||
@@ -173,10 +173,12 @@ namespace RedHotRoast
|
||||
ui.text_chprogress.text = SaveingPotHelper.getChNumber(SaveData.GetSaveObject().saveingpot_ch) + "/" + SaveingPotHelper.getChNumber(makeupTaskData.amount);
|
||||
ui.progress_ch.value = (SaveData.GetSaveObject().saveingpot_ch / makeupTaskData.amount) * 100;
|
||||
ske_pot.SetActive(true);
|
||||
Debug.Log("iiiiiiiiiiiiiiiiiiiii");
|
||||
if (SaveData.GetSaveObject().saveingpot_ch < makeupTaskData.amount)
|
||||
{
|
||||
((btn_watchAd)ui.btn_ch).watch.text = "Go";
|
||||
((btn_watchAd)ui.btn_ch).watch.text = Language.GetContentParams("go");
|
||||
((btn_watchAd)ui.btn_ch).buy_state.selectedIndex = 0;
|
||||
|
||||
ui.btn_ch.SetClick(() => { });
|
||||
ui.btn_ch.SetClick(() =>
|
||||
{
|
||||
GameHelper.ShowVideoAd("SaveingPotAd", isSuccess =>
|
||||
@@ -190,25 +192,29 @@ namespace RedHotRoast
|
||||
btnWatchad.enabled = false;
|
||||
btnWatchad.can_buy.selectedIndex = 1;
|
||||
btnWatchad.btn_text.text = CommonHelper.TimeFormat(SaveData.GetSaveObject()._watch_ad_cd - Convert.ToInt32(GameHelper.GetNowTime()), CountDownType.Hour);
|
||||
HallManager.Instance.UpdateSecondEvent += upLvWatchAdsBtn;
|
||||
InitView();
|
||||
HallManager.Instance.UpdateSecondEvent += upLvWatchAdsBtn;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
btn_watchAd btnWatchad = ui.btn_ch as btn_watchAd;
|
||||
btnWatchad.enabled = true;
|
||||
btnWatchad.buy_state.selectedIndex = 1;
|
||||
btnWatchad.title = "GET GIFT CARD";
|
||||
btnWatchad.can_buy.selectedIndex = 0;
|
||||
btnWatchad.title = Language.GetContentParams("get_card");
|
||||
btnWatchad.SetClick(() => { });
|
||||
btnWatchad.SetClick(() =>
|
||||
{
|
||||
makeupTaskData.needShowAni = false;
|
||||
SaveData.SaveDataFunc();
|
||||
InitView();
|
||||
});
|
||||
|
||||
HallManager.Instance.UpdateSecondEvent -= upLvWatchAdsBtn;
|
||||
DOVirtual.DelayedCall(0.1f, InitView);
|
||||
}
|
||||
if (SaveData.GetSaveObject().saveingpot_ch > SaveData.GetSaveObject().last_saveingpot_ch)
|
||||
{
|
||||
@@ -315,7 +321,6 @@ namespace RedHotRoast
|
||||
ui.btn_watch.show_cd.selectedIndex = 0;
|
||||
}
|
||||
}
|
||||
|
||||
private void upLvWatchAdsBtn()
|
||||
{
|
||||
var lastAdTimes = SaveData.GetSaveObject()._watch_ad_cd;
|
||||
@@ -341,6 +346,8 @@ namespace RedHotRoast
|
||||
btn_watchad.enabled = true;
|
||||
btn_watchad.can_buy.selectedIndex = 0;
|
||||
if (GameHelper.IsGiftSwitch() && ConfigSystem.GetCommonConf().PiggyBankSwitch == 1) btn_watchad.img_saveingpot.visible = true;
|
||||
|
||||
InitView();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -378,7 +385,7 @@ namespace RedHotRoast
|
||||
{
|
||||
ui.cont_confirm.selectedIndex = 0;
|
||||
ui.type.selectedIndex = 6;
|
||||
ui.text_payhint.text = "You will get the " + makeupTaskData.amountStr + " for 90 days";
|
||||
ui.text_payhint.text = Language.GetContentParams("saveingpot_get", makeupTaskData.amountStr);
|
||||
ui.text_query.text = DataMgr.ExchangeAccount.Value;
|
||||
ui.btn_confirm.SetClick(() =>
|
||||
{
|
||||
@@ -541,7 +548,7 @@ namespace RedHotRoast
|
||||
}
|
||||
}
|
||||
|
||||
ui.lab_mn.text = GameHelper.Get101Str(vo.item_need - value);
|
||||
ui.lab_mn.text = GameHelper.Get102Str(vo.item_need - value);
|
||||
|
||||
ui.list_kicket.itemRenderer = refreshItem;
|
||||
ui.list_kicket.numItems = makeupTaskData.rdData.Count;
|
||||
@@ -555,12 +562,12 @@ namespace RedHotRoast
|
||||
if (makeupTaskData.rdData[index].isClaimed)
|
||||
{
|
||||
item.btn_claim.state.selectedIndex = 1;
|
||||
item.btn_claim.title = "Claimed";
|
||||
item.btn_claim.title = Language.GetContentParams("claimed");
|
||||
}
|
||||
else
|
||||
{
|
||||
item.btn_claim.state.selectedIndex = 0;
|
||||
item.btn_claim.title = "Claim";
|
||||
item.btn_claim.title = Language.GetContentParams("claim");
|
||||
}
|
||||
|
||||
item.btn_claim.SetClick(() =>
|
||||
@@ -596,7 +603,7 @@ namespace RedHotRoast
|
||||
}
|
||||
|
||||
var vo = MakeupModel_2.GetData(makeupTaskData.tableId);
|
||||
ui.lab_mn2.text = GameHelper.Get101Str(vo.item_need - value);
|
||||
ui.lab_mn2.text = GameHelper.Get102Str(vo.item_need - value);
|
||||
ui.lab_ticket.text = GameHelper.GetPriceInt(makeupTaskData.lastRdData.coupon_mount);
|
||||
ui.lab_code.text = makeupTaskData.lastRdData.code;
|
||||
|
||||
@@ -735,12 +742,12 @@ namespace RedHotRoast
|
||||
return;
|
||||
}
|
||||
ui.type.selectedIndex = 4;
|
||||
ui.com_task.text_task.text = "get gift card";
|
||||
ui.com_task.text_payer.text = "{amt=$0.5} directly to your gift card";
|
||||
ui.com_task.text_task.text = Language.GetContentParams("get_card");
|
||||
ui.com_task.text_payer.text = Language.GetContentParams("saveingpot_claimed",makeupTaskData.GetAmountStr());
|
||||
ui.com_task.text_orderid.text = makeupTaskData.orderID;
|
||||
ui.com_task.text_task_title.SetVar("ad", vo.ad_need.ToString()).FlushVars();
|
||||
ui.com_task.text_ads.text = $"{makeupTaskData.videoCount}/{vo.ad_need}";
|
||||
ui.com_task.text_payer.SetVar("amt", makeupTaskData.GetAmountStr()).FlushVars();
|
||||
// ui.com_task.text_payer.text = makeupTaskData.GetAmountStr();
|
||||
|
||||
if (makeupTaskData.videoCount >= vo.ad_need)
|
||||
{
|
||||
@@ -837,27 +844,31 @@ namespace RedHotRoast
|
||||
var account = enter_input.text.Replace(" ", "");
|
||||
if (account == null || account == "")
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information1", true);
|
||||
string content = Language.GetContentParams("empty_account1", 1);
|
||||
GameHelper.ShowTips(content);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!GameHelper.CheckAccountValidly(account))
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information2", true);
|
||||
string content = Language.GetContentParams("empty_account1", 2);
|
||||
GameHelper.ShowTips(content);
|
||||
return;
|
||||
}
|
||||
|
||||
var fname = ui.com_fname.enter_fname.text.Replace(" ", "");
|
||||
if (!GameHelper.CheckNameValidly(fname))
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information3", true);
|
||||
string content = Language.GetContentParams("empty_account1", 3);
|
||||
GameHelper.ShowTips(content);
|
||||
return;
|
||||
}
|
||||
|
||||
var lname = ui.com_lname.enter_lname.text.Replace(" ", "");
|
||||
if (!GameHelper.CheckNameValidly(lname) && !AppConst.isPt())
|
||||
{
|
||||
GameHelper.ShowTips("Please enter the correct account information4", true);
|
||||
string content = Language.GetContentParams("empty_account1", 4);
|
||||
GameHelper.ShowTips(content);
|
||||
return;
|
||||
}
|
||||
DataMgr.ExchangeAccount.Value= account;
|
||||
@@ -921,8 +932,7 @@ namespace RedHotRoast
|
||||
|
||||
for (int i = 0; i < btn_list.Count; i++)
|
||||
{
|
||||
btn_list[i].text_ch.text = makeup_list[i].item_need + "";
|
||||
Debug.Log(makeup_list[i].item_need);
|
||||
btn_list[i].text_ch.text = makeup_list[i].item_need * GameHelper.GetExchangeRateVo().Multi + "";
|
||||
btn_list[i].index.selectedIndex = i;
|
||||
if (i >= saveingpot_history.Count)
|
||||
{
|
||||
@@ -949,7 +959,7 @@ namespace RedHotRoast
|
||||
btn_list[i].img_outline.visible = false;
|
||||
btn_list[i].SetClick(() =>
|
||||
{
|
||||
GameHelper.ShowTips("To be unlocked");
|
||||
GameHelper.ShowTips("un_lock",true);
|
||||
});
|
||||
}
|
||||
else
|
||||
@@ -996,11 +1006,11 @@ namespace RedHotRoast
|
||||
{
|
||||
if (GameHelper.isRDExchangeMode())
|
||||
{
|
||||
text_list[i].text = "congratulations,[color=#ad4800][size=36] " + broad_list[i][0] + " [/size][/color]Successful exchange[color=#ad4800]<img src='ui://o9974uc5t9w7c3'/>" + broad_list[i][1] + "[/color]";
|
||||
text_list[i].text = $"{Language.GetContent("congratulations")},[color=#ad4800][size=36] " + broad_list[i][0] + $" [/size][/color]{Language.GetContent("exchange_success")}[color=#ad4800]<img src='ui://o9974uc5t9w7c3'/>" + broad_list[i][1] + "[/color]";
|
||||
}
|
||||
else
|
||||
{
|
||||
text_list[i].text = "congratulations,[color=#ad4800][size=36] " + broad_list[i][0] + " [/size][/color]Successful exchange[color=#ad4800]$" + broad_list[i][1] + "[/color]";
|
||||
text_list[i].text = $"{Language.GetContent("congratulations")},[color=#ad4800][size=36] " + broad_list[i][0] + $" [/size][/color]{Language.GetContent("exchange_success")}[color=#ad4800]$" + broad_list[i][1] + "[/color]";
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -1024,11 +1034,11 @@ namespace RedHotRoast
|
||||
broad_list.Add(new string[2] { config_name_list[name_index], config_money_list[money_index] });
|
||||
if (GameHelper.isRDExchangeMode())
|
||||
{
|
||||
text_list[i].text = "congratulations,[color=#ad4800][size=36] " + broad_list[i][0] + " [/size][/color]Successful exchange[color=#ad4800]<img src='ui://o9974uc5t9w7c3'/>" + broad_list[i][1] + "[/color]";
|
||||
text_list[i].text = $"{Language.GetContent("congratulations")},[color=#ad4800][size=36] " + broad_list[i][0] + $" [/size][/color]{Language.GetContent("exchange_success")} [color=#ad4800]<img src='ui://o9974uc5t9w7c3'/>" + broad_list[i][1] + "[/color]";
|
||||
}
|
||||
else
|
||||
{
|
||||
text_list[i].text = "congratulations,[color=#ad4800][size=36] " + broad_list[i][0] + " [/size][/color]Successful exchange[color=#ad4800]$" + broad_list[i][1] + "[/color]";
|
||||
text_list[i].text = $"{Language.GetContent("congratulations")},[color=#ad4800][size=36] " + broad_list[i][0] + $" [/size][/color]{Language.GetContent("exchange_success")}[color=#ad4800]$" + broad_list[i][1] + "[/color]";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,9 @@ namespace RedHotRoast
|
||||
{
|
||||
public class MaxADKit
|
||||
{
|
||||
|
||||
public static bool IsOpenAd = false;
|
||||
|
||||
public static void Init()
|
||||
{
|
||||
|
||||
@@ -76,6 +79,13 @@ namespace RedHotRoast
|
||||
{
|
||||
onVideoAdCompleted = onCompleted;
|
||||
_placement = placement;
|
||||
|
||||
if (IsOpenAd)
|
||||
{
|
||||
onVideoAdCompleted?.Invoke(true);
|
||||
return;
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
onVideoAdCompleted?.Invoke(true);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user