Page MenuHomeFeedback Tracker

Add #define INIT_ATTRIBUTE to defineCommon.inc for 3DEN use
New, NormalPublic

Description

Essentially the same as INIT_CONTROL

#define INIT_CONTROL(NAME,PATH) \
	scriptName = ##NAME##;\
	scriptPath = ##PATH##;\
	onLoad = ["onLoad",_this,#NAME,'##PATH##',false] call INIT_DISPLAY_FUNCTION; \
	onUnload = ["onUnload",_this,#NAME,'##PATH##',false] call INIT_DISPLAY_FUNCTION;

but with attributeLoad and attributeSave added.

#define INIT_ATTRIBUTE(NAME,PATH) \
	scriptName = ##NAME##;\
	scriptPath = ##PATH##;\
	onLoad = ["onLoad",_this,#NAME,'##PATH##',false] call INIT_DISPLAY_FUNCTION; \
	attributeLoad = ["attributeLoad",_this,#NAME,'##PATH##',false] call INIT_DISPLAY_FUNCTION; \
	attributeSave = ["attributeSave",_this,#NAME,'##PATH##',false] call INIT_DISPLAY_FUNCTION;

onUnload does not appear to be used.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Modding

Event Timeline

Freddo3000 changed Severity from None to Feature.