mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-08 00:30:22 +08:00
tidying and translation entries for PRs
This commit is contained in:
parent
6cee63f44f
commit
1e84871511
@ -429,12 +429,12 @@
|
|||||||
"assets/build/ba_data/data/languages/czech.json": "https://files.ballistica.net/cache/ba1/4e/8c/72ddb584856a15dfb11df95f9283",
|
"assets/build/ba_data/data/languages/czech.json": "https://files.ballistica.net/cache/ba1/4e/8c/72ddb584856a15dfb11df95f9283",
|
||||||
"assets/build/ba_data/data/languages/danish.json": "https://files.ballistica.net/cache/ba1/6a/fa/fcf4a804beaff927b0f12c179eaa",
|
"assets/build/ba_data/data/languages/danish.json": "https://files.ballistica.net/cache/ba1/6a/fa/fcf4a804beaff927b0f12c179eaa",
|
||||||
"assets/build/ba_data/data/languages/dutch.json": "https://files.ballistica.net/cache/ba1/68/93/da8e9874f41a786edf52ba4ccaad",
|
"assets/build/ba_data/data/languages/dutch.json": "https://files.ballistica.net/cache/ba1/68/93/da8e9874f41a786edf52ba4ccaad",
|
||||||
"assets/build/ba_data/data/languages/english.json": "https://files.ballistica.net/cache/ba1/ad/85/3caf0c981389e46835862248386a",
|
"assets/build/ba_data/data/languages/english.json": "https://files.ballistica.net/cache/ba1/15/9d/5199b6a053922c2f9cc0f705e113",
|
||||||
"assets/build/ba_data/data/languages/esperanto.json": "https://files.ballistica.net/cache/ba1/ac/f5/c0922a99e40dfc9f5e026d43b533",
|
"assets/build/ba_data/data/languages/esperanto.json": "https://files.ballistica.net/cache/ba1/ac/f5/c0922a99e40dfc9f5e026d43b533",
|
||||||
"assets/build/ba_data/data/languages/filipino.json": "https://files.ballistica.net/cache/ba1/dc/50/c109f475599608a7e8fdacea667c",
|
"assets/build/ba_data/data/languages/filipino.json": "https://files.ballistica.net/cache/ba1/dc/50/c109f475599608a7e8fdacea667c",
|
||||||
"assets/build/ba_data/data/languages/french.json": "https://files.ballistica.net/cache/ba1/4f/4d/b259b145a69db1d34052281bb3bb",
|
"assets/build/ba_data/data/languages/french.json": "https://files.ballistica.net/cache/ba1/4f/4d/b259b145a69db1d34052281bb3bb",
|
||||||
"assets/build/ba_data/data/languages/german.json": "https://files.ballistica.net/cache/ba1/cb/7b/b881356f22e5f8293a5e4b8976ae",
|
"assets/build/ba_data/data/languages/german.json": "https://files.ballistica.net/cache/ba1/cb/7b/b881356f22e5f8293a5e4b8976ae",
|
||||||
"assets/build/ba_data/data/languages/gibberish.json": "https://files.ballistica.net/cache/ba1/ee/fa/6eb38e7d4cfd13702c66d37b9723",
|
"assets/build/ba_data/data/languages/gibberish.json": "https://files.ballistica.net/cache/ba1/09/c3/029c8d6357aa2dc5a3ac3560265a",
|
||||||
"assets/build/ba_data/data/languages/greek.json": "https://files.ballistica.net/cache/ba1/8a/82/392f2a4e0e6e5a5e367f19e49538",
|
"assets/build/ba_data/data/languages/greek.json": "https://files.ballistica.net/cache/ba1/8a/82/392f2a4e0e6e5a5e367f19e49538",
|
||||||
"assets/build/ba_data/data/languages/hindi.json": "https://files.ballistica.net/cache/ba1/2e/d1/b506ddf3d27af7be1ae6159531a3",
|
"assets/build/ba_data/data/languages/hindi.json": "https://files.ballistica.net/cache/ba1/2e/d1/b506ddf3d27af7be1ae6159531a3",
|
||||||
"assets/build/ba_data/data/languages/hungarian.json": "https://files.ballistica.net/cache/ba1/b2/81/53c8cd7617d649403e539c3a6171",
|
"assets/build/ba_data/data/languages/hungarian.json": "https://files.ballistica.net/cache/ba1/b2/81/53c8cd7617d649403e539c3a6171",
|
||||||
|
|||||||
1
.idea/dictionaries/ericf.xml
generated
1
.idea/dictionaries/ericf.xml
generated
@ -1922,6 +1922,7 @@
|
|||||||
<w>plistname</w>
|
<w>plistname</w>
|
||||||
<w>plpt</w>
|
<w>plpt</w>
|
||||||
<w>plst</w>
|
<w>plst</w>
|
||||||
|
<w>pluginsettings</w>
|
||||||
<w>plugkey</w>
|
<w>plugkey</w>
|
||||||
<w>plugkeys</w>
|
<w>plugkeys</w>
|
||||||
<w>pluglist</w>
|
<w>pluglist</w>
|
||||||
|
|||||||
@ -1,4 +1,7 @@
|
|||||||
### 1.7.19 (build 20993, api 7, 2023-01-17)
|
### 1.7.19 (build 20993, api 7, 2023-01-17)
|
||||||
|
- Fixes an issue where repeated curses could use incorrect countdown times (Thanks EraOSBeta!).
|
||||||
|
- Last manual party connect port is now saved. Previously, it always assumed the port to be 43210 (Thanks ritiek!).
|
||||||
|
- Added a plugin-settings window under the plugins UI for enabling/disabling, and setting whether plugins are auto-enabled (Thanks vishal332008!).
|
||||||
|
|
||||||
### 1.7.18 (build 20989, api 7, 2023-01-16)
|
### 1.7.18 (build 20989, api 7, 2023-01-16)
|
||||||
- Reworked some low level asynchronous messaging functionality in efro.message and efro.rpc. Previously these were a little *too* asynchronous which could lead to messages being received in a different order than they were sent, which is not desirable.
|
- Reworked some low level asynchronous messaging functionality in efro.message and efro.rpc. Previously these were a little *too* asynchronous which could lead to messages being received in a different order than they were sent, which is not desirable.
|
||||||
|
|||||||
@ -22,6 +22,9 @@ class PluginSubsystem:
|
|||||||
Access the single shared instance of this class at `ba.app.plugins`.
|
Access the single shared instance of this class at `ba.app.plugins`.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
AUTO_ENABLE_NEW_PLUGINS_CONFIG_KEY = 'Auto Enable New Plugins'
|
||||||
|
AUTO_ENABLE_NEW_PLUGINS_DEFAULT = True
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
self.potential_plugins: list[ba.PotentialPlugin] = []
|
self.potential_plugins: list[ba.PotentialPlugin] = []
|
||||||
self.active_plugins: dict[str, ba.Plugin] = {}
|
self.active_plugins: dict[str, ba.Plugin] = {}
|
||||||
@ -48,7 +51,13 @@ class PluginSubsystem:
|
|||||||
available=True,
|
available=True,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
if _ba.app.config['Auto Enable New Plugins'] is True:
|
if (
|
||||||
|
_ba.app.config.get(
|
||||||
|
self.AUTO_ENABLE_NEW_PLUGINS_CONFIG_KEY,
|
||||||
|
self.AUTO_ENABLE_NEW_PLUGINS_DEFAULT,
|
||||||
|
)
|
||||||
|
is True
|
||||||
|
):
|
||||||
if class_path not in plugstates:
|
if class_path not in plugstates:
|
||||||
# Go ahead and enable new plugins by default, but we'll
|
# Go ahead and enable new plugins by default, but we'll
|
||||||
# inform the user that they need to restart to pick them up.
|
# inform the user that they need to restart to pick them up.
|
||||||
|
|||||||
@ -102,8 +102,11 @@ class PluginSettingsWindow(ba.Window):
|
|||||||
parent=self._root_widget,
|
parent=self._root_widget,
|
||||||
position=(65, self._y_position),
|
position=(65, self._y_position),
|
||||||
size=(350, 60),
|
size=(350, 60),
|
||||||
value=ba.app.config['Auto Enable New Plugins'],
|
value=ba.app.config.get(
|
||||||
text=ba.Lstr(resource='AutoEnableNewPluginsText'),
|
ba.app.plugins.AUTO_ENABLE_NEW_PLUGINS_CONFIG_KEY,
|
||||||
|
ba.app.plugins.AUTO_ENABLE_NEW_PLUGINS_DEFAULT,
|
||||||
|
),
|
||||||
|
text=ba.Lstr(resource='pluginsAutoEnableNewText'),
|
||||||
scale=1.0,
|
scale=1.0,
|
||||||
maxwidth=430,
|
maxwidth=430,
|
||||||
on_value_change_call=self._update_value,
|
on_value_change_call=self._update_value,
|
||||||
@ -127,9 +130,9 @@ class PluginSettingsWindow(ba.Window):
|
|||||||
|
|
||||||
def _enable_all_plugins(self) -> None:
|
def _enable_all_plugins(self) -> None:
|
||||||
cfg = ba.app.config
|
cfg = ba.app.config
|
||||||
plugs = cfg['Plugins']
|
plugs: dict[str, dict] = cfg.setdefault('Plugins', {})
|
||||||
for plug in plugs:
|
for plug in plugs.values():
|
||||||
plugs[plug]['enabled'] = True
|
plug['enabled'] = True
|
||||||
cfg.apply_and_commit()
|
cfg.apply_and_commit()
|
||||||
|
|
||||||
ba.screenmessage(
|
ba.screenmessage(
|
||||||
@ -139,9 +142,9 @@ class PluginSettingsWindow(ba.Window):
|
|||||||
|
|
||||||
def _disable_all_plugins(self) -> None:
|
def _disable_all_plugins(self) -> None:
|
||||||
cfg = ba.app.config
|
cfg = ba.app.config
|
||||||
plugs = cfg['Plugins']
|
plugs: dict[str, dict] = cfg.setdefault('Plugins', {})
|
||||||
for plug in plugs:
|
for plug in plugs.values():
|
||||||
plugs[plug]['enabled'] = False
|
plug['enabled'] = False
|
||||||
cfg.apply_and_commit()
|
cfg.apply_and_commit()
|
||||||
|
|
||||||
ba.screenmessage(
|
ba.screenmessage(
|
||||||
@ -151,7 +154,7 @@ class PluginSettingsWindow(ba.Window):
|
|||||||
|
|
||||||
def _update_value(self, val: bool) -> None:
|
def _update_value(self, val: bool) -> None:
|
||||||
cfg = ba.app.config
|
cfg = ba.app.config
|
||||||
cfg['Auto Enable New Plugins'] = val
|
cfg[ba.app.plugins.AUTO_ENABLE_NEW_PLUGINS_CONFIG_KEY] = val
|
||||||
cfg.apply_and_commit()
|
cfg.apply_and_commit()
|
||||||
|
|
||||||
def _do_back(self) -> None:
|
def _do_back(self) -> None:
|
||||||
|
|||||||
@ -1030,6 +1030,7 @@
|
|||||||
<w>playpause</w>
|
<w>playpause</w>
|
||||||
<w>playsound</w>
|
<w>playsound</w>
|
||||||
<w>plen</w>
|
<w>plen</w>
|
||||||
|
<w>pluginsettings</w>
|
||||||
<w>plugnames</w>
|
<w>plugnames</w>
|
||||||
<w>pname</w>
|
<w>pname</w>
|
||||||
<w>podcast</w>
|
<w>podcast</w>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user