Skip to content

Commit

Permalink
Собственно то, что нужно было сделать
Browse files Browse the repository at this point in the history
  • Loading branch information
FeudeyTF committed Dec 31, 2024
1 parent 64950df commit 14e3299
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mods/_master_files/code/modules/mob/new_player/new_player.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@
return ..()

/mob/new_player/ViewManifest()
if(usr.get_preference_value(/datum/client_preference/show_nanoui_start) == GLOB.PREF_NO)
return ..()
var/datum/nano_module/manifest/ui = new /datum/nano_module/manifest(usr)
ui.ui_interact(usr)

/mob/new_player/LateChoices()
if(usr.get_preference_value(/datum/client_preference/show_nanoui_start) == GLOB.PREF_NO)
return ..()
var/datum/nano_module/joinpanel/ui = locate("joinui_[usr.ckey]")
if(!ui)
ui = new /datum/nano_module/joinpanel(usr)
Expand Down
1 change: 1 addition & 0 deletions mods/newUI/_newUI.dme
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "..\_master_files\code\modules\paperwork\photocopier.dm"
#include "..\_master_files\code\modules\paperwork\faxmachine.dm"
#include "..\_master_files\code\modules\mob\observer\ghost\ghost.dm"
#include "code\preferences.dm"
#include "code\manifest.dm"
#include "code\joinpanel.dm"

Expand Down
5 changes: 5 additions & 0 deletions mods/newUI/code/preferences.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/datum/client_preference/show_nanoui_start
description ="Show NanoUI interfaces in start menu"
key = "SHOW_NANOUI_START"
options = list(GLOB.PREF_YES, GLOB.PREF_NO)
default_value = GLOB.PREF_NO

0 comments on commit 14e3299

Please sign in to comment.