Forums » Community Projects

Activate a Dialog button

May 24, 2017 Dread.Pirate.Roberts link
I have went through the API index several times and I don't see API to activate a dialog box for example to accept a mission or to confirm you want to sell an item. Does anyone have any guidance on this?
May 24, 2017 PaKettle link
Check out the forgive plugin - It auto forgive kills which requires to click a dialog box
Should be what yer looking fer
May 25, 2017 Dread.Pirate.Roberts link
Do you perhaps have a link to this plugin? I searched the forums, Voupr & just plain Google search but was unable to locate it.
May 25, 2017 draugath link
The function of some buttons are encapsulated in an API function. Many other buttons, however, have custom action code specific to the button. In order to activate these buttons and achieve their result, you have to manually run the button's action() callback. This is where things start to get tricky. Buttons are created using a modified version of IUP 2.4 [documentation].

There is list of IUP controls on racecar that was exhaustive at one point in time. IUP container controls can be addressed like tables to reach controls that are found within them. DevKit should be able to help you delve into these containers as well.
May 25, 2017 Dread.Pirate.Roberts link
Yeah the Misison API calls are useless anyway. Oh Well. Maybe some day they will actually fix the game.
May 25, 2017 draugath link
No, they actually changed the way the mission API works. I believe the old functions are deprecated, but were never removed from the wiki. I believe spuck's Mission Tree plugin was updated when the mission interface was changed. You might start looking there.
May 26, 2017 Dread.Pirate.Roberts link
The issue I'm having is being able to locate a specific mission and then take it. The way I am reading the docs Missions don't always have the same ID number. So I'm trying to find a mission by name and then be able to take it but I can't get any of the calls to return the available mission names nor do I see a way to Accept that mission.