Integrate a PrismaUI_F4-based HTML server browser and related tooling. Adds a ThirdParty submodule (framework-F4-Conversion), UI views (CommonwealthOnline browser HTML/JS/CSS), and multiple plugin headers/sources to bridge PrismaUI/Scaleform, handle menu input, and manage server browser data and actions (mock server list, join/connect flow). Key changes: - New build/deploy scripts: build-prismaui.bat, build-all.bat, deploy-all.bat, deploy-ui.bat and a PowerShell helper for linking the Ultralight SDK (ULTRALIGHT_SDK_PATH, default F:\\UltralightSDK). - Plugin additions: F4TPrismaUI, F4TScaleformUI, F4TServerBrowserBridge, F4TServerBrowserData, F4TMenuInput, F4TDebugOverlay and implementations to create/show/hide the HTML view, forward controller input, register Scaleform functions (openManager/closeManager), and push UI events. - Networking: add ConnectToServer(host,port) and keep ConnectToLocalServer() as wrapper; update connection logs and error handling. - Main menu SWF/AS updates: updated MainMenu.swf and MainMenu.as to call closeManager() when leaving multiplayer and to integrate open/close hooks. - Documentation: plugin/setup.md updated with PrismaUI build/deploy instructions. - Removed Main_ModManager.swf (deleted). Primary intent: provide an in-game HTML server browser (toggleable with F9 or Scaleform calls), wire up controller input, and add build/deploy workflow for PrismaUI/Ultralight so developers can build and deploy the UI and plugin together. Mock server data is used for now; network join/connect plumbing is provided for local/dev servers.
47 lines
1.1 KiB
Batchfile
47 lines
1.1 KiB
Batchfile
@echo off
|
|
setlocal EnableExtensions
|
|
|
|
set "SCRIPT_DIR=%~dp0"
|
|
set "FRAMEWORK_DIR=%SCRIPT_DIR%ThirdParty\framework-F4-Conversion"
|
|
set "UL_SDK=%ULTRALIGHT_SDK_PATH%"
|
|
|
|
if not defined UL_SDK set "UL_SDK=F:\UltralightSDK"
|
|
|
|
where xmake >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo xmake was not found on PATH.
|
|
exit /b 1
|
|
)
|
|
|
|
if not exist "%FRAMEWORK_DIR%\xmake.lua" (
|
|
echo Framework submodule missing. Run:
|
|
echo git submodule update --init --recursive ThirdParty/framework-F4-Conversion
|
|
exit /b 1
|
|
)
|
|
|
|
echo Linking Ultralight SDK from:
|
|
echo %UL_SDK%
|
|
powershell -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%scripts\setup-ultralight-link.ps1" -SdkPath "%UL_SDK%"
|
|
if errorlevel 1 (
|
|
echo Failed to link Ultralight SDK.
|
|
exit /b 1
|
|
)
|
|
|
|
cd /d "%FRAMEWORK_DIR%"
|
|
echo Configuring PrismaUI_F4...
|
|
xmake f --plat=windows --arch=x64 -m release
|
|
if errorlevel 1 exit /b 1
|
|
|
|
echo Building PrismaUI_F4...
|
|
xmake build -r PrismaUI_F4
|
|
if errorlevel 1 exit /b 1
|
|
|
|
echo.
|
|
echo PrismaUI_F4 build succeeded.
|
|
for /r "%FRAMEWORK_DIR%\build" %%F in (PrismaUI_F4.dll) do (
|
|
if exist "%%F" echo %%F
|
|
)
|
|
|
|
endlocal
|
|
exit /b 0
|