mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 06:58:30 +01:00
fix vorepanel button for AI (#18555)
* fix vorepanel button for AI * . * this can be null * fix balloon alert for wide icons
This commit is contained in:
@@ -109,8 +109,8 @@
|
||||
//clean the message if it's not sent by a high-rank admin
|
||||
if(!check_rights(R_SERVER|R_DEBUG, FALSE)||irc)//no sending html to the poor bots
|
||||
msg = trim(sanitize(copytext(msg,1,MAX_MESSAGE_LEN)))
|
||||
if(!msg)
|
||||
return
|
||||
if(!msg)
|
||||
return
|
||||
|
||||
if (src.handle_spam_prevention(MUTE_ADMINHELP))
|
||||
return
|
||||
|
||||
@@ -40,16 +40,19 @@
|
||||
return //no! I don't want that.
|
||||
|
||||
|
||||
if (isnull(viewer_client))
|
||||
if(isnull(viewer_client))
|
||||
return
|
||||
|
||||
if (isbelly(src.loc))
|
||||
if(isbelly(src.loc))
|
||||
return
|
||||
|
||||
var/bound_width = world.icon_size
|
||||
if (ismovable(src))
|
||||
if(ismovable(src))
|
||||
var/atom/movable/movable_source = src
|
||||
bound_width = movable_source.bound_width
|
||||
if(isrobot(src) || isanimal(src))
|
||||
bound_width += get_oversized_icon_offsets()["x"]
|
||||
|
||||
|
||||
var/image/balloon_alert = image(loc = isturf(src) ? src : get_atom_on_turf(src), layer = ABOVE_MOB_LAYER)
|
||||
balloon_alert.plane = PLANE_RUNECHAT
|
||||
|
||||
@@ -1479,6 +1479,8 @@
|
||||
screen_icon.icon = HUD.ui_style
|
||||
screen_icon.color = HUD.ui_color
|
||||
screen_icon.alpha = HUD.ui_alpha
|
||||
if(isAI(user))
|
||||
screen_icon.screen_loc = ui_ai_pda_send
|
||||
LAZYADD(HUD.other_important, screen_icon)
|
||||
user.client?.screen += screen_icon
|
||||
|
||||
|
||||
@@ -1282,6 +1282,8 @@
|
||||
screen_icon.icon = HUD.ui_style
|
||||
screen_icon.color = HUD.ui_color
|
||||
screen_icon.alpha = HUD.ui_alpha
|
||||
if(isAI(user))
|
||||
screen_icon.screen_loc = ui_ai_pda_send
|
||||
LAZYADD(HUD.other_important, screen_icon)
|
||||
user.client?.screen += screen_icon
|
||||
|
||||
|
||||
Reference in New Issue
Block a user