mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
update_appearance (#55468)
Creates update_name and update_desc Creates the wrapper proc update_appearance to batch update_name, update_desc, and update_icon together Less non-icon handling code in update_icon and friends Signal hooks for things that want to change names and descriptions 99%+ of the changes in this are just from switching everything over to update_appearance from update_icon
This commit is contained in:
@@ -71,7 +71,7 @@
|
||||
switch(href_list["act"])
|
||||
if("toggle_vote")
|
||||
voting_active = !voting_active
|
||||
update_icon()
|
||||
update_appearance()
|
||||
if("toggle_auth")
|
||||
id_auth = !id_auth
|
||||
if("reset_voted")
|
||||
@@ -205,12 +205,13 @@
|
||||
|
||||
P.info = tally.Join()
|
||||
P.name = "Voting Results"
|
||||
P.update_icon()
|
||||
P.update_appearance()
|
||||
user.put_in_hands(P)
|
||||
to_chat(user,"<span class='notice'>[src] prints out the voting tally.</span>")
|
||||
|
||||
/obj/structure/votebox/update_icon_state()
|
||||
icon_state = "votebox_[voting_active ? "active" : "maint"]"
|
||||
return ..()
|
||||
|
||||
#undef VOTE_TEXT_LIMIT
|
||||
#undef MAX_VOTES
|
||||
|
||||
Reference in New Issue
Block a user