Wrda
Spell Reviewer
- Joined
- Nov 18, 2012
- Messages
- 2,025
I like your use of emmy annotation 
CreateBetterDialogForForce whichForce can be either a table or a force, you can use "|" to mean "or":
Can also apply it to the ButtonsData case.
PlayButtonClickForPlayer could be local since it's not part of the API.
Otherwise, this is pretty good, very useful for host or players to get more detailed information about what a certain button does. Users can now blame the map maker for not doing this!
Approved
CreateBetterDialogForForce whichForce can be either a table or a force, you can use "|" to mean "or":
Lua:
---@param whichForce table | force
---@param dialogTitle string
---@param buttonData table
function CreateBetterDialogForForce(whichForce, dialogTitle, buttonData)
PlayButtonClickForPlayer could be local since it's not part of the API.
Otherwise, this is pretty good, very useful for host or players to get more detailed information about what a certain button does. Users can now blame the map maker for not doing this!
Approved

Approved








