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

[MIRROR] Fix polls #2087

Merged
merged 1 commit into from
Feb 22, 2024
Merged
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
19 changes: 17 additions & 2 deletions modular_nova/modules/title_screen/code/new_player.dm
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,21 @@
if(href_list["late_join"])
play_lobby_button_sound()
GLOB.latejoin_menu.ui_interact(usr)
return

if(href_list["display_polls"])
handle_player_polling()
return

if (href_list["viewpoll"])
var/datum/poll_question/poll = locate(href_list["viewpoll"]) in GLOB.polls
poll_player(poll)
return

if (href_list["votepollref"])
var/datum/poll_question/poll = locate(href_list["votepollref"]) in GLOB.polls
vote_on_poll_handler(poll, href_list)
return

if(href_list["title_is_ready"])
title_screen_is_ready = TRUE
Expand Down Expand Up @@ -170,9 +185,9 @@
qdel(query_get_new_polls)
return
if(query_get_new_polls.NextRow())
output +={"<a class="menu_button menu_newpoll" href='?src=[text_ref(src)];viewpoll=1'>POLLS (NEW)</a>"}
output +={"<a class="menu_button menu_newpoll" href='?src=[text_ref(src)];display_polls=1'>POLLS (NEW)</a>"}
else
output +={"<a class="menu_button" href='?src=[text_ref(src)];viewpoll=1'>POLLS</a>"}
output +={"<a class="menu_button" href='?src=[text_ref(src)];display_polls=1'>POLLS</a>"}
qdel(query_get_new_polls)
if(QDELETED(src))
return
Expand Down
Loading