mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-27 23:29:10 +01:00
[MIRROR] Fixes the body designer [WIP] (#10105)
Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Cameron Lennox
Kashargul
parent
ad572707e5
commit
116219bee6
@@ -812,7 +812,8 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O
|
||||
if (isnull(pref.body_markings[M]["color"]))
|
||||
if (tgui_alert(user, "You currently have customized marking colors. This will reset each bodypart's color. Are you sure you want to continue?","Reset Bodypart Colors",list("Yes","No")) != "Yes")
|
||||
return TOPIC_NOACTION
|
||||
var/mark_color = tgui_color_picker(user, "Choose the [M] color: ", "Character Preference", pref.body_markings[M]["color"])
|
||||
var/current = pref.body_markings[M] ? pref.body_markings[M]["color"] : "#000000"
|
||||
var/mark_color = tgui_color_picker(user, "Choose the [M] color: ", "Character Preference", current)
|
||||
if(mark_color && CanUseTopic(user))
|
||||
pref.body_markings[M] = pref.mass_edit_marking_list(M,FALSE,TRUE,pref.body_markings[M],color="[mark_color]")
|
||||
return TOPIC_REFRESH_UPDATE_PREVIEW
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
// Body weight limits on a character.
|
||||
#define WEIGHT_MIN 70
|
||||
#define WEIGHT_MAX 500
|
||||
#define WEIGHT_CHANGE_MIN 0
|
||||
#define WEIGHT_CHANGE_MAX 100
|
||||
|
||||
@@ -373,7 +371,5 @@
|
||||
// CHOMPEdit End
|
||||
return ..();
|
||||
|
||||
#undef WEIGHT_MIN
|
||||
#undef WEIGHT_MAX
|
||||
#undef WEIGHT_CHANGE_MIN
|
||||
#undef WEIGHT_CHANGE_MAX
|
||||
|
||||
Reference in New Issue
Block a user