welderfoundation / welderenginerevamp Goto Github PK
View Code? Open in Web Editor NEWMajor overhaul of the Zero Engine and renaming to Welder.
License: Other
Major overhaul of the Zero Engine and renaming to Welder.
License: Other
Windows launcher build 0.0.25.2058
It uses the SDL platform, and the cursor works on Linux and Windows, but not in Emscripten. This may have to do with the canvas element.
Windows build 0.0.25.2058
The editor crashes. Seems to work with copying/pasting game objects too. Perhaps related: if you select an object and run the "Copy" editor command, you get an error saying that "There is no 'ClipboardEvent' available to run the command 'Copy'", and you get the same corresponding message if you try to use the "Paste" command.
Compute shaders.
All of the rest of the shader and graphics features that we all want.
Please.
The platform needs to expose a MarkAsModified function to the operating system. For most OSes this would do nothing, but for Emscripten this would set a flag that shows the "unsaved changes" dialog when you click exit on the tab.
Currently the launcher shows the dialog for no reason, and the editor shows it when no changes have been made.
if (shell->IsKeyDown(Keys::Control) && (key == Keys::C || key == Keys::X) && shell->mOnCopy)
{
ClipboardData data;
shell->mOnCopy(data, key == Keys::X, shell);
ErrorIf(!data.mHasText && !data.mText.Empty(), "Clipboard Text was not empty, but HasText was not set");
if (data.mHasText)
WindowsSetClipboardText(data.mText.c_str());
ErrorIf(data.mHasImage, "Copying image data not yet supported");
}
The code above in Shell.cpp, specifically shell->mOnCopy(data, key == Keys::X, shell);
will call into OsShell::ShellOnCopy.
This will eventually reach RootWidget::OnCutCopyPaste(ClipboardEvent* event).
void RootWidget::OnCutCopyPaste(ClipboardEvent* event)
{
if (Widget* focusObject = mFocus)
focusObject->DispatchBubble(event->EventId, event);
}
It will try to dispatch the clipboard event on the focused object. This is where the problem lies. The focused object in most cases will be the text element selected in the Objects view (if you didn't move the mouse over another element that steals the focus).
This element does not have the editor view port (which should handle the copy event) in its hierarchy, so the selected object(s) does not get copied as expected.
Select objects in the editor viewport, hit Space button, then select "Copy" from the list.
You will get a error notification: There is no 'ClipboardEvent' available to run the command 'Copy'.
The clipboard changes broke the copy command in the editor.
These methods in EditorCommands:
void SaveSelectionToClipboard(Editor* editor, Space* space);
void LoadObjectFromClipboard(Editor* editor, Space* space);
Were changed to
void SaveSelectionToClipboard(ClipboardEvent* event, Space* space);
void LoadObjectFromClipboard(ClipboardEvent* event, Space* space);
The problem with this is in EditorCommands.hpp:Commands2::Execute:
void Execute(Command* command, CommandManager* manager) override
{
pt0* param0 = manager->GetContext()->Get<pt0>();
pt1* param1 = manager->GetContext()->Get<pt1>();
if (param0 == NULL)
return CommandFailed(command, ZilchTypeId(pt0));
if (param1 == NULL)
return CommandFailed(command, ZilchTypeId(pt1));
mFunction(param0, param1);
}
This line
pt0* param0 = manager->GetContext()->Get<pt0>();
will return NULL since pt0 will be ClipboardEvent.
It's responsible for the second part of this issue #11.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.