Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bugfix] Fix ending dialog population breaking on double defined entries #98

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions components/zeus_ui/fn_endingDialog.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
private _endingArray = "true" configClasses (missionConfigFile >> "CfgDebriefing"); //Gather all endings

private _endingClasses = [];
private _endingTitles = [];
private _endingNames = [];

{
private _title = getText (_x >> "Title");

_endingTitles pushBackUnique _title;
private _subtitle = getText (_x >> "subtitle");

private _name = _title + " - " + _subtitle;

_endingNames pushBackUnique _name;

private _class = configName (_x);

Expand All @@ -19,7 +23,7 @@ private _endingTitles = [];

["Ending Dialog",
[
["COMBO", "Choose Ending:",[_endingClasses, _endingTitles,0]]
["COMBO", "Choose Ending:",[_endingClasses, _endingNames,0]]
],
{
params ["_dialogValues"];
Expand Down