|
| 1 | +from flexx import flx |
| 2 | + |
| 3 | +class SettingsWidget(flx.Widget): |
| 4 | + |
| 5 | + def init(self): |
| 6 | + with flx.VBox(): |
| 7 | + with flx.HBox(): |
| 8 | + with flx.VBox(): |
| 9 | + flx.Label(text='UE Download Folder') |
| 10 | + flx.Label(text='Project Version') |
| 11 | + self.symbols = flx.CheckBox(text="Download Symbols") |
| 12 | + self.autosync = flx.CheckBox(text="Always Auto-Sync") |
| 13 | + self.legacy = flx.CheckBox(text="Force Legacy Engine Archives") |
| 14 | + flx.Label(text='Git exe') |
| 15 | + flx.Label(text='Git LFS exe') |
| 16 | + with flx.VBox(): |
| 17 | + self.download = flx.LineEdit(placeholder_text="Folder to download Unreal Engine to", minsize=(400, 28), flex=1) |
| 18 | + self.version = flx.LineEdit(text="latest", flex=1) |
| 19 | + flx.Widget(flex=1, minsize=(10, 28)) |
| 20 | + flx.Widget(flex=1, minsize=(10, 28)) |
| 21 | + flx.Widget(flex=1, minsize=(10, 28)) |
| 22 | + self.exe_git = flx.LineEdit(placeholder_text="Custom Git exe to use instead of the default", minsize=(500, 28), flex=1) |
| 23 | + self.exe_git = flx.LineEdit(placeholder_text="Custom Git LFS exe to use instead of the default", minsize=(500, 28), flex=1) |
| 24 | + with flx.GroupWidget(title="Launch App"): |
| 25 | + with flx.VBox(): |
| 26 | + self.launch_editor = flx.RadioButton(text="Unreal Editor", checked=True) |
| 27 | + self.launch_vs = flx.RadioButton(text="Visual Studio") |
| 28 | + self.launch_rider = flx.RadioButton(text="Rider") |
| 29 | + self.launch_non = flx.RadioButton(text="None") |
| 30 | + with flx.GroupWidget(title="Engine Bundle"): |
| 31 | + with flx.VBox(): |
| 32 | + self.bundle_editor = flx.RadioButton(text="Editor (development only)", checked=True) |
| 33 | + self.bundle_engine = flx.RadioButton(text="Engine (can package game)") |
0 commit comments