over action buttons also very cool you guy that hates my fancy hints, hope you know how to do everything

This commit is contained in:
SandPoot
2023-02-24 01:07:27 -03:00
parent ca5dddfc29
commit b2f7fc5a9e
5 changed files with 18 additions and 9 deletions

View File

@@ -193,3 +193,6 @@
#define SPLASHSCREEN_LAYER 90
#define SPLASHSCREEN_PLANE 90
#define SPLASHSCREEN_RENDER_TARGET "SPLASHSCREEN_PLANE"
///Layer for screentips
#define SCREENTIP_LAYER 40

View File

@@ -31,5 +31,15 @@
/// Screentips are only enabled when they have context
#define SCREENTIP_PREFERENCE_CONTEXT_ONLY "Only with tips"
/// Screentips enabled, no context
#define SCREENTIP_PREFERENCE_NO_CONTEXT "Enabled without tips"
/// Regardless of intent
#define INTENT_ANY "any"
GLOBAL_LIST_INIT(screentip_pref_options, list(
SCREENTIP_PREFERENCE_DISABLED,
SCREENTIP_PREFERENCE_ENABLED,
SCREENTIP_PREFERENCE_CONTEXT_ONLY,
SCREENTIP_PREFERENCE_NO_CONTEXT
))

View File

@@ -6,6 +6,7 @@
maptext_height = 480
maptext_width = 480
maptext = ""
layer = SCREENTIP_LAYER
/atom/movable/screen/screentip/Initialize(mapload, _hud)
. = ..()

View File

@@ -1468,7 +1468,7 @@
var/extra_lines = 0
var/extra_context = ""
if (isliving(user) || isovermind(user) || isaicamera(user))
if ((isliving(user) || isovermind(user) || isaicamera(user)) && (user.client.prefs.screentip_pref != SCREENTIP_PREFERENCE_NO_CONTEXT))
var/obj/item/held_item = user.get_active_held_item()
var/allow_images = user.client.prefs.screentip_allow_images

View File

@@ -2917,14 +2917,9 @@ GLOBAL_LIST_EMPTY(preferences_datums)
if(pickedOutlineColor != pickedOutlineColor)
outline_color = pickedOutlineColor // nullable
if("screentip_pref")
var/choice = tgalert(user, "Choose your screentip preference", "Screentipping?", "Yes", "Context Only", "No")
switch(choice)
if("Yes")
screentip_pref = SCREENTIP_PREFERENCE_ENABLED
if("Context Only")
screentip_pref = SCREENTIP_PREFERENCE_CONTEXT_ONLY
else
screentip_pref = SCREENTIP_PREFERENCE_DISABLED
var/choice = input(user, "Choose your screentip preference", "Screentipping?", screentip_pref) as null|anything in GLOB.screentip_pref_options
if(choice)
screentip_pref = choice
if("screentip_color")
var/pickedScreentipColor = input(user, "Choose your screentip color.", "General Preference", screentip_color) as color|null
if(pickedScreentipColor)