Skip to content

In-game map preview plugin - #203

Merged
AsYlum- merged 4 commits into
masterfrom
feature/map-ingame-preview
Nov 20, 2026
Merged

AsYlum- merged 4 commits into
masterfrom
feature/map-ingame-preview

Conversation

@AsYlum-

@AsYlum- AsYlum- commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Map Preview plugin:

  • "In-game preview here" in the Map tab context menu shows the area around the clicked tile as the client draws it, in an OpenGL window. Land is drawn stretched over its corner heights and shaded by slope, statics are sorted as the client sorts them, and hues are applied.
  • Toolbar toggles for land, statics, stretched land, lighting, hues and hidden roofs. They are kept in the profile, so the next preview starts the same way.
  • A Max Z slider in steps of 5 hides statics at or above a height, and Auto cuts 16 above the ground at the centre of the area, as the client does under a roof. Cut land hides the land above the cut too, to show statics under the terrain.
  • Areas from 32 to 256 tiles square. Arrow buttons and arrow keys move the area by 1, 8, 16 or 32 tiles and keep the cut, and Go to (Ctrl+G) jumps to X, Y.
  • Fit, 1:1 and mouse wheel zoom, kept when another spot is previewed. The area exports to PNG.
  • One preview window is reused for every spot. It follows client reloads and map size changes, and files that cannot be read empty the view with the reason in the status bar.
  • Settings (area size, toggles, auto roof cut) are under Plugins.

Map:

  • The map context menu is split into groups by dividers, with each plugin's entries in a group of their own.

Code:

  • The multi editor's art atlas, shaders and camera move to a new UoFiddler.Rendering library shared by both GL plugins. It builds to plugins\UoFiddler.Rendering\ with the one OpenTK copy, so the multi editor no longer ships its own.

…endering

Plugins share one OpenTK copy in plugins\UoFiddler.Rendering\.
Map tab context menu opens an OpenGL view with stretched land, hues, roof cut and PNG export.
Area sizes, arrow moves and go to X, Y; toggles are kept in the profile.
Zoom, plugin entries and the multi editor extract get their own dividers.
@AsYlum- AsYlum- changed the title In-game map preview plugin, map context menu groups In-game map preview plugin Nov 20, 2026
@AsYlum-
AsYlum- merged commit dc6eae8 into master Nov 20, 2026
1 check passed
@AsYlum-
AsYlum- deleted the feature/map-ingame-preview branch November 20, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant