Page 1 of 1
Ability to enhance game gui
Posted: Wed May 15, 2019 3:32 pm
by ownlyme
There are a few things i'd love as a modder:
- Force modded gui elements to get displayed above the game gui (!!!, super critical for my current mod and the actual reason i started this thread)
- Read the window position of the "controller" gui (thats the inventory with crafting menu, because it can be repositioned by the player..)
- (Read the gui scale setting)
- An item-slot gui element
- (Ability to access/change game interface elements)
- A graph gui element (for performance reasons)
- Read textcursor position in text boxes
(- copy paste rich text without the style tags)
Re: Ability to enhance game gui
Posted: Wed May 15, 2019 4:07 pm
by eduran
ownlyme wrote: Wed May 15, 2019 3:32 pm
There are a few things i'd love as a modder:
- Read the window position of the "controller" gui (thats the inventory with crafting menu, because it can be repositioned by the player..)
- (Read the gui scale setting)
Pretty sure that is going to fall into the "non-deterministic, therefore not going to happen" category. Also, without the ability to position GUI elements, what would you do with that information?
ownlyme wrote: Wed May 15, 2019 3:32 pm
- An item-slot gui element
LuaGuiElement documentation wrote:
"choose-elem-button": A button that lets the player pick one of an: item, entity, tile, or signal similar to the filter-select window.
This? What exactly do you mean by item-slot?
ownlyme wrote: Wed May 15, 2019 3:32 pm
- A graph gui element (for performance reasons)
As per
viewtopic.php?f=28&t=61841, that is going to happen at some point. Hoping for sooner rather than later, but it is probably not very high on the list of priorities.
ownlyme wrote: Wed May 15, 2019 3:32 pm
- Force modded gui elements to get displayed above the game gui
+1
Re: Ability to enhance game gui
Posted: Wed May 15, 2019 4:25 pm
by eradicator
I think you're supposed to make one post per suggestion so it's easier to deal with them seperately (as they're obviously not all going to be implemented at the same time, if at all).
ownlyme wrote: Wed May 15, 2019 3:32 pm
There are a few things i'd love as a modder:
- Force modded gui elements to get displayed above the game gui (!!!, super critical for my current mod and the actual reason i started this thread)
You should precisely describe what you need this for, otherwise it's very unlikely to happen (this applies to *all* modding interface requests).
ownlyme wrote: Wed May 15, 2019 3:32 pm
- Read the window position of the "controller" gui (thats the inventory with crafting menu, because it can be repositioned by the player..)
No reason given again.
ownlyme wrote: Wed May 15, 2019 3:32 pm
- (Read the gui scale setting)
Already exists:
LuaPlayer.display_scale
ownlyme wrote: Wed May 15, 2019 3:32 pm
- An item-slot gui element
+1
Making a mod gui with working (machine, etc...) inventory screen is one of the reasons i requested
Out-of-world LuaItemStacks for. So far...i'm still waiting :/.
ownlyme wrote: Wed May 15, 2019 3:32 pm
- (Ability to access/change game interface elements)
No reason given. Also unlikely to happen because mods could completely break base interface.
ownlyme wrote: Wed May 15, 2019 3:32 pm
- A graph gui element (for performance reasons)
Already requested as stated by @eduran.
ownlyme wrote: Wed May 15, 2019 3:32 pm
- Read textcursor position in text boxes
Why?
ownlyme wrote: Wed May 15, 2019 3:32 pm
(- copy paste rich text without the style tags)
You mean like...using string.gmatch or similar to remove the tags from the text you got off a textbox LuaGuiElement?
Re: Ability to enhance game gui
Posted: Wed May 15, 2019 4:51 pm
by ownlyme
im making a market addon, currently creating the interfaces.
the coolest way would be to toggle a switch in the crafting gui to overlay my gui where you can buy everything.
Re: Ability to enhance game gui
Posted: Wed May 15, 2019 4:58 pm
by ownlyme
eradicator wrote: Wed May 15, 2019 4:25 pm
ownlyme wrote: Wed May 15, 2019 3:32 pm
There are a few things i'd love as a modder:
- Force modded gui elements to get displayed above the game gui (!!!, super critical for my current mod and the actual reason i started this thread)
You should precisely describe what you need this for, otherwise it's very unlikely to happen (this applies to *all* modding interface requests).
im making a market mod, currently creating the interfaces.
the best way would be to toggle a switch in the crafting gui to overlay my gui where you can buy everything.
eradicator wrote: Wed May 15, 2019 4:25 pm
ownlyme wrote: Wed May 15, 2019 3:32 pm
- Read the window position of the "controller" gui (thats the inventory with crafting menu, because it can be repositioned by the player..)
No reason given again.
Wouldn't know where to put my buttons, the money amount label, the custom crafting menu
When you create a gui in the center, you are able to position it precisely using margin_bottom etc, So I don't even really need to alter the vanilla guis (at least in this mod)
eradicator wrote: Wed May 15, 2019 4:25 pm
ownlyme wrote: Wed May 15, 2019 3:32 pm
- (Ability to access/change game interface elements)
No reason given. Also unlikely to happen because mods could completely break base interface.
Look at WoW and imagine where it would be today with vanilla interfaces... be assured i had not played beyond vanilla...
eradicator wrote: Wed May 15, 2019 4:25 pm
ownlyme wrote: Wed May 15, 2019 3:32 pm
- Read textcursor position in text boxes
Why?
My Luacombinator does this rich text magic as the player types. When you replace the text, the cursor jumps to the end.
You can set the cursor position manually, but when blindly comparing the last text with the current text, you won't always be able to tell the player's cursor position
eradicator wrote: Wed May 15, 2019 4:25 pm
ownlyme wrote: Wed May 15, 2019 3:32 pm
(- copy paste rich text without the style tags)
You mean like...using string.gmatch or similar to remove the tags from the text you got off a textbox LuaGuiElement?
Yes, same mod. For example when you copy the end of a rich text with the transition to non-rich, you only get the [/color] tag, without the opening tag.
Re: Ability to enhance game gui
Posted: Sun Jun 16, 2019 1:14 pm
by ownlyme
When you have the crafting gui open and a custom gui in the same place, and save+load the game, the custom gui will be above the crafting gui.. until you close and open the crafting gui again.
So it must be possible..^^