forked from ArchipelagoMW/Archipelago
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Core: hot reload components from installed apworld (ArchipelagoMW#3480)
* Core: hot reload components from installed apworld * address PR reviews `Launcher` widget members default to `None` so they can be defined in `build` `Launcher._refresh_components` is not wrapped loaded world goes into `world_sources` so we can check if it's already loaded. (`WorldSource` can be ordered now without trying to compare `None` and `float`) (don't load empty directories so we don't detect them as worlds) * clarify that the installation is successful
- Loading branch information
Showing
6 changed files
with
110 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from typing import Literal | ||
from .layout import Layout | ||
|
||
|
||
class BoxLayout(Layout): | ||
orientation: Literal['horizontal', 'vertical'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
from typing import Any | ||
from typing import Any, Sequence | ||
|
||
from .widget import Widget | ||
|
||
|
||
class Layout(Widget): | ||
@property | ||
def children(self) -> Sequence[Widget]: ... | ||
|
||
def add_widget(self, widget: Widget) -> None: ... | ||
|
||
def remove_widget(self, widget: Widget) -> None: ... | ||
|
||
def do_layout(self, *largs: Any, **kwargs: Any) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from typing import Any, Callable | ||
|
||
|
||
class And: | ||
def __init__(self, __type: type, __func: Callable[[Any], bool]) -> None: ... | ||
|
||
|
||
class Or: | ||
def __init__(self, *args: object) -> None: ... | ||
|
||
|
||
class Schema: | ||
def __init__(self, __x: object) -> None: ... | ||
|
||
|
||
class Optional(Schema): | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters