display3denCopy – Arma 3

From Bohemia Interactive Community
Jump to navigation Jump to search
(removed workaround that has now been fixed)
m (Some wiki formatting)
Line 1: Line 1:
[[File:A3 display3denCopy.png|thumb|display3denCopy with some example text|500px]]
[[File:A3 display3denCopy.png|thumb|display3denCopy with some example text|500px]]
In [[Eden Editor]], display3denCopy can be accessed to offer the user a way to inspect and copy long texts.  
In [[Eden Editor]], display3denCopy can be accessed to offer the user a way to inspect and copy long texts.  


== Open the Display ==
== Open the Display ==
The display can be opened in [[Eden Editor]] by executing {{ic|[[findDisplay]] 313 [[createDisplay]] "display3denCopy";}}. While the display is mainly meant to be used inside the Editor it can also be used outside of it. To do so, just replace {{ic|313}} with the IDD of your parent display.
 
The display can be opened in [[Eden Editor]] by executing <sqf inline>findDisplay 313 createDisplay "display3denCopy";</sqf>. While the display is mainly meant to be used inside the Editor it can also be used outside of it. To do so, just replace {{hl|313}} with the IDD of your parent display.


=== Adding Custom Text ===
=== Adding Custom Text ===
In order to display some text inside the edit box, one has to define the data. This is done via an [[uiNamespace]] variable like so:
In order to display some text inside the edit box, one has to define the data. This is done via an [[uiNamespace]] variable like so:
[[uiNamespace]] [[setVariable]] ["display3DENCopy_data", ["Text displayed as header", "Text the user can copy and inspect"]];
<sqf>uiNamespace setVariable ["display3DENCopy_data", ["Text displayed as header", "Text the user can copy and inspect"]];</sqf>
 
   
   
[[Category:GUI Topics]]
[[Category:GUI Topics]]
[[Category: Eden Editor: Modding]]
[[Category: Eden Editor: Modding]]

Revision as of 01:05, 22 July 2022

display3denCopy with some example text

In Eden Editor, display3denCopy can be accessed to offer the user a way to inspect and copy long texts.


Open the Display

The display can be opened in Eden Editor by executing findDisplay 313 createDisplay "display3denCopy";. While the display is mainly meant to be used inside the Editor it can also be used outside of it. To do so, just replace 313 with the IDD of your parent display.

Adding Custom Text

In order to display some text inside the edit box, one has to define the data. This is done via an uiNamespace variable like so:

uiNamespace setVariable ["display3DENCopy_data", ["Text displayed as header", "Text the user can copy and inspect"]];