forked from Mirrors/openclonk
Golden statue: Getters for editor actions
parent
e4912b9fda
commit
5eaa5703a0
|
@ -38,6 +38,7 @@ public func Definition(proplist type)
|
|||
Name = "$ChoosePose$",
|
||||
EditorHelp = "$ChoosePoseHelp$",
|
||||
Options = [],
|
||||
AsyncGet = "GetAction",
|
||||
Set = "SetAction",
|
||||
};
|
||||
}
|
||||
|
@ -63,6 +64,7 @@ public func Definition(proplist type)
|
|||
Name = "$ChooseItemLeft$",
|
||||
EditorHelp = "$ChooseItemHelp$",
|
||||
Options = [],
|
||||
AsyncGet = "EditorGetItemLeft",
|
||||
Set = "EditorSetItemLeft",
|
||||
};
|
||||
}
|
||||
|
@ -74,6 +76,7 @@ public func Definition(proplist type)
|
|||
Name = "$ChooseItemRight$",
|
||||
EditorHelp = "$ChooseItemHelp$",
|
||||
Options = [],
|
||||
AsyncGet = "EditorGetItemRight",
|
||||
Set = "EditorSetItemRight",
|
||||
};
|
||||
}
|
||||
|
@ -152,6 +155,16 @@ private func EditorSetItem(proplist item_info, string parent_bone, proplist save
|
|||
save_settings.Choice = item_info;
|
||||
}
|
||||
|
||||
private func EditorGetItemLeft()
|
||||
{
|
||||
return this.EditorProps.IdolItemL.Choice;
|
||||
}
|
||||
|
||||
private func EditorGetItemRight()
|
||||
{
|
||||
return this.EditorProps.IdolItemR.Choice;
|
||||
}
|
||||
|
||||
|
||||
/*-- Scenario saving --*/
|
||||
|
||||
|
|
Loading…
Reference in New Issue