mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 14:08:44 +01:00
Input Patches
This commit is contained in:
@@ -191,7 +191,7 @@
|
||||
if (!istype(src,/datum/admins))
|
||||
to_chat(usr, "Error: you are not an admin!")
|
||||
return
|
||||
var/filter = tgui_input_text(usr, "Filter string (case-insensitive regex)", "Player notes filter")
|
||||
var/filter = input(usr, "Filter string (case-insensitive regex)", "Player notes filter")
|
||||
PlayerNotesPageLegacy(1, filter)
|
||||
|
||||
/datum/admins/proc/PlayerNotesPageLegacy(page, filter)
|
||||
@@ -298,7 +298,7 @@
|
||||
|
||||
if(href_list["add_player_info_legacy"])
|
||||
var/key = href_list["add_player_info_legacy"]
|
||||
var/add = sanitize(tgui_input_text(usr, "Add Player Info (Legacy)"))
|
||||
var/add = sanitize(input(usr, "Add Player Info (Legacy)"))
|
||||
if(!add) return
|
||||
|
||||
notes_add(key,add,usr)
|
||||
@@ -328,4 +328,4 @@
|
||||
PlayerNotesPageLegacy(text2num(href_list["index"]), filter)
|
||||
if("filter")
|
||||
PlayerNotesFilterLegacy()
|
||||
return
|
||||
return
|
||||
|
||||
@@ -231,10 +231,10 @@
|
||||
/datum/tgui_module/email_client/tgui_act(action, params)
|
||||
if(..())
|
||||
return TRUE
|
||||
|
||||
|
||||
var/mob/living/user = usr
|
||||
check_for_new_messages(1) // Any actual interaction (button pressing) is considered as acknowledging received message, for the purpose of notification icons.
|
||||
|
||||
|
||||
switch(action)
|
||||
if("login")
|
||||
log_in()
|
||||
@@ -279,7 +279,7 @@
|
||||
var/oldtext = html_decode(msg_body)
|
||||
oldtext = replacetext(oldtext, "\[editorbr\]", "\n")
|
||||
|
||||
var/newtext = sanitize(replacetext(tgui_input_text(usr, "Enter your message. You may use most tags from paper formatting", "Message Editor", oldtext, 20000, TRUE), "\n", "\[editorbr\]"), 20000)
|
||||
var/newtext = sanitize(replacetext(tgui_input_text(usr, "Enter your message. You may use most tags from paper formatting", "Message Editor", oldtext, 20000, TRUE, prevent_enter = TRUE), "\n", "\[editorbr\]"), 20000)
|
||||
if(newtext)
|
||||
msg_body = newtext
|
||||
return 1
|
||||
@@ -473,4 +473,4 @@
|
||||
|
||||
if("remove_attachment")
|
||||
msg_attachment = null
|
||||
return 1
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user