Base map work

This commit is contained in:
2026-04-30 23:31:25 +02:00
parent 2d631f0669
commit f857a0a45c
9 changed files with 77 additions and 32 deletions

View File

@@ -6,6 +6,7 @@ from threading import Thread
import dearpygui.dearpygui as dpg
from dataflux.state import AppState
import dataflux.config
import dataflux.ui.windows
import dataflux.ui.worker
import dataflux.services.telemetry
@@ -15,6 +16,14 @@ def run() -> None:
# Create application context and viewport
dpg.create_context()
width, height, channels, data = dpg.load_image("map.png")
dataflux.config.MAP_IMAGE_WIDTH = width
dataflux.config.MAP_IMAGE_HEIGHT = height
with dpg.texture_registry(show=False):
dpg.add_static_texture(width=width, height=height, default_value=data, tag="texture_tab")
dpg.create_viewport(title='DataFlux', width=600, height=600)
# Add Inter font to registry and bind as main app font
@@ -47,4 +56,3 @@ def run() -> None: