#Recreating the display panel GUI for the

1 messages · Page 1 of 1 (latest)

sand stratus
#

gui editor? what in tarnation hahayes

amber briar
#

An idea that popped up in discord around half a year ago for a tool to make making guis easier. The result can be exported into a lua definition (only glib for now) and functionality can be added from there.

daring panther
#

how the hell are you dragging things from the editor to the gui you're editing

cinder sleet
#

Magnets, according to r/blackmagicfuckery

#

Either that or they hid them in their sleeves

amber briar
daring panther
#

🤯

bleak rampart
#

Lolwat.

slim sail
#

its really great

cinder sleet
#

Clever hahayes

timid cloud
#

now we have to make an API request to let us position the rich text selector in the bottom right of the textbox instead of the top right trianglepupper

amber briar
#

I don't know what's up with that, it has the same style, maybe there's some other property that needs to be changed, or maybe there really isn't a way

#

Worst case, probably possible to do it the old fashioned way, with a choose-elem-button inside the textfield
But that's left as an exercise to the viewer

#

btw, icon selector is one of few properties that can only be set during element creation, so to seamlessly toggle it, i serialize the whole element, create a new one with the property changed, swap them, remove the old element, and it just works

#

-# until the point i'll have to store various LuaGuiElement references, but those can also be updated

frank dagger
#

do you think this could be integrated with style explorer?

#

or does it already "just work" with the pipette

amber briar
#

It just does, you can copy or edit any element from any mod

frank dagger
#

neat

amber briar
#

But there can be some more integration, if needed

frank dagger
#

I just see the big list of style names and if you don't know what style you're looking for first that would be rough

amber briar
#

Yeah, i plan to, at least for some elements, add a custom scroll-pane with the styles visible right there, instead of a dropdown/list-box with names. Also would allow searching by name instead of just scrolling.
Should work super well for labels, and could be good for buttons as well

arctic jacinth
#

Crap. I'm really going to have to buy you cookies.

amber briar
amber briar
#

I already had buttons that function as frames, but to implement this, i now also have frames that function as buttons.

sand stratus
#

i like how over the last year or so there's been a great influx in mods that help with modding 👌

amber briar
frank dagger
#

nice

amber briar
#

Codegreen, how do you differentiate whether something is a textfield or textbox style in style explorer? They both are "textbox_style" afaik

frank dagger
#
if style_type == "textbox_style" and style:find("textfield") then
    style_type = "textfield_style"
end
#

there is no way to differentiate in the api

#

the only thing we have to go off of is the name, so... string matching it is

amber briar
#

makes sense, thanks

amber briar
#

Will probably be released a separate mod

timid cloud
#

oo, that looks really nice

amber briar
bleak rampart
amber briar
#

There is a The Rest setting in base game to check prototype translations