Page MenuHomeFeedback Tracker

[Feature Request] control "action" params (_this) must contain the control itself
New, NormalPublic

Description

https://community.bistudio.com/wiki/DialogControls-Buttons#CT_BUTTON.3D1
The params of action contains just an empty string?! Why?! At the very least it should give us the control:

[control#IDC]

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
Feature Request

Event Timeline

Leopard20 renamed this task from [Feature Request] control action params (_this) must contain the control itself to [Feature Request] control "action" params (_this) must contain the control itself.
R3vo added a subscriber: R3vo.Oct 21 2020, 8:54 PM

I guess action is kinda deprecated, use https://community.bistudio.com/wiki/User_Interface_Event_Handlers#onButtonClick instead. It has everything you need.

h- added a subscriber: h-.EditedOct 22 2020, 5:41 AM

'action' is some old OFP era relic I guess, it also seems to have a length limit so if you're in a bad habit like me and writing code into those config events you might end up scratching your head when code breaks with weird errors

R3vo removed a subscriber: R3vo.May 2 2021, 1:36 PM