ctrlText – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
(Example provided)
Line 4: Line 4:
Can anyone confirm?
Can anyone confirm?
--[[User:HeliJunkie|HeliJunkie]] 21:49, 16 June 2010 (CEST)
--[[User:HeliJunkie|HeliJunkie]] 21:49, 16 June 2010 (CEST)
BI uses it in many scripts. For example in the newdedicatedserverinterface.sqf:
_editPassControl = _display displayCtrl 1113;
_password = ctrlText _editPassControl;
Best check their scripts to learn more. Seems like it wants a control and no idc.
Edit: Warfare has one with IDC (GUI_UpdateDiplomacyMenuEvent.sqf):
_text = CtrlText IDCGENERICTEXT;
Ff it actually works is a different topic. Anyway just go by the control.
--[[User:Kju|Kju]] 22:12, 16 June 2010 (CEST)

Revision as of 21:12, 16 June 2010

First form of syntax

String = ctrlText idc 

doesn't work for me. Can anyone confirm? --HeliJunkie 21:49, 16 June 2010 (CEST)

BI uses it in many scripts. For example in the newdedicatedserverinterface.sqf:

_editPassControl = _display displayCtrl 1113;
_password = ctrlText _editPassControl;

Best check their scripts to learn more. Seems like it wants a control and no idc.

Edit: Warfare has one with IDC (GUI_UpdateDiplomacyMenuEvent.sqf):

_text = CtrlText IDCGENERICTEXT;

Ff it actually works is a different topic. Anyway just go by the control.

--Kju 22:12, 16 June 2010 (CEST)