This commit is contained in:
parent
f8bcf8a4d4
commit
fc189b98cc
|
@ -69,6 +69,8 @@ namespace Net.BITKit.Localization
|
|||
|
||||
public string GetLocalizedString(string key, string language = null)
|
||||
{
|
||||
if (string.IsNullOrEmpty(key)) return "#ERROR_EMPTY_KEY";
|
||||
|
||||
language ??= CurrentLanguage; // 默认使用当前语言
|
||||
|
||||
if (key[0] != _prefix)
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,21 @@
|
|||
fileFormatVersion: 2
|
||||
guid: da971145b85b1d2408998457959be155
|
||||
TrueTypeFontImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 4
|
||||
fontSize: 16
|
||||
forceTextureCase: -2
|
||||
characterSpacing: 0
|
||||
characterPadding: 1
|
||||
includeFontData: 1
|
||||
fontNames:
|
||||
- Noto Color Emoji
|
||||
fallbackFontReferences: []
|
||||
customCharacters:
|
||||
fontRenderingMode: 0
|
||||
ascentCalculationMode: 1
|
||||
useLegacyBoundsCalculation: 0
|
||||
shouldRoundAdvanceValue: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
|
@ -0,0 +1,21 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 10a8f74e8622f3641b8a85e7c6ad635e
|
||||
TrueTypeFontImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 4
|
||||
fontSize: 16
|
||||
forceTextureCase: -2
|
||||
characterSpacing: 0
|
||||
characterPadding: 1
|
||||
includeFontData: 1
|
||||
fontNames:
|
||||
- Noto Emoji
|
||||
fallbackFontReferences: []
|
||||
customCharacters:
|
||||
fontRenderingMode: 0
|
||||
ascentCalculationMode: 1
|
||||
useLegacyBoundsCalculation: 0
|
||||
shouldRoundAdvanceValue: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: bec08c0cec05eed4c9ae7f0917deca1f
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -6086,6 +6086,7 @@ MonoBehaviour:
|
|||
m_MarkToMarkAdjustmentRecords: []
|
||||
m_FallbackFontAssetTable:
|
||||
- {fileID: 11400000, guid: 2f61e01f10d33fb48a56bb976a364395, type: 2}
|
||||
- {fileID: 11400000, guid: bec08c0cec05eed4c9ae7f0917deca1f, type: 2}
|
||||
m_FontWeightTable:
|
||||
- regularTypeface: {fileID: 0}
|
||||
italicTypeface: {fileID: 0}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
😀😁😂🤣😃😄😅😆😉😊😋😎😍😘🥰😗😙😚🙂🤗🤔😐😑😶🙄😏😣😥😮🤐😯😪😫🥱😴😌😛😜😝🤤😒😓😔😕🙃🤑😲☹️🙁😖😞😟😤😢😭😦😧😨😩🤯😬😰😱🥵🥶😳🤪😵😡😠🤬😷🤒🤕🤢🤮🥴😇🤠🥳🥸😈👿👹👺💀👻👽👾🤖🎃😺😸😹😻😼😽🙀😿😾💩👋🤚🖐️✋🖖👌🤌🤏✌️🤞🤟🤘🤙👈👉👆👇👍👎✊👊🤛🤜👏🙌👐🤲🙏✍️💅🤳💪🦾🖕
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e1e47566d18b99f4f9f825ecf54ffdaf
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -106,7 +106,15 @@ var button = container.Get<Button>();
|
|||
|
||||
protected override void OnReturn()
|
||||
{
|
||||
UXService.Entry(_prevPanel);
|
||||
if (_prevPanel is not null)
|
||||
{
|
||||
UXService.Entry(_prevPanel);
|
||||
}
|
||||
else
|
||||
{
|
||||
UXService.Return();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void Perform(IHotkeyCollection collection)
|
||||
|
|
|
@ -210,7 +210,7 @@ Object.Destroy(gameObject);
|
|||
}
|
||||
if (_entryQueue.TryPop(out var nextPanel))
|
||||
{
|
||||
if (nextPanel.IsWindow)
|
||||
if (nextPanel is {IsWindow:true})
|
||||
{
|
||||
_windowEntryGroup.TransitionState(nextPanel);
|
||||
return;
|
||||
|
|
|
@ -161,6 +161,10 @@ TabBar Button:disabled {
|
|||
color: rgb(70, 70, 70);
|
||||
}
|
||||
|
||||
.theme-dark #unity-checkmark {
|
||||
-unity-background-image-tint-color: white;
|
||||
}
|
||||
|
||||
.theme-light Button {
|
||||
background-color: rgb(247, 247, 247);
|
||||
border-top-left-radius: 8px;
|
||||
|
@ -493,16 +497,10 @@ Foldout Toggle Label {
|
|||
padding-left: 8px;
|
||||
}
|
||||
|
||||
Button.clear {
|
||||
Button.clear.unity-button {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
margin-top: 0;
|
||||
margin-right: 0;
|
||||
margin-bottom: 0;
|
||||
margin-left: 0;
|
||||
padding-top: 0;
|
||||
padding-right: 0;
|
||||
padding-bottom: 0;
|
||||
padding-left: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-top-width: 0;
|
||||
border-right-width: 0;
|
||||
border-bottom-width: 0;
|
||||
|
@ -513,6 +511,33 @@ Button.clear {
|
|||
border-bottom-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
TextField.clear {
|
||||
border-top-width: 0;
|
||||
border-right-width: 0;
|
||||
border-bottom-width: 0;
|
||||
border-left-width: 0;
|
||||
margin-top: 0;
|
||||
margin-right: 0;
|
||||
margin-bottom: 0;
|
||||
margin-left: 0;
|
||||
padding-top: 0;
|
||||
padding-right: 0;
|
||||
padding-bottom: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
TextField.clear #unity-text-input {
|
||||
border-top-width: 0;
|
||||
border-right-width: 0;
|
||||
border-bottom-width: 0;
|
||||
border-left-width: 0;
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
margin-top: 0;
|
||||
margin-right: 0;
|
||||
margin-bottom: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
TabContainer > * {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue