Code Monkey home page Code Monkey logo

ratio's People

Contributors

manabreak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ratio's Issues

Property UI should be refactored to unify property editing

Now, level and object properties have their own property views. These should be unified in a meaningful way so that all property editing happens in the same place. This would then enable other entities to have properties as well (eg. layers, tilesets and individual tiles).

it gave me the exception message until I add the folder name to tinted.json location in `me.manabreak.ratio.ui.Res.java`

I have run the source code on mac.
it gave me the exception message until I add the folder name to tinted.json location in me.manabreak.ratio.ui.Res.java

:

Exception in thread "LWJGL Application" com.badlogic.gdx.utils.SerializationException: Error reading file: tinted.json
at com.badlogic.gdx.scenes.scene2d.ui.Skin.load(Skin.java:98)
at com.badlogic.gdx.scenes.scene2d.ui.Skin.(Skin.java:75)
at com.kotcrab.vis.ui.VisUI.load(VisUI.java:87)
at me.manabreak.ratio.ui.Res.load(Res.java:30)
at me.manabreak.ratio.EditorGame.create(EditorGame.java:32)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:149)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126)
Caused by: com.badlogic.gdx.utils.SerializationException: Error reading file: tinted.json
at com.badlogic.gdx.utils.Json.fromJson(Json.java:711)
at com.badlogic.gdx.scenes.scene2d.ui.Skin.load(Skin.java:96)
... 6 more
Caused by: com.badlogic.gdx.utils.SerializationException: Error parsing file: tinted.json
at com.badlogic.gdx.utils.JsonReader.parse(JsonReader.java:78)
at com.badlogic.gdx.utils.Json.fromJson(Json.java:709)
... 7 more
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: File not found: tinted.json (Internal)
at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:136)
at com.badlogic.gdx.files.FileHandle.reader(FileHandle.java:163)
at com.badlogic.gdx.utils.JsonReader.parse(JsonReader.java:76)
... 8 more

from

 public static void load() {
        VisUI.load(Gdx.files.internal("tinted.json"));
    }

to

    public static void load() {
        VisUI.load(Gdx.files.internal("editor/assets/tinted.json"));
    }

Layer properties

Layers should have similar properties as the level and objects.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.