Dwarf Fortress > DF Modding

[Lua] Making a list similar to adventure mode health screen.

(1/2) > >>

SlimeOfSteel:
I want to create a Panel that allows you to pick an option. I also want it to look similar to the health screen in adventure mode. Unfortunately, because I am a Lua noob, I don't know how to do this.

Is what I'm looking for even possible? If so, how do I do it?

Putnam:
https://github.com/DFHack/dfhack/blob/master/docs/Lua%20API.rst#gui-widgets

you'll want to look at some existing gui lua scripts in scripts/gui for this

SlimeOfSteel:

--- Quote from: Putnam on April 14, 2018, 01:37:48 am ---https://github.com/DFHack/dfhack/blob/master/docs/Lua%20API.rst#gui-widgets

you'll want to look at some existing gui lua scripts in scripts/gui for this

--- End quote ---

Thanks.

SlimeOfSteel:
Actually, I've been thinking: would that even be a good idea to do usage wise? Would that hurt user friendliness?

EDIT: Screw it, I'm just gonna go with it. If the community doesn't like it, then I'll change it.

SlimeOfSteel:
Yeah, I still have no idea what I'm doing. Do I need to create a new module? If so, how can I get it to be used and extend the List class?

Navigation

[0] Message Index

[#] Next page

Go to full version