setDiarySubjectPicture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Some wiki formatting)
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3dev
|game1= arma3
|version1= 2.04


|2.03
|arg= global


|gr1=  
|eff= local
|gr2= Briefing


| Sets a picture to be displayed on the right of the [[Diary]] subject. The picture can also be set during custom [[Diary]] subject [[createDiarySubject | creation]], but this command also allows to change icon for the fixed subjects, like "Tasks", "Diary", "Units", "Players" and "Statistics".
|gr1= Briefing


| person [[setDiarySubjectPicture]] [subject, picture]
|descr= Sets a picture to be displayed on the right of the [[Diary]] subject. The picture can also be set during custom [[Diary]] subject [[createDiarySubject | creation]], but this command also allows to change icon for the fixed subjects, like "Tasks", "Diary", "Units", "Players" and "Statistics".


|p1= person: [[Object]] - player
|s1= unit [[setDiarySubjectPicture]] [subject, picture]
|p2= [subject, picture]: [[Array]]


|p3= subject: [[String]] - diary subject (see [[Diary]])
|p1= unit: [[Object]] - Unit
|p4= picture: [[String]] - icon path


| [[Nothing]]
|p2= subject: [[String]] - Diary subject (see [[Diary]])


|x1= <code>[[player]] [[setDiarySubjectPicture]] ["Diary", "\A3\ui_f\data\map\markers\nato\o_mech_inf.paa"];</code>
|p3= picture: [[String]] - Icon path


| [[createDiarySubject]], [[diarySubjectExists]], [[Diary]]
|r1= [[Nothing]]


|
|x1= <sqf>player setDiarySubjectPicture ["Diary", "\A3\ui_f\data\map\markers\nato\o_mech_inf.paa"];</sqf>
 
|seealso= [[createDiarySubject]] [[removeDiarySubject]] [[selectDiarySubject]] [[diarySubjectExists]] [[allDiarySubjects]] [[Diary]]
}}
}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 18:30, 5 May 2022

Hover & click on the images for description

Description

Description:
Sets a picture to be displayed on the right of the Diary subject. The picture can also be set during custom Diary subject creation, but this command also allows to change icon for the fixed subjects, like "Tasks", "Diary", "Units", "Players" and "Statistics".
Groups:
Briefing

Syntax

Syntax:
unit setDiarySubjectPicture [subject, picture]
Parameters:
unit: Object - Unit
subject: String - Diary subject (see Diary)
picture: String - Icon path
Return Value:
Nothing

Examples

Example 1:
player setDiarySubjectPicture ["Diary", "\A3\ui_f\data\map\markers\nato\o_mech_inf.paa"];

Additional Information

See also:
createDiarySubject removeDiarySubject selectDiarySubject diarySubjectExists allDiarySubjects Diary

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