mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-19 03:49:10 +01:00
Fix parallax (#2983)
changes: Parallax now actually moves properly on Move(). Parallax movement can now be toggled as a preference. Merged all movable/Move() overrides for performance reasons.
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
. += "<b>Space Parallax:</b> <a href='?src=\ref[src];paratoggle=[PARALLAX_SPACE]'><b>[(pref.parallax_togs & PARALLAX_SPACE) ? "Yes" : "No"]</b></a><br>"
|
||||
. += "<b>Space Dust:</b> <a href='?src=\ref[src];paratoggle=[PARALLAX_DUST]'><b>[(pref.parallax_togs & PARALLAX_DUST) ? "Yes" : "No"]</b></a><br>"
|
||||
. += "<b>Progress Bars:</b> <a href='?src=\ref[src];paratoggle=[PROGRESS_BARS]'><b>[(pref.parallax_togs & PROGRESS_BARS) ? "Yes" : "No"]</b></a><br>"
|
||||
. += "<b>Static Space:</b> <a href='?src=\ref[src];paratoggle=[PARALLAX_IS_STATIC]'><b>[(pref.parallax_togs & PARALLAX_IS_STATIC) ? "Yes" : "No"]</b></a><br>"
|
||||
|
||||
/datum/category_item/player_setup_item/player_global/settings/OnTopic(var/href,var/list/href_list, var/mob/user)
|
||||
if(href_list["toggle"])
|
||||
|
||||
@@ -201,3 +201,16 @@
|
||||
src << "You will now see progress bars on delayed actions."
|
||||
else
|
||||
src << "You will no longer see progress bars on delayed actions."
|
||||
|
||||
/client/verb/toggle_static_spess()
|
||||
set name = "Toggle Parallax Movement"
|
||||
set category = "Preferences"
|
||||
set desc = "Toggles movement of parallax space."
|
||||
|
||||
prefs.parallax_togs ^= PARALLAX_IS_STATIC
|
||||
prefs.save_preferences()
|
||||
|
||||
if (prefs.parallax_togs & PARALLAX_IS_STATIC)
|
||||
src << "Space will no longer move."
|
||||
else
|
||||
src << "Space will now move."
|
||||
|
||||
@@ -110,16 +110,6 @@
|
||||
if (old_has_opaque_atom != T.has_opaque_atom)
|
||||
T.reconsider_lights()
|
||||
|
||||
/atom/movable/Move()
|
||||
. = ..()
|
||||
|
||||
var/datum/light_source/L
|
||||
var/thing
|
||||
for (thing in light_sources)
|
||||
L = thing
|
||||
L.source_atom.update_light()
|
||||
|
||||
|
||||
/atom/movable/forceMove()
|
||||
. = ..()
|
||||
|
||||
|
||||
@@ -167,7 +167,6 @@
|
||||
src.m_flag = 1
|
||||
if ((A != src.loc && A && A.z == src.z))
|
||||
src.last_move = get_dir(A, src.loc)
|
||||
return
|
||||
|
||||
/client/proc/Move_object(direct)
|
||||
if(mob && mob.control_object)
|
||||
|
||||
@@ -26,12 +26,6 @@
|
||||
. = ..()
|
||||
QDEL_NULL(bound_overlay)
|
||||
|
||||
/atom/movable/Move()
|
||||
. = ..()
|
||||
if (bound_overlay)
|
||||
// The overlay will handle cleaning itself up on non-openspace turfs.
|
||||
bound_overlay.forceMove(get_step(src, UP))
|
||||
|
||||
/atom/movable/forceMove(atom/dest)
|
||||
. = ..(dest)
|
||||
if (bound_overlay)
|
||||
|
||||
Reference in New Issue
Block a user