Skip to content

DynamicGroups: Players can change group insignia by clicking on insignia image#12

Draft
dijksterhuis wants to merge 3 commits intoSavage-Game-Design:developmentfrom
dijksterhuis:dyngroups-players-choose-group-insignia
Draft

DynamicGroups: Players can change group insignia by clicking on insignia image#12
dijksterhuis wants to merge 3 commits intoSavage-Game-Design:developmentfrom
dijksterhuis:dyngroups-players-choose-group-insignia

Conversation

@dijksterhuis
Copy link
Contributor

Before: players had to repeatedly join/leave a group to get an insignia they might have liked.

After: players can change the insignia after joining the group (click on the insignia image in the menu).


Also, restricted insignias to only VN as they are period accurate.

@dijksterhuis dijksterhuis self-assigned this Sep 15, 2025
@dijksterhuis dijksterhuis marked this pull request as draft September 15, 2025 22:49
(configfile >> "CfgUnitInsignia") call BIS_fnc_getCfgSubClasses;
private _allInsignias = (configfile >> "CfgUnitInsignia") call BIS_fnc_getCfgSubClasses;
_allInsignias
select {(_x select [0, 2] isEqualTo "vn") && !(_x in ["vn_ccn_badge_01", "vn_ccn_badge_02", "vn_ccn_badge_03","vn_ccn_badge_04","vn_ccn_badge_05"])}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

needs tidying up / compacting

// Add event handlers to group picture/icon
_iconPicture ctrlAddEventHandler ["MouseEnter", { with uiNamespace do { ["OnGroupIconMouseEnter", _this] call DISPLAY; }; }];
_iconPicture ctrlAddEventHandler ["MouseExit", { with uiNamespace do { ["OnGroupIconMouseExit", _this] call DISPLAY; }; }];
_iconPictureButton ctrlAddEventHandler ["ButtonClick", { with uiNamespace do { ["OnGroupIconButtonClick", _this] call DISPLAY; }; }];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

would really like onMouseButtonClick here but it seems to throw errors when i try

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