forked from NPLPackages/main
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
2,047 additions
and
2,418 deletions.
There are no files selected for viewing
Binary file not shown.
4,252 changes: 1,854 additions & 2,398 deletions
4,252
config/Aries/creator/language/paracraft_enUS.po
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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 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 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
32 changes: 32 additions & 0 deletions
32
script/apps/Aries/Creator/Game/Movie/CopyActorTimeSeries.html
This file contains 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,32 @@ | ||
<!-- "script/apps/Aries/Creator/Game/Movie/CopyActorTimeSeries.html" --> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title></title> | ||
</head> | ||
<body> | ||
<pe:mcml> | ||
<script refresh="false" type="text/npl" src="CopyActorTimeSeries.lua"><![CDATA[ | ||
CopyActorTimeSeries = commonlib.gettable("MyCompany.Aries.Game.Movie.CopyActorTimeSeries"); | ||
CopyActorTimeSeries.OnInit(); | ||
]]></script> | ||
<aries:window mode="thin" style="width:512px;" title='<%=L"复制关键帧"%>' onclose="CopyActorTimeSeries.OnClose"> | ||
<div style="margin: 10px; margin-bottom: 15px; color: #ffffff;"> | ||
<pe:gridview name="nameGvw" style="height:300px;" DataSource="<%=CopyActorTimeSeries.GetDs%>" CellPadding="0" DefaultNodeHeight = "34" ItemsPerLine="3" AllowPaging="false" pagesize="512"> | ||
<Columns> | ||
<div style="float:left;height:30px;min-width:120px"> | ||
<input name="<%=Eval('name')>" type="checkbox" checked="checked"/> | ||
<div style="float:left;" for="<%=Eval('name')>"><%=Eval("displayName")%></div> | ||
</div> | ||
</Columns> | ||
</pe:gridview> | ||
<hr /> | ||
<div style="margin-top:10px;"> | ||
<input type="button" name="OK" DefaultButton="true" style="margin-left:260px;min-width:70px;" class="mc_light_grey_button_with_fillet" onclick="CopyActorTimeSeries.OnClickCopy" value='<%=L"复制"%>' /> | ||
</div> | ||
</div> | ||
</aries:window> | ||
</pe:mcml> | ||
</body> | ||
</html> |
107 changes: 107 additions & 0 deletions
107
script/apps/Aries/Creator/Game/Movie/CopyActorTimeSeries.lua
This file contains 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,107 @@ | ||
--[[ | ||
Title: copy actor time series | ||
Author(s): LiXizhi | ||
Date: 2020/3/9 | ||
Desc: copy and paste actor time series | ||
use the lib: | ||
------------------------------------------------------- | ||
NPL.load("(gl)script/apps/Aries/Creator/Game/Movie/CopyActorTimeSeries.lua"); | ||
local CopyActorTimeSeries = commonlib.gettable("MyCompany.Aries.Game.Movie.CopyActorTimeSeries"); | ||
CopyActorTimeSeries.ShowPage() | ||
------------------------------------------------------- | ||
]] | ||
NPL.load("(gl)script/apps/Aries/Creator/Game/Movie/MovieClipTimeLine.lua"); | ||
local MovieClipTimeLine = commonlib.gettable("MyCompany.Aries.Game.Movie.MovieClipTimeLine"); | ||
|
||
local CopyActorTimeSeries = commonlib.gettable("MyCompany.Aries.Game.Movie.CopyActorTimeSeries"); | ||
|
||
local page; | ||
local nameDS = {}; | ||
function CopyActorTimeSeries.OnInit() | ||
page = document:GetPageCtrl(); | ||
end | ||
|
||
function CopyActorTimeSeries.GetDs(index) | ||
if(not index) then | ||
return #nameDS; | ||
else | ||
return nameDS[index]; | ||
end | ||
end | ||
|
||
function CopyActorTimeSeries.CreatePropertyDs(actor) | ||
local ds = {}; | ||
if(actor) then | ||
if(actor:CanShowCommandVariables()) then | ||
local cmdActor = self:GetCmdActor(true); | ||
if(cmdActor) then | ||
for index, name in ipairs(cmdActor:GetEditableVariableList()) do | ||
if(name ~= "---") then | ||
ds[#ds+1] = {name=name, displayName = MovieClipTimeLine:GetVariableDisplayName(name), }; | ||
end | ||
end | ||
end | ||
end | ||
for index, name in ipairs(actor:GetEditableVariableList()) do | ||
if(name ~= "---") then | ||
ds[#ds+1] = {name=name, displayName = MovieClipTimeLine:GetVariableDisplayName(name), }; | ||
end | ||
end | ||
end | ||
return ds | ||
end | ||
|
||
-- @param OnOK: function(values) end | ||
-- @param old_value: {name="ximi", isAgent=true, isServer=false} | ||
function CopyActorTimeSeries.ShowPage(actor, fromTime, toTime) | ||
CopyActorTimeSeries.result = nil; | ||
|
||
actor = actor or MovieClipTimeLine:GetSelectedActor(); | ||
if(not actor) then | ||
return | ||
end | ||
nameDS = CopyActorTimeSeries.CreatePropertyDs(actor) | ||
|
||
local params = { | ||
url = "script/apps/Aries/Creator/Game/Movie/CopyActorTimeSeries.html", | ||
name = "CopyActorTimeSeries.ShowPage", | ||
isShowTitleBar = false, | ||
DestroyOnClose = true, | ||
bToggleShowHide=false, | ||
style = CommonCtrl.WindowFrame.ContainerStyle, | ||
allowDrag = true, | ||
click_through = false, | ||
enable_esc_key = true, | ||
bShow = true, | ||
isTopLevel = true, | ||
app_key = MyCompany.Aries.Creator.Game.Desktop.App.app_key, | ||
directPosition = true, | ||
align = "_ct", | ||
x = -256, | ||
y = -200, | ||
width = 512, | ||
height = 400, | ||
}; | ||
System.App.Commands.Call("File.MCMLWindowFrame", params); | ||
end | ||
|
||
|
||
function CopyActorTimeSeries.UpdateUIFromValue(values) | ||
if(page and values) then | ||
page:SetValue("name", values.name or ""); | ||
end | ||
end | ||
|
||
function CopyActorTimeSeries.OnClickCopy() | ||
if(page) then | ||
local v = {}; | ||
local isServer = page:GetValue("isServer") or false; | ||
v.isServer = isServer; | ||
CopyActorTimeSeries.last_values = v; | ||
page:CloseWindow(); | ||
end | ||
end | ||
|
||
function CopyActorTimeSeries.OnClose() | ||
page:CloseWindow(); | ||
end |
This file contains 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 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 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