Scrap Mechanic

Scrap Mechanic

Not enough ratings
Scriptable Computers display GUI creator (SC) v0.3.5 (read description)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
80.647 KB
27 Jan, 2024 @ 11:37am
27 Jan, 2024 @ 12:15pm
2 Change Notes ( view )

Subscribe to download
Scriptable Computers display GUI creator (SC) v0.3.5 (read description)

Description
This is my own custom UI creator that is used to easily create a UI for your builds.

mods:SComputers(the mod by bananapen),The modpack. (has items form the bananapen fork)

Basics tutorial__________________
To begin using the UI creator pick a resolution on the display on the left.The build provides 4 resolutions(16,32,64,128). If you want a custom one connect a display of your choice to the computer in the glass cube.

After that you will see the editor menu. On the top row there are functions : pixel,rectangle,filled rectangle,circle,filled circle,line,text,interactive and so called "make editable".

Firs 6 shouldn't cause any questions.

To use text use the terminal below that screen and type it on.(IMPORTANT!! double equal "==" is reserved. DO NOT USE).

INTERACTIVE - is a tool i created that allows you to select a zone on a screen that will react when pressed. It is going to show an area selected then disapears when released.

EDITABLE - is a function that saves the address of the last element added. Except Interactives.




To continue i need to explain how my data structure works.---------------------

ALL the data is stored in 3 tables in the computer which is in the glass box.

SCREENS - stores all visible elements.

SCREENS has a layered structure.

example: SCREENS[1][2][3][3]

First argument is an ID it defines the "immage" you see because the system supports multiple. And you can switch between them.
Second argument is a function 1-7 : pixel,rectangle,filled rectangle,circle,filled circle,line,text
Third argument is the number of that function (as there could be multiple rectangles for example)
And the last defines the specific parameter of the function :x,y,w,h,"text","color" e.t.c

INTERACTIVES - stores a table with smallers tables that always contain {ID,posX_1,posY_1,posX_2,posY_2}

EDITABLE - stores a table with smaller tables that always contains {ID,function,specific function number}. An address of the element you made editable.
--------------------------------

To select an id type in :"ID==" and any number after it that is bigger than 0.

The Undo function is on U on the screen that you are drawing at.

"Clear all" function clears everything on your CURRENT id and leaves other intact.

Whn you are done. press "save to disk" and a disk will come out left to the door.

This UI creator supports loading a ui back in to add to it or edit.
To do that connect the disk to the computer under the glass and it will load it automatically. Then you can remove the disk.
But the undo function wont work on the loaded UI.So if you want to redo it just clear that id.


Important detail. The small display above shows a current id. Also when you are dragging a shape you will see it fill green. If you release and its still fully green, you got a missregister. Click anywhere on the screen to fix it.

The template is attached on the side of the building with all the necessary code and descriptions in it.
Connect a disk to it to use your newly created UIs.

P.S if you have any bugs or questions. the coments are open.But dont expect a quick responce.(i do all this in my spare time which i dont have much)
If you want you can try to fix the bugs and post it on your profile as long as you credit me in description and put (fork) in the name.

-- made by: igroin_the_cat