File size: 1,262 Bytes
b6a38d7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
DefineClass.XPlaceMultipleObjectsTool = {
	__parents = { "XEditorBrushTool", "XEditorObjectPalette", "XPlaceMultipleObjectsToolBase" },
	properties = {
		slider = true, persisted_setting = true, auto_select_all = true,
		{ id = "AngleDeviation", name = "Angle deviation", editor = "number", default = 0, min = 0, max = 180, step = 1, },
		{ id = "Scale", editor = "number", default = 100, min = 10, max = 250, step = 1, },
		{ id = "ScaleDeviation", name = "Scale deviation", editor = "number", default = 0, min = 0, max = 100, step = 1, },
		{ id = "ColorMin", name = "Color min", editor = "color", default = RGB(100, 100, 100), },
		{ id = "ColorMax", name = "Color max", editor = "color", default = RGB(100, 100, 100), },
	},
	
	ToolTitle = "Place multiple objects",
	
	ActionSortKey = "06",
	ActionIcon = "CommonAssets/UI/Editor/Tools/PlaceMultipleObject.tga", 
	ActionShortcut = "A",
}

function XPlaceMultipleObjectsTool:GetParams()
	return self.terrain_normal, self:GetScale(), self:GetScaleDeviation(), self:GetAngleDeviation(), self:GetColorMin(), self:GetColorMax()
end

function XPlaceMultipleObjectsTool:GetClassesForDelete()
	return self:GetObjectClass()
end

function XPlaceMultipleObjectsTool:GetClassesForPlace()
	return self:GetObjectClass()
end