123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|85|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> JSE -> JSE Gui

Mon, 03 Feb 2025, 08:07
Jayenkai

JSE Gui




Work has commenced on JSE Gui. I'm not really sure why I'm doing this, if I'm honest, but I found myself wondering why I hadn't yet, so .. Guess that's a good enough reason!

GuiButton works exactly like Text, except it draws it as a button, pushes in when held, and returns a value.
a=GuiButton(x,y,"Button Text",centered);
Where a== 0 = Nothing, 1 = Just Clicked, 2 = Held, 3 = Just Released

GuiSiders are roughly the same to begin with, but then go crazy!
a=GuiSlider(Center X, CenterY, VariableName, Min, Max, Steps, Width);
Where a is the same set of values. VariableName is overwritten with the new value whenever you move the slider.

There's also GuiVSlider for vertical sliders. Same values.

You can also SetGuiHSV or SetGuiRGB (SetGuiColour) to change the .. colour!!!

And that's all I've done, today. That took bloody hours, that did!!!

I've not uploaded anything yet. It's still very much a work in progress.. You can currently freak out the script if you set slider values so they end up dividing by zero, for example.
But.. hey, it's a start!!

Todo : Sanitise all the values, make a text input box (aargh!), check buttons, radio buttons.
I might add a Text output box, too, which word-wraps. We'll have to see if I can manage such a thing.

Is there anything else I should add to this?

-=-=-
''Load, Next List!''
Mon, 03 Feb 2025, 09:32
Dan
Built-in Gui buttons/elements are always useful ...

And some kind of Edit box/field in which you can read out the values/paste in the text from the clipboard / output text ...
Mon, 03 Feb 2025, 10:10
cyangames
\o/