updated binaries

This commit is contained in:
dlannan 2025-10-23 14:45:32 +10:30
parent 990494e297
commit 892fdacbfa
31 changed files with 18 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/linux/libduktape_dll.so Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,2 +1 @@
[Info] settings.load projectpath nil, using default settings. [Info] settings.load projectpath nil, using default settings.
[Info] panel.loadconfig: Loaded path - .\projects\cube_sapp\cube_sapp.slp

View File

@ -20,6 +20,7 @@ local ffi = require("ffi")
-- -------------------------------------------------------------------------------------- -- --------------------------------------------------------------------------------------
local smgr = require("engine.utils.statemanager")
local engineState = require("engine.state_engine") local engineState = require("engine.state_engine")
-- -------------------------------------------------------------------------------------- -- --------------------------------------------------------------------------------------
@ -111,6 +112,12 @@ local function input(event)
-- Only kick things off once the window is ready. -- Only kick things off once the window is ready.
if(event.type == sapp.SAPP_EVENTTYPE_RESIZED) then if(event.type == sapp.SAPP_EVENTTYPE_RESIZED) then
engineState.ready = true engineState.ready = true
if(mainState.ctx) then
local w = sapp.sapp_widthf()
local h = sapp.sapp_heightf()
local mainGui = smgr:GetState("mainGui")
mainGui:ReSize(w, h)
end
end end
engineState.input(event, {}) engineState.input(event, {})

View File

@ -91,6 +91,14 @@ end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
function SmainGui:ReSize( w, h )
package.loaded["data.gui.panels.panels"] = nil
panels = require("data.gui.panels.panels")
panels.windows.panel_master.parent = { size = { w, h } }
end
------------------------------------------------------------------------------------------------------------
function SmainGui:Screenshot() function SmainGui:Screenshot()
self.do_screenshot = true self.do_screenshot = true
end end

View File

@ -285,7 +285,7 @@ build.panel = function(ctx)
local r = nk.nk_window_get_content_region(ctx) local r = nk.nk_window_get_content_region(ctx)
local flags = nk.NK_WINDOW_BORDER local flags = nk.NK_WINDOW_BORDER
build.curr_tab = wdgts.widget_notebook(ctx, "assets", flags, project_tabs, build.curr_tab, r.h-60, 120) build.curr_tab = wdgts.widget_notebook(ctx, "assets", flags, project_tabs, build.curr_tab, r.h-80, 120)
-- display_section(ctx, "graphics") -- display_section(ctx, "graphics")
-- display_section(ctx, "audio") -- display_section(ctx, "audio")

View File

@ -26,6 +26,7 @@ local defaults = {
} }
} }
-- This is global - dont freak out. All variables are technically global :) (Live under _G)
engineState = {} engineState = {}
engineState.queued = {} engineState.queued = {}
engineState.events = defaults engineState.events = defaults

View File

@ -99,7 +99,7 @@ local function setup_font(ctx)
image, fonts[3] = font_loader(atlas, font_path.."ProggyClean.ttf", 18.0, nil) image, fonts[3] = font_loader(atlas, font_path.."ProggyClean.ttf", 18.0, nil)
-- Dump the atlas to check it. -- Dump the atlas to check it.
stb.stbi_write_png( "samples/font/atlas_font.png", master_img_width[0], master_img_height[0], 4, image, master_img_width[0] * 4) stb.stbi_write_png( "data/temp/atlas_font.png", master_img_width[0], master_img_height[0], 4, image, master_img_width[0] * 4)
-- print(master_img_width[0], master_img_height[0], 4) -- print(master_img_width[0], master_img_height[0], 4)
local nk_img = font_atlas_img(image) local nk_img = font_atlas_img(image)