Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click catcher fix #15864

Merged
merged 2 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions code/datums/atom_hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ GLOBAL_LIST_INIT_TYPED(huds, /datum/atom_hud, list(
return


///Sets up the click_catcher for the client
/mob/proc/add_click_catcher()
client.screen += client.void

client?.apply_clickcatcher()

/mob/new_player/add_click_catcher()
return
13 changes: 4 additions & 9 deletions code/modules/client/client_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@

send_resources()

generate_clickcatcher()
apply_clickcatcher()

if(prefs.lastchangelog != GLOB.changelog_hash) //bolds the changelog button on the interface so we know there are updates.
Expand Down Expand Up @@ -903,15 +902,11 @@
winset(src, "mainwindow", "is-maximized=true")


/client/proc/generate_clickcatcher()
if(void)
return
void = new()
screen += void


///Creates and applies a clickcatcher
/client/proc/apply_clickcatcher()
generate_clickcatcher()
if(!void)
void = new()
screen |= void
var/list/actualview = getviewsize(view)
void.UpdateGreed(actualview[1], actualview[2])

Expand Down
Loading