Replace the bare-bones stock map with a full Dear ImGui in-game overlay (M key). The overlay shares the same toolbar and compass as the OS popout window: Follow, Pop Out, Gear, rotation compass. Pop Out button is now in the bottom toolbar where it is actually visible. Pressing it (or F10) closes the overlay, waits 0.5 s for the camera to release, then opens the OS popout window. Closing the popout restores the overlay if it was running when the launch was triggered. Pressing M while the popout is open closes the popout and reopens the overlay. Harmony patches intercept MapWindow.Toggle and Show so base-game "Show on map" links and the map hotkey both route through the S3 overlay. MapBypass lets internal S3 calls through without triggering the patch recursively. Camera ownership is enforced in LateUpdate so no base-game script can reset targetTexture before the camera renders. Object.Destroy replaces Release() on both RT teardown paths so the D3D address stays live until end-of-frame and cannot be recycled into a new RT mid-frame.
31 lines
1.1 KiB
PowerShell
31 lines
1.1 KiB
PowerShell
# Build S³ and package a drag-install zip for Forgejo downloads.
|
|
# .\dist\build-release.ps1
|
|
# Produces dist\SetonsSpecialSauce-<version>.zip with the layout:
|
|
# S3/Info.json
|
|
# S3/S3.dll
|
|
# S3/S3Native.dll (when the native module is present)
|
|
|
|
param(
|
|
[string]$Configuration = "Release"
|
|
)
|
|
|
|
. (Join-Path $PSScriptRoot "build-common.ps1")
|
|
|
|
$managed = Invoke-ManagedBuild -Configuration $Configuration
|
|
$native = Invoke-NativeBuild -Configuration $Configuration
|
|
|
|
$stageRoot = Join-Path $PSScriptRoot "stage"
|
|
$modDir = Join-Path $stageRoot $ModId
|
|
if (Test-Path $stageRoot) { Remove-Item $stageRoot -Recurse -Force }
|
|
New-Item -ItemType Directory -Force -Path $stageRoot | Out-Null
|
|
|
|
New-ModLayout -DestModDir $modDir -ManagedDll $managed -NativeDll $native
|
|
|
|
$version = Get-ModVersion
|
|
$zip = Join-Path $PSScriptRoot "SetonsSpecialSauce-$version.zip"
|
|
if (Test-Path $zip) { Remove-Item $zip -Force }
|
|
|
|
# Zip the S3 folder itself so the archive root contains S3\ — what UMM expects.
|
|
Compress-Archive -Path $modDir -DestinationPath $zip -Force
|
|
|
|
Write-Host "=== Release zip ready: $zip ===" -ForegroundColor Green
|