ID:2901798
 
Resolved
Using edge-relative screen_loc values like BOTTOM and LEFT interacted incorrectly with render_target in certain situations. This was caused by the fix to id:2829744 which dealt with a similar issue.
BYOND Version:515.1620
Operating System:Windows 10 Pro
Web Browser:Firefox 120.0
Applies to:Dream Seeker
Status: Resolved (515.1621)

This issue has been resolved.
Descriptive Problem Summary:
BOTTOM/TOP screen loc does not behave properly when mixed with plane masters utilizing render_target/source

Numbered Steps to Reproduce Problem:
In the test env from https://ufile.io/59k36ef1
1.click setup verb
2.click toggle verb

Code Snippet (if applicable) to Reproduce Problem:
/obj/hud_pm
screen_loc = "CENTER"
appearance_flags = PLANE_MASTER
plane = 40
render_target = "*test"
blend_mode = BLEND_DEFAULT

/obj/hud_slate
screen_loc = "CENTER"
plane = 110
appearance_flags = PASS_MOUSE | NO_CLIENT_COLOR | KEEP_TOGETHER
render_source = "*test"


/obj/hud_element
screen_loc = "BOTTOM,LEFT"
icon = 'common.dmi'
icon_state = "4dir"
plane = 40

mob
var/obj/hud_pm/hud_pm
var/obj/hud_slate/hud_slate

mob/verb/setup()
set name = "setup"

var/obj/hud_element/x = new

hud_slate = new /obj/hud_slate()
hud_pm = new /obj/hud_pm()

client.screen += hud_slate
client.screen += hud_pm
client.screen += x

/mob/verb/toggle_alpha()
set name = "toggle pm alpha"

hud_pm.alpha = hud_pm.alpha == 255 ? 254 : 255


Expected Results:
hud element appears at the bottom

Actual Results:
hud element appears at the top
changing pm alpha from 255 moves it to bottom

When does the problem NOT occur?
Using SOUTH/NORTH instead

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
514.1589, Will check later if earlier 515 versions work.

Workarounds:
Not using BOTTOM/TOP, setting alpha to 254
Lummox JR resolved issue with message:
Using edge-relative screen_loc values like BOTTOM and LEFT interacted incorrectly with render_target in certain situations. This was caused by the fix to id:2829744 which dealt with a similar issue.