This commit is contained in:
2026-10-05 21:31:20 +08:00
parent 245afd8bf8
commit 25f5696a27
1545 changed files with 54484 additions and 11643 deletions
+138 -2
View File
@@ -562,7 +562,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 768.68866, y: -56}
m_AnchoredPosition: {x: 768.68866, y: -37}
m_SizeDelta: {x: 259.3773, y: 34}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5421923212763970265
@@ -5521,7 +5521,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 480.76743, y: -56.00003}
m_AnchoredPosition: {x: 480.76743, y: -37.00003}
m_SizeDelta: {x: 249.5348, y: 34}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6523670626216234087
@@ -5729,6 +5729,7 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 3197549551092279617}
- {fileID: 7017340576521286188}
m_Father: {fileID: 2800466959481121481}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.1693039, y: 0.2}
@@ -6857,6 +6858,141 @@ MonoBehaviour:
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &7201541702779444174
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7017340576521286188}
- component: {fileID: 4631541457111348039}
- component: {fileID: 7267210445851697856}
m_Layer: 0
m_Name: Text (TMP)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7017340576521286188
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7201541702779444174}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 5287449963863066530}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 200, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4631541457111348039
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7201541702779444174}
m_CullTransparentMesh: 1
--- !u!114 &7267210445851697856
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7201541702779444174}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: "\u656C\u8BF7\u671F\u5F85..."
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 5d4a713fdd931db4c9ce49f068b54e0a, type: 2}
m_sharedMaterial: {fileID: 3593458263369068374, guid: 5d4a713fdd931db4c9ce49f068b54e0a,
type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 77.22
m_fontSizeBase: 77.22
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 0
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &7218205151105501489
GameObject:
m_ObjectHideFlags: 0
@@ -29,6 +29,8 @@ public class UIHome_BY_ShopPanel : SubUIBase
public TextMeshProUGUI tMP_GoldCoinNum;
public TextMeshProUGUI tMP_DiamondNum;
public GameObject JQQD;
[Header("左侧按钮")]
public Toggle btn_GlodCoins;
public Toggle btn_Diamond;
@@ -611,10 +613,11 @@ public class UIHome_BY_ShopPanel : SubUIBase
{
int nextLevel = vipLevel + 1;
bool hasNext = configs.Exists(v => v.level == nextLevel);
double need = curCfg.expMax > currentExp ? (curCfg.expMax - currentExp) / 100.0 : 0;
//double need = curCfg.expMax > currentExp ? (curCfg.expMax - currentExp) / 100.0 : 0;
double need = curCfg.expMax > currentExp ? (curCfg.expMax - currentExp) : 0;
if (need > 0 && hasNext)
tmp_UpLevel.text = $"再充值<color=yellow><b>{need}</b></color>元升级至<color=yellow><b>贵族{nextLevel}</b></color>";
tmp_UpLevel.text = $"还需要<color=yellow><b>{need}</b></color>经验升级至<color=yellow><b>贵族{nextLevel}</b></color>";
else
tmp_UpLevel.text = "已满级";
}