BIS fnc GUIhint: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {{Function|Comments=" to "{{Function|Comments=")
m (Some wiki formatting)
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| tkoh |Game name=
|game1= tkoh
|version1= 1.00


|1.00|Game version=
|game2= arma3
____________________________________________________________________________________________
|version2= 0.50


| <pre>/*
|gr1= GUI
 
|descr= <pre>/*


Description:
Description:
Line 34: Line 36:
* lbId: NUMBER - selected listbox item (when listbox was used)
* lbId: NUMBER - selected listbox item (when listbox was used)
*/
*/
</pre>


#define DISPLAY_CLASS 'Hsim_RscDisplayCommonHint_guiHint'
{{Wiki|placeholder}}
#define DISPLAY_CONFIG (configfile >> "RscDisplayCommonHint")
|s1= <!-- [] call [[BIS_fnc_GUIhint]] -->
#define DISPLAY (uinamespace getvariable DISPLAY_CLASS)
#define CONTROL (DISPLAY displayctrl _idc)
 
#define CONTROL_FADEINTIME 0.3
#define CONTROL_FADEIN \
CONTROL ctrlsetfade 1; \
CONTROL ctrlcommit 0; \
CONTROL ctrlsetfade 0; \
CONTROL ctrlcommit CONTROL_FADEINTIME;
 
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |DESCRIPTION=
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_GUIhint]]; --> |SYNTAX=
 
|p1= |PARAMETER1=


| |RETURNVALUE=
|r1=
____________________________________________________________________________________________


|x1= <code></code> |EXAMPLE1=
|x1=
____________________________________________________________________________________________
 
| [[BIS_fnc_GUImessage]] |SEEALSO=


|seealso= [[BIS_fnc_GUImessage]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: GUI|{{uc:GUIhint}}]]
[[Category:Functions|{{uc:GUIhint}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:GUIhint}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:GUIhint}}]]

Latest revision as of 11:37, 6 May 2024

Hover & click on the images for description

Description

Description:
/*

	Description:
	Creates advanced hintC dialog

	Parameter(s):
	_this select 0: ARRAY in format
		[text,picture]
			* text: STRING - hint text
			* picture: STRING - picture
		[item1,item2...] - Listbox item ARRAYs in format
			[itemText,itemDescription,picture,icon]
				* itemText: STRING - Text displayed in listbox
				* itemDescription (Optional): STRING - text displayed after clicking on item
				* picture (Optional): STRING - picture displayed after clicking on item
				* icon (Optional): STRING - icon displayed in listbox left from text
	_this select 1 (Optional): STRING - hint header
	_this select 2 (Optional): ARRAY - [STRING,CODE,NUMBER] - text on left button (when "", button is hidden), code executed upon clicking and fade out delay. If only text is present, button is disabled.
	_this select 3 (Optional): ARRAY - [STRING,CODE,NUMBER] - STRING - text on right button and code executed upon clicking
	_this select 4 (Optional): ARRAY - [STRING,CODE,NUMBER] - STRING - text on middle button and code executed upon clicking
	_this select 5 (Optional): NUMBER or ARRAY - width or [width,height] of picture (in grid coordinates). Width > 17 means only picture is used.

	Returns:
	ARRAY - [endState(,lbId)]
		* endState: NUMBER - 1 when clicked on right button, -1 when clicked on left button, 0 when escaped
		* lbId: NUMBER - selected listbox item (when listbox was used)
*/
🏗
Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki.
Execution:
call
Groups:
GUI

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

Examples

Examples:
Example needed

Additional Information

See also:
BIS_fnc_GUImessage

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note