So I think you know, I'm developing a new design for my screen. And in that way, I developed a quick java application to pre design the different user interfaces of my screen.
I decided after some reflection to share it with you, only for TSCM members.
Features :
Resize visually components,
Compatible with starfall base render lib,
You can add your own components,
Simple scripts to define new components,
Already shipped with SF Base lib and the GL_Lib data,
Accepts all screen formats from 512x512 to 1024x1024,
Move visually components (In dev),
Presision using the property table,
Lua code generation (In dev),
App should be compatible Linux and Mac.
Edit : one minimal requirement : you need to have a screen resolution that is greater or equal to the choose screen format.
Edit 2 : Java 1.6 JVM required at least, should work with 1.7, 1.8
Is this going to be easy to use? i'd rather not have a hand full of non-coders make one with this and then bug me with questions to get it to do stuff.
Well T-17, the application itself will be easy to use. The only difficulty is maybe the lua code integration because the app is not intended to generate the whale's project code it's only intended to give premade of a screen with some render. Functions and also gl. Functions in case player is using Lanteans private Graphics Library.
So the user will need to integrate the lua code sent into his clipboard to his real text file in the starfall editor.
Now about the script file it's pretty easy to use. I will show you an example :
Code:
COMP:
Name = WhateverYouWantNoSpecialChars
ID = 7
# the id can be whatever number but unique
Width = WidthVarNameOrNumber
Height = SameAsWidth
RENDER:
color (vars.r, vars.g, vars.b)
END
PARAMS:
name, TYPE
#TYPE is INTEGER or STRING or BOOLEAN
END
LUA:
#just write the lua code to render that component
END
END
Note : if the script is invalid the application will throw java exceptions and by extension will crash.
Here we go I have some news :
I finished the component visual move, and I also changed a few things for the script system (advanced users that wants to create their own components) :
Now supports mathematical commands (but only on integers, as sf render lib uses ints at my knowledge) such as pushnum(int i) operator(string operator) and assign(string variableName).
Example :
Code:
RENDER:
pushnum(3)
pushnum(3)
operator(*)
assign(test)
#now you can use this variable test in rendering functions
text(test, vars.y, vars.text)
#test should be equal to 9
END