Comments (14)
- Not sure what JSON files you mean. In project, editor doesn't store scene in JSON but in binary format using Kryo. Though I intend to change this in VisEditor 0.3.0 so it would be possible to edit scenes as text file or for easier working with VCS. If you mean the exported JSON files that is already done, nothing more is stored than to eg. build a sprite. Why do you think they would be tied to VisUI?
- Created #47 for this feature request
from vis-ui.
Sorry, I was a bit unclear.
I was talking about the .scene exported files. It would be nice if there
was some way of reading the scene files into a typed data structure - with
no other functionality, so you could use that to populate the scene.
(a bit like JAXB does for XML)
Am I making sense?
Thanks
Mark
PS: I love your editor - it is the best
On 6 October 2015 at 02:05, Paweł Pastuszak [email protected]
wrote:
- Not sure what JSON files you mean. In project, editor doesn't store
scene in JSON but in binary format using Kryo. Though I intend to change
this in VisEditor 0.3.0 so it would be possible to edit scenes as text file
or for easier working with VCS. If you mean the exported JSON files that is
already done, nothing more is stored than to eg. build a sprite. Why do you
think they would be tied to VisUI?- Created #47 #47 for
this feature request—
Reply to this email directly or view it on GitHub
#44 (comment).
from vis-ui.
You can do it now. It's possible to deserialize scene file into SceneData object, checkout this. You will get entire scene structure without need to load anything.
from vis-ui.
Thanks Pawel, that's exactly what I was looking for.
Is there any way to add a "Tag" to a component? That would be useful, for
example to indicate a custom class should be instantiated
Thanks
On 7 October 2015 at 02:57, Paweł Pastuszak [email protected]
wrote:
You can do it now. It's possible to deserialize scene file into SceneData
https://github.com/kotcrab/VisEditor/blob/master/Runtime/src/com/kotcrab/vis/runtime/data/SceneData.java
object, checkout this
https://github.com/kotcrab/VisEditor/blob/master/Runtime/src/com/kotcrab/vis/runtime/scene/SceneLoader.java#L141-L142.
You will get entire scene structure without need to load anything.—
Reply to this email directly or view it on GitHub
#44 (comment).
from vis-ui.
You can configure JSON to instantiate some different class, like here. Of course that class would have to be compatible with original.
from vis-ui.
Hi Pawel,
Yes, that's what I was thinking - but I would need a tag to work out which
class to instantiate - ie in the editor, it might be an image, but I want
to replace it with a button, or something else.
Regards
Mark
On 8 October 2015 at 06:46, Paweł Pastuszak [email protected]
wrote:
You can configure JSON to instantiate some different class, like here
https://github.com/kotcrab/VisEditor/blob/master/Runtime/src/com/kotcrab/vis/runtime/scene/SceneLoader.java#L88-L116.
Of course that class would have to be compatible with original.—
Reply to this email directly or view it on GitHub
#44 (comment).
from vis-ui.
I see, that's not possible now. You can add VariablesComponent
to Entity and then read them and transform Entity into something else but you can't skip default loading. I'm thinking of adding component that will cause to skip default entity loading (ie. creating SpriteComponent
from SpriteProtoComponent
) so you could manually handle such entity.
from vis-ui.
Hi Pawel,
Actually, I think VariablesComponent will solve my issue.
Thanks
Mark
On 11 October 2015 at 05:27, Paweł Pastuszak [email protected]
wrote:
I see, that's not possible now. You can add VariablesComponent to Entity
and then read them and transform Entity into something else but you can't
skip default loading. I'm thinking of adding component that will cause to
skip default entity loading (ie. creating SpriteComponent from
SpriteProtoComponent) so you could manually handle such entity.—
Reply to this email directly or view it on GitHub
#44 (comment).
from vis-ui.
Hi Pawel,
If you add a variablesComponent, it is impossible to set the "Values" in
the editor - a bug
Regards
Mark
On 11 October 2015 at 07:27, Mark Lipman [email protected] wrote:
Hi Pawel,
Actually, I think VariablesComponent will solve my issue.
Thanks
Mark
On 11 October 2015 at 05:27, Paweł Pastuszak [email protected]
wrote:I see, that's not possible now. You can add VariablesComponent to Entity
and then read them and transform Entity into something else but you can't
skip default loading. I'm thinking of adding component that will cause to
skip default entity loading (ie. creating SpriteComponent from
SpriteProtoComponent) so you could manually handle such entity.—
Reply to this email directly or view it on GitHub
#44 (comment).
from vis-ui.
In "Add..." field you need to type key name and press enter, then you can set value.
from vis-ui.
Yes, but then when you type in the value field, nothing appears
Thanks
On 11 October 2015 at 19:37, Paweł Pastuszak [email protected]
wrote:
In "Add..." field you need to type key name and press enter, then you can
set value.—
Reply to this email directly or view it on GitHub
#44 (comment).
from vis-ui.
Works for me, are you using 0.2.5?
from vis-ui.
Yes, on Linux
It almost seems to lose focus from the field.
Is there a log or something I can send you?
Regards
Mark
On 11 October 2015 at 20:21, Paweł Pastuszak [email protected]
wrote:
Works for me, are you using 0.2.5?
—
Reply to this email directly or view it on GitHub
#44 (comment).
from vis-ui.
Fixed it, you will have to use cutting edge build: http://dl.kotcrab.com/vis/editor/edge/VisEditor-edge-20151011-1.zip
Btw please use our forums next time for such discussions, thanks.
from vis-ui.
Related Issues (20)
- Tab and ScrollPane visual bug HOT 3
- IllegalArgumentException application crash when typing name in FileChooser "Open" dialog HOT 2
- Update to LibGDX 1.9.14 HOT 1
- VisUI Tixel Skin, where'd it go? HOT 3
- VisImageButton getImage().setColor(color) does not work. HOT 4
- VisUI Draggable on Grid HOT 3
- Add rich text HOT 2
- Tree node is removed but the container remains HOT 3
- Build issue default startup LibGDX project with GWT and VisUI HOT 3
- Tooltip Issue HOT 3
- Illegal reflective access operation with FileChooser
- Enhance VisWindow HOT 2
- Window close should have an close callback listener HOT 1
- [VisUI Request] Set text orientation in VisImageTextButton HOT 1
- Support 'center' alignments in ToastManager
- TabbedPane clicking a tab makes it invisible HOT 3
- VisUI 1.5.2 release HOT 2
- VisUI 1.5.3 release
- Some enhanced suggestions
- How to render? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vis-ui.