Skip to content

UI - Add remembering of last selected world and mission to Create MP Mission dialog - #1845

Open
Dystopian wants to merge 3 commits into
CBATeam:masterfrom
Dystopian:add-remember-last-world
Open

UI - Add remembering of last selected world and mission to Create MP Mission dialog#1845
Dystopian wants to merge 3 commits into
CBATeam:masterfrom
Dystopian:add-remember-last-world

Conversation

@Dystopian

Copy link
Copy Markdown
Contributor

When merged this pull request will:

  • title.

Requires #1844 (shared code piece).

Comment thread addons/ui/fnc_initDisplayRemoteMissions.sqf Outdated
Comment thread addons/ui/fnc_initDisplayRemoteMissions.sqf Outdated
_ctrlMissions lbSetPicture [_index, _picture];
_ctrlMissions lbSetPictureRight [_index, _pictureRight];
_ctrlMissions lbSetTooltip [_index, format ["%1", _data]];
if (_selectIndex == -1 || {_data isEqualTo _lastMission}) then {

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.

Suggested change
if (_selectIndex == -1 || {_data isEqualTo _lastMission}) then {
if (_selectIndex isEqualTo -1 || _data isEqualTo _lastMission) then {

isEqualTo is faster than lazy eval. How big the _data is I don't have a clue, but it probly doesn't matter very much.

Comment thread addons/ui/fnc_initDisplayRemoteMissions.sqf Outdated
@Dystopian
Dystopian force-pushed the add-remember-last-world branch from 04a87b0 to fcc837c Compare August 24, 2026 08:01
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.

3 participants