mirror of
https://github.com/csd4ni3l/fractal-viewer.git
synced 2026-01-01 04:13:41 +01:00
update arcade dependency to development branch, add setting start
settings start category constant
This commit is contained in:
@@ -2,7 +2,7 @@ import copy, pypresence, json, os
|
||||
|
||||
import arcade, arcade.gui
|
||||
|
||||
from utils.constants import button_style, dropdown_style, slider_style, settings, discord_presence_id
|
||||
from utils.constants import button_style, dropdown_style, slider_style, settings, discord_presence_id, settings_start_category
|
||||
from utils.utils import FakePyPresence
|
||||
from utils.preload import button_texture, button_hovered_texture
|
||||
|
||||
@@ -25,7 +25,7 @@ class Settings(arcade.gui.UIView):
|
||||
self.on_radiobuttons = {}
|
||||
self.off_radiobuttons = {}
|
||||
|
||||
self.current_category = "Mandelbrot"
|
||||
self.current_category = settings_start_category
|
||||
|
||||
self.modified_settings = {}
|
||||
|
||||
@@ -54,7 +54,7 @@ class Settings(arcade.gui.UIView):
|
||||
|
||||
self.display_categories()
|
||||
|
||||
self.display_category("Mandelbrot")
|
||||
self.display_category(settings_start_category)
|
||||
|
||||
def display_categories(self):
|
||||
for category in settings:
|
||||
|
||||
@@ -7,4 +7,4 @@ requires-python = ">=3.11"
|
||||
dependencies = ["arcade", "pypresence>=4.3.0"]
|
||||
|
||||
[tool.uv.sources]
|
||||
arcade = { git = "https://github.com/pythonarcade/arcade.git", rev = "gui/controller" }
|
||||
arcade = { git = "https://github.com/pythonarcade/arcade.git", rev = "development" }
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
Pillow
|
||||
git+https://github.com/pythonarcade/arcade.git@gui/controller
|
||||
git+https://github.com/pythonarcade/arcade.git@development
|
||||
pypresence
|
||||
|
||||
@@ -43,3 +43,4 @@ settings = {
|
||||
},
|
||||
"Credits": {}
|
||||
}
|
||||
settings_start_category = "Mandelbrot"
|
||||
|
||||
4
uv.lock
generated
4
uv.lock
generated
@@ -5,7 +5,7 @@ requires-python = ">=3.11"
|
||||
[[package]]
|
||||
name = "arcade"
|
||||
version = "3.1.0"
|
||||
source = { git = "https://github.com/pythonarcade/arcade.git?rev=gui%2Fcontroller#ed17c937dd6fa7ebc59a2f56971fe1e2596ad46e" }
|
||||
source = { git = "https://github.com/pythonarcade/arcade.git?rev=development#a17e95502bc0c7cd0527445e62bff84a49183c43" }
|
||||
dependencies = [
|
||||
{ name = "pillow" },
|
||||
{ name = "pyglet" },
|
||||
@@ -78,7 +78,7 @@ dependencies = [
|
||||
|
||||
[package.metadata]
|
||||
requires-dist = [
|
||||
{ name = "arcade", git = "https://github.com/pythonarcade/arcade.git?rev=gui%2Fcontroller" },
|
||||
{ name = "arcade", git = "https://github.com/pythonarcade/arcade.git?rev=development" },
|
||||
{ name = "pypresence", specifier = ">=4.3.0" },
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user