Skip to content

UI - Add map preview to Create MP Mission dialog - #1844

Merged
PabstMirror merged 2 commits into
CBATeam:masterfrom
Dystopian:add-map-preview-to-create-mp-mission-dialog
Aug 24, 2026
Merged

UI - Add map preview to Create MP Mission dialog#1844
PabstMirror merged 2 commits into
CBATeam:masterfrom
Dystopian:add-map-preview-to-create-mp-mission-dialog

Conversation

@Dystopian

Copy link
Copy Markdown
Contributor

When merged this pull request will:

  • title.
s50

_ctrlMaps setVariable [QGVAR(worldFeatures), _worldFeatures];

ctrlPosition _ctrlMaps params ["_mapsLeft", "_mapsTop", "_mapsWidth", "_mapsHeight"];
private _squareWidth = _mapsHeight * 3 / 4;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check this expression, because I completely do not understand how to correctly calculate it,
3/4 works for me, as well as safeZoneH / safeZoneW.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if the 3/4 refers to the 4:3 aspect ratio, which, as I understand it, safeZone{H,W} were designed to help abstract away.

Comment thread addons/ui/fnc_initDisplayRemoteMissions.sqf Outdated
Comment thread addons/ui/fnc_initDisplayRemoteMissions.sqf Outdated

ctrlPosition _ctrlMaps params ["_mapsLeft", "_mapsTop", "_mapsWidth", "_mapsHeight"];
private _squareWidth = _mapsHeight * 3 / 4;
private _mapsWidthNew = _mapsWidth - _squareWidth;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On square-ish aspect ratios this could possibly start to get cut-off
but I really don't think it will be a problem

we could do something like
if (_squareWidth > 0.5 * _mapsWidth) exitWith {}

to prevent the pic from taking too much of the horizontal,
but like I said I don't really think we need it unless someone has a problem

@PabstMirror PabstMirror added this to the 3.19.1 milestone Aug 23, 2026
Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
@PabstMirror
PabstMirror merged commit 887a6f3 into CBATeam:master Aug 24, 2026
3 checks passed
@Dystopian
Dystopian deleted the add-map-preview-to-create-mp-mission-dialog branch August 24, 2026 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants