Added user_dashboard and message_user in modpol_core, still have to add to modpol_minetest

This commit is contained in:
Nathan Schneider
2021-12-27 22:34:22 -07:00
parent 286d131839
commit de8ad25b2f
2 changed files with 119 additions and 16 deletions

View File

@ -257,10 +257,11 @@ function modpol.interactions.policy_dashboard(
end
-- INTERACTION FUNCTIONS
-- =====================
-- INTERACTION PRIMITIVES
-- ======================
-- Function: modpol.interactions.message
-- Produces a brief message to a user
-- input: user (string), message (string)
-- output: displays message to specified user
function modpol.interactions.message(user, message)
@ -269,6 +270,15 @@ function modpol.interactions.message(user, message)
end
end
--- Function: modpol.interactions.display
-- Displays complex data to a user
-- @param user Name of target user (string)
-- @param message Content of message (string or table of strings)
-- @param done Optional function for what happens when user is done
-- Function: modpol.interactions.text_query
-- Overrides function at modpol/interactions.lua
-- input: user (string), query (string), func (function)