Added user_dashboard and message_user in modpol_core, still have to add to modpol_minetest
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user