![]() |
|
SFScreenDesigner - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Starfall (https://teamscm.co.uk/forum-7.html) +--- Thread: SFScreenDesigner (/thread-1567.html) |
SFScreenDesigner - Yuri6037 - 01-02-2016 Hey all, 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 Are you interested ? Yuri6037 RE: SFScreenDesigner - esitee - 01-02-2016 Sounds good, would be glad to take a look on it
RE: SFScreenDesigner - Yuri6037 - 01-02-2016 Thank you, but you'll need to wait until I can get to my computer to upload some screens. RE: SFScreenDesigner - TheOneAndOnlyTee - 01-02-2016 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. RE: SFScreenDesigner - Yuri6037 - 01-02-2016 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
ENDYuri6037 RE: SFScreenDesigner - TheOneAndOnlyTee - 01-02-2016 In that case, cool i guess. RE: SFScreenDesigner - Yuri6037 - 01-02-2016 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
ENDRE: SFScreenDesigner - Yuri6037 - 06-02-2016 Here you go I have a link for advanced users only (users that prefers X, Y direct set, and that are able to read and understand Lua Code) : http://dlsrv.sldt-team.net/public_dl.php?file=SFScreenDesigner.zip |