#Recreating the display panel GUI for the
1 messages · Page 1 of 1 (latest)
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.
how the hell are you dragging things from the editor to the gui you're editing
Magnets, according to r/blackmagicfuckery
Either that or they hid them in their sleeves
Its copy-pasting, q on any element, an item is visually added to cursor, and clicking on any other element copies and pastes it
🤯
Lolwat.
its really great
Clever 
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 
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
do you think this could be integrated with style explorer?
or does it already "just work" with the pipette
It just does, you can copy or edit any element from any mod
neat
But there can be some more integration, if needed
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
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
Crap. I'm really going to have to buy you cookies.
The issue was that i used a textfield, which is single line, instead of a textbox
I already had buttons that function as frames, but to implement this, i now also have frames that function as buttons.
i like how over the last year or so there's been a great influx in mods that help with modding 👌
nice
Codegreen, how do you differentiate whether something is a textfield or textbox style in style explorer? They both are "textbox_style" afaik
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
makes sense, thanks
oo, that looks really nice
Released Locale Explorer
https://mods.factorio.com/mod/locale-explorer
Is there a way to autodetect which stuff has missing locale keys?
There is a The Rest setting in base game to check prototype translations