createDisplay: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
MrPineapple (talk | contribs) No edit summary |
||
Line 50: | Line 50: | ||
Do not simply [[createDisplay]] form Arma 3's debug console, as it will crash the game. Instead use [[spawn]] scope: | Do not simply [[createDisplay]] form Arma 3's debug console, as it will crash the game. Instead use [[spawn]] scope: | ||
<code>[] [[spawn]] {[[findDisplay]] 46 [[createDisplay]] "RscObserver"};</code> | <code>[] [[spawn]] {[[findDisplay]] 46 [[createDisplay]] "RscObserver"};</code> | ||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> | |||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on November 15, 2014 - 13:20 (UTC)</dd> | |||
<dt class="note">[[User:MrPineapple|MrPineapple]]</dt> | |||
<dd class="note"> | |||
Arma3 v1.34 | |||
<br> | |||
<br> | |||
When using CreateDisplay instead of CreateDialog, all the commands for working with the controls of the display only work with the control version, not the IDC version. | |||
<br> | |||
<br> | |||
EXAMPLE: | |||
<code>LbAdd [1234, "item"]; // does not work on displays, and won't error either | |||
_ctrl LbAdd "item"; // does work with displays</code> | |||
<br> | |||
So you have to use the control(DisplayCtrl) and not the IDC. | |||
</dd> | </dd> | ||
</dl> | </dl> | ||
<!-- DISCONTINUE Notes --> | <!-- DISCONTINUE Notes --> |
Revision as of 14:20, 15 November 2014
Description
- Description:
- Create child display of given display and load from "resourceName". The notable difference between createDisplay and createDialog is that if child display class has movingEnable = 1; param, the player would be able to move whilst having control of the mouse pointer.
- Groups:
- Uncategorised
Syntax
- Syntax:
- parent createDisplay resourceName
- Parameters:
- parent: Display
- resourceName: String
- Return Value:
- Nothing
Examples
- Example 1:
findDisplay 46 createDisplay "RscObserver";
Additional Information
- See also:
- closeDisplaycreateDialog
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
Notes
Bottom Section
- Posted on August 23, 2014 - 23:36 (UTC)
- Killzone Kid
-
Do not simply createDisplay form Arma 3's debug console, as it will crash the game. Instead use spawn scope:
[] spawn {findDisplay 46 createDisplay "RscObserver"};
- Posted on November 15, 2014 - 13:20 (UTC)
- MrPineapple
-
Arma3 v1.34
When using CreateDisplay instead of CreateDialog, all the commands for working with the controls of the display only work with the control version, not the IDC version.
EXAMPLE:LbAdd [1234, "item"]; // does not work on displays, and won't error either _ctrl LbAdd "item"; // does work with displays
So you have to use the control(DisplayCtrl) and not the IDC.