How to Create Option Buttons

Place to get help with not working mods / modding interface.
Post Reply
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1449
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

How to Create Option Buttons

Post by TheSAguy »

Hi,

I have an idea for a RPG type mod.
One feature I'd like to implement is that you choose goal and then a reward if accomplished.

I was playing with Klonan's Teleporters mod and though that would look nice if you had option panels/buttons appear on screen like his mod where you choose the destination you want to teleport to.

The game should pause, you have a choice of let's say 3 options. (Goals or Rewards)

I've never coded anything like this before, so need some good guidance here please.

Thanks,

eduran
Filter Inserter
Filter Inserter
Posts: 344
Joined: Fri May 09, 2014 2:52 pm
Contact:

Re: How to Create Option Buttons

Post by eduran »

To get started, have a look at the documentation for LuaGuiElement and LuaGui. With that, try to understand what is happening in some mods with GUIs. I found NewGame+ reasonable easy to understand. Once you have specific questions come back here.

TheSAguy
Smart Inserter
Smart Inserter
Posts: 1449
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Re: How to Create Option Buttons

Post by TheSAguy »

Thanks for the starting point Eduran!

Post Reply

Return to “Modding help”