-
Notifications
You must be signed in to change notification settings - Fork 748
Intel items - Add header text to all document types #10847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
51be9ec
Added header attribute to intel items
prisonerMO 64d02e8
Photo control value
prisonerMO 3fd50b7
Removed diag_logs
prisonerMO 9b61eaa
Added name to authors
prisonerMO 20b3a25
Changed zeus label to edit
prisonerMO 494f133
Update header if only header defined via attributes
prisonerMO 3cf18aa
added set header data function and get set
prisonerMO af6644b
Update addons/intelitems/stringtable.xml
prisonerMO e4c7fe4
Update addons/intelitems/functions/fnc_setObjectHeader.sqf
prisonerMO c889677
Update addons/intelitems/functions/fnc_setObjectHeader.sqf
prisonerMO f139782
Update addons/intelitems/functions/fnc_setObjectData.sqf
prisonerMO 3cf7045
Keep header '' if not defined
prisonerMO 192a408
Update script_component.hpp
prisonerMO 5db8fe3
Update addons/intelitems/script_component.hpp
prisonerMO 3d8be78
Update addons/intelitems/functions/fnc_pickup.sqf
prisonerMO 5e9850a
Update addons/intelitems/functions/fnc_addIntel.sqf
prisonerMO 1fcbf60
Update addons/intelitems/functions/fnc_setObjectHeader.sqf
prisonerMO 53131df
Update addons/intelitems/functions/fnc_setObjectHeader.sqf
prisonerMO fd80f26
Readd deleted comment and get header only if needed
johnb432 ad579c9
Make data optional
johnb432 16de507
Use params
johnb432 5899942
Add space
johnb432 fcb2f8b
Add missing argument in function header
johnb432 4a5dccf
Sort stringtable, readd space
johnb432 cdc9aee
Remove unused macro
johnb432 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -154,6 +154,7 @@ PaxJaromeMalues <[email protected]> | |
| Phyma <[email protected]> | ||
| PiZZADOX <[email protected]> | ||
| pokertour | ||
| Prisoner | ||
| Professor <[email protected]> | ||
| Pterolatypus <[email protected]> | ||
| QuantX | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| #include "..\script_component.hpp" | ||
| /* | ||
| * Author: PabstMirror, mharis001 | ||
| * Sets the intel header for an object. Used by 3DEN and Zeus attributes. | ||
| * | ||
| * Arguments: | ||
| * 0: Object <OBJECT> | ||
| * 1: Header <STRING> | ||
| * | ||
| * Return Value: | ||
| * None | ||
| * | ||
| * Example: | ||
| * [cursorObject, "New Header"] call ace_intelitems_fnc_setObjectHeader | ||
| * | ||
| * Public: No | ||
| */ | ||
|
|
||
| params ["_object", "_header"]; | ||
| TRACE_1("setObjectHeader",_this); | ||
| private _data = ""; | ||
| private _index = _object getVariable [QGVAR(index), -1]; | ||
| if (_index == -1) then { | ||
| _index = GVAR(intelCount); | ||
| GVAR(intelCount) = GVAR(intelCount) + 1; | ||
| _object setVariable [QGVAR(index), _index, true]; | ||
| } else { | ||
| _data = GET_DATA(_index) select 0; | ||
| }; | ||
| SET_DATA(_index,_data,_header); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.