CoreLib
Update to v0.1.4 Add `is_function_in_file` and if the key is "<ORIGINAL>", the `TranslationManager.translate()` will return it directly. (For some strings that don't need to translate in specific language) Launcher Update to 0.1.0a0 Add plugin system support and add some useful apis for plugin. Add "Refresh avatar cache" to account page.
This commit is contained in:
1 parent
deb06f0190
commit
c3662d4cc6
34 files changed
+2192
-57
No files matched your search
@@ -1,7 +1,10 @@
|
||||
from TapLauncher import Plugin
|
||||
from TapLauncher import Plugin, PluginContext
|
||||
|
||||
class ExperimentalFarm(Plugin):
|
||||
pass
|
||||
|
||||
def entry(context: dict) -> None:
|
||||
pass
|
||||
def entry(context: PluginContext) -> None:
|
||||
context.data_dir.mkdir(parents=True, exist_ok=True)
|
||||
context.logger.info("Experimental Farm initialized")
|
||||
list_apis = context.get_api("launcher.apis.list")
|
||||
context.logger.debug("Available launcher APIs: %s", list_apis())
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.7 MiB |
@@ -1,5 +1,8 @@
|
||||
group = "net.wei"
|
||||
id = "experimentalfarm"
|
||||
name = "Experimental Farm"
|
||||
version = ">=1"
|
||||
entrypoint = "__init__.py:entry"
|
||||
name = "實驗田"
|
||||
version = "1.0.0"
|
||||
api_version = ">=0.0.1"
|
||||
entrypoint = "__init__.py:entry" # Python file name:endpoint
|
||||
icon = "nugget.gif" # Relative to this plugin directory; GIF, PNG, JPG or BMP
|
||||
description = "A experimental plugin!"
|
||||
@@ -7,4 +7,5 @@
|
||||
- modLoader/fabric.png : [Source](https://fabricmc.net/assets/logo.png)
|
||||
- modLoader/neoforged.png : [Source](https://raw.githubusercontent.com/neoforged/.github/refs/heads/main/art/neoforged.ico)
|
||||
- vanilla.png : [Source](https://en.wikipedia.org/wiki/File:Updated_Minecraft_cube.svg)
|
||||
- refresh.png (modified) : [Source](https://uxwing.com/reload-icon/)
|
||||
## For the icon owner: If you want to take down icon that infringing upon your copyright. Contact us with this [link](https://repo.weispace.net/wei/Launcher)
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
@@ -1,4 +1,31 @@
|
||||
{
|
||||
"Profile settings": "Profile settings",
|
||||
"Enable plugin": "Enable plugin",
|
||||
"Disable plugin": "Disable plugin",
|
||||
"Plugins": "Plugins",
|
||||
"Installed": "Installed",
|
||||
"Reload plugins": "Reload plugins",
|
||||
"Plugins folder": "Plugins folder",
|
||||
"Search plugins…": "Search plugins…",
|
||||
"Filter plugins": "Filter plugins",
|
||||
"All plugins": "All plugins",
|
||||
"Enabled": "Enabled",
|
||||
"Disabled": "Disabled",
|
||||
"Overview": "Overview",
|
||||
"This plugin does not provide a description.": "This plugin does not provide a description.",
|
||||
"Open plugin folder": "Open plugin folder",
|
||||
"Plugin ID": "Plugin ID",
|
||||
"Group": "Group",
|
||||
"Required API version": "Required API version",
|
||||
"Location": "Location",
|
||||
"{visible} of {total} plugins": "{visible} of {total} plugins",
|
||||
"No matching plugins": "No matching plugins",
|
||||
"Try another search or change the filter.": "Try another search or change the filter.",
|
||||
"No plugins loaded": "No plugins loaded",
|
||||
"Add plugins to your plugins folder, then click Reload plugins.": "Add plugins to your plugins folder, then click Reload plugins.",
|
||||
"Unable to open folder: {path}": "Unable to open folder: {path}",
|
||||
"Plugin Error": "Plugin Error",
|
||||
"Browse installed plugins": "Browse installed plugins",
|
||||
"About": "About",
|
||||
"Account": "Account",
|
||||
"Account status": "Account status",
|
||||
@@ -131,6 +158,7 @@
|
||||
"Redownload": "Redownload",
|
||||
"Refresh": "Refresh",
|
||||
"Refresh all": "Refresh all",
|
||||
"Refresh avatar cache": "Refresh avatar cache",
|
||||
"Refresh failed": "Refresh failed",
|
||||
"Refresh token": "Refresh token",
|
||||
"Refresh versions": "Refresh versions",
|
||||
@@ -276,6 +304,7 @@
|
||||
"An unexpected error occurred while fetching version manifest: {error}": "An unexpected error occurred while fetching version manifest: {error}",
|
||||
"Unable to launch profile {profile}: {error}": "Unable to launch profile {profile}: {error}",
|
||||
"To make all page apply new language. Is recommend to restart the launcher after change it.": "To make all page apply new language. Is recommend to restart the launcher after change it.",
|
||||
"To make all page apply new theme. Is recommend to restart the launcher after change it.": "To make all page apply new theme. Is recommend to restart the launcher after change it.",
|
||||
"Save Log": "Save Log",
|
||||
"Select where to save the log file": "Select where to save the log file",
|
||||
"Text Files (*.txt);;All Files (*)": "Text Files (*.txt);;All Files (*)",
|
||||
@@ -306,5 +335,6 @@
|
||||
"Vanilla": "Vanilla",
|
||||
"minutes": "minutes",
|
||||
"{account} is currently signed in.": "{account} is currently signed in.",
|
||||
"{account}'s session has expired.": "{account}'s session has expired."
|
||||
"{account}'s session has expired.": "{account}'s session has expired.",
|
||||
"$ABOUT_THIS_LAUNCHER": "<ORIGINAL>"
|
||||
}
|
||||
@@ -1,4 +1,31 @@
|
||||
{
|
||||
"Profile settings": "設定檔設定",
|
||||
"Enable plugin": "啟用插件",
|
||||
"Disable plugin": "停用插件",
|
||||
"Plugins": "插件",
|
||||
"Installed": "已安裝",
|
||||
"Reload plugins": "重新載入插件",
|
||||
"Plugins folder": "插件資料夾",
|
||||
"Search plugins…": "搜尋插件…",
|
||||
"Filter plugins": "篩選插件",
|
||||
"All plugins": "所有插件",
|
||||
"Enabled": "已啟用",
|
||||
"Disabled": "已停用",
|
||||
"Overview": "概覽",
|
||||
"This plugin does not provide a description.": "此插件未提供說明。",
|
||||
"Open plugin folder": "開啟插件資料夾",
|
||||
"Plugin ID": "插件 ID",
|
||||
"Group": "群組",
|
||||
"Required API version": "所需 API 版本",
|
||||
"Location": "位置",
|
||||
"{visible} of {total} plugins": "顯示 {visible} / {total} 個插件",
|
||||
"No matching plugins": "找不到符合條件的插件",
|
||||
"Try another search or change the filter.": "請嘗試其他搜尋文字或變更篩選條件。",
|
||||
"No plugins loaded": "尚未載入插件",
|
||||
"Add plugins to your plugins folder, then click Reload plugins.": "將插件放入插件資料夾,然後按「重新載入插件」。",
|
||||
"Unable to open folder: {path}": "無法開啟資料夾:{path}",
|
||||
"Plugin Error": "插件錯誤",
|
||||
"Browse installed plugins": "瀏覽已安裝的插件",
|
||||
"About": "關於",
|
||||
"Account": "帳號",
|
||||
"Account status": "帳號狀態",
|
||||
@@ -130,6 +157,7 @@
|
||||
"Redownload": "重新下載",
|
||||
"Refresh": "重新整理",
|
||||
"Refresh all": "全部重新整理",
|
||||
"Refresh avatar cache": "重新整理頭像快取",
|
||||
"Refresh failed": "更新令牌失敗",
|
||||
"Refresh token": "重新整理",
|
||||
"Refresh versions": "重新整理版本",
|
||||
@@ -276,6 +304,7 @@
|
||||
"An unexpected error occurred while fetching version manifest: {error}": "取得版本資訊時發生非預期錯誤:{error}",
|
||||
"Unable to launch profile {profile}: {error}": "無法啟動設定檔 {profile}:{error}",
|
||||
"To make all page apply new language. Is recommend to restart the launcher after change it.": "為了讓所有頁面套用語言更新,建議在修改後重新啟動啟動器。",
|
||||
"To make all page apply new theme. Is recommend to restart the launcher after change it.": "為了讓所有頁面套用新的佈景主題,建議在修改後重新啟動啟動器。",
|
||||
"Save Log": "儲存紀錄",
|
||||
"Select where to save the log file": "選擇紀錄檔的儲存位置",
|
||||
"Text Files (*.txt);;All Files (*)": "文字檔案 (*.txt);;所有檔案 (*)",
|
||||
@@ -306,5 +335,6 @@
|
||||
"Vanilla": "原版",
|
||||
"minutes": "分鐘",
|
||||
"{account} is currently signed in.": "{account} 目前已登入。",
|
||||
"{account}'s session has expired.": "{account} 的工作階段已過期。"
|
||||
"{account}'s session has expired.": "{account} 的工作階段已過期。",
|
||||
"$ABOUT_THIS_LAUNCHER": "一個使用Python編寫的非官方 Minecraft 啟動器。旨在與官方啟動器保持最大程度的兼容,同時更加輕量且易於使用。\n\n本啟動器和 Mojang 工作室 或 Microsoft 沒有任何隸屬關係。只是一個為了好玩而開開發的專案。"
|
||||
}
|
||||
Reference in new issue
Block a user