libgdx - JSON inherit properties -


i have json file describes style (colors etc...) of widgets. defines default style each widget, , add more styles.

com.badlogic.gdx.scenes.scene2d.ui.label$labelstyle: {     default: { font: default-font, fontcolor: white }  }, 

i'd add style extends default, don't have copy values of default implementation. highlighted extends default: {bgcolor: green } 'highlighted' still has font properties default.

is possible json?

json notation part of equation. json grammer helps determine legal grammer.

this legal json:

{ "default" : { "font": "default-font", "fontcolor": "white" } } 

so question of inheritance question of builder uses json setup properties of objects based on string.

based on read in libgdx api not see way of doing want. not know intricacies of how objects built.

i read on , edit answer later.


edit: brief search did reveal standard serializer behaviour. expectancy object created empty constructor , afterwards values json written. if case behaviour want not implemented.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -