more fixes
This commit is contained in:
@@ -578,12 +578,18 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
|||||||
if(MATRIX_GREEN_BLUE) //composed of a green and blue section
|
if(MATRIX_GREEN_BLUE) //composed of a green and blue section
|
||||||
primary_feature = secondary_feature //swap primary for secondary, as first option is green, which is linked to the secondary
|
primary_feature = secondary_feature //swap primary for secondary, as first option is green, which is linked to the secondary
|
||||||
secondary_feature = tertiary_feature //swap secondary for tertiary, as second option is blue, which is linked to the tertiary
|
secondary_feature = tertiary_feature //swap secondary for tertiary, as second option is blue, which is linked to the tertiary
|
||||||
|
if(!features[primary_feature])
|
||||||
|
features[primary_feature] = "FFFFFF"
|
||||||
dat += "<b>Primary Color</b><BR>"
|
dat += "<b>Primary Color</b><BR>"
|
||||||
dat += "<span style='border:1px solid #161616; background-color: #[features[primary_feature]];'> </span> <a href='?_src_=prefs;preference=[primary_feature];task=input'>Change</a><BR>"
|
dat += "<span style='border:1px solid #161616; background-color: #[features[primary_feature]];'> </span> <a href='?_src_=prefs;preference=[primary_feature];task=input'>Change</a><BR>"
|
||||||
if((accessory.color_src == MATRIXED && (matrixed_sections == MATRIX_RED_BLUE || matrixed_sections == MATRIX_GREEN_BLUE || matrixed_sections == MATRIX_RED_GREEN || matrixed_sections == MATRIX_ALL)) || (accessory.extra && (accessory.extra_color_src == MUTCOLORS || accessory.extra_color_src == MUTCOLORS2 || accessory.extra_color_src == MUTCOLORS3)))
|
if((accessory.color_src == MATRIXED && (matrixed_sections == MATRIX_RED_BLUE || matrixed_sections == MATRIX_GREEN_BLUE || matrixed_sections == MATRIX_RED_GREEN || matrixed_sections == MATRIX_ALL)) || (accessory.extra && (accessory.extra_color_src == MUTCOLORS || accessory.extra_color_src == MUTCOLORS2 || accessory.extra_color_src == MUTCOLORS3)))
|
||||||
|
if(!features[secondary_feature])
|
||||||
|
features[secondary_feature] = "FFFFFF"
|
||||||
dat += "<b>Secondary Color</b><BR>"
|
dat += "<b>Secondary Color</b><BR>"
|
||||||
dat += "<span style='border:1px solid #161616; background-color: #[features[secondary_feature]];'> </span> <a href='?_src_=prefs;preference=[secondary_feature];task=input'>Change</a><BR>"
|
dat += "<span style='border:1px solid #161616; background-color: #[features[secondary_feature]];'> </span> <a href='?_src_=prefs;preference=[secondary_feature];task=input'>Change</a><BR>"
|
||||||
if((accessory.color_src == MATRIXED && matrixed_sections == MATRIX_ALL) || (accessory.extra2 && (accessory.extra2_color_src == MUTCOLORS || accessory.extra2_color_src == MUTCOLORS2 || accessory.extra2_color_src == MUTCOLORS3)))
|
if((accessory.color_src == MATRIXED && matrixed_sections == MATRIX_ALL) || (accessory.extra2 && (accessory.extra2_color_src == MUTCOLORS || accessory.extra2_color_src == MUTCOLORS2 || accessory.extra2_color_src == MUTCOLORS3)))
|
||||||
|
if(!features[tertiary_feature])
|
||||||
|
features[tertiary_feature] = "FFFFFF"
|
||||||
dat += "<b>Tertiary Color</b><BR>"
|
dat += "<b>Tertiary Color</b><BR>"
|
||||||
dat += "<span style='border:1px solid #161616; background-color: #[features[tertiary_feature]];'> </span> <a href='?_src_=prefs;preference=[tertiary_feature];task=input'>Change</a><BR>"
|
dat += "<span style='border:1px solid #161616; background-color: #[features[tertiary_feature]];'> </span> <a href='?_src_=prefs;preference=[tertiary_feature];task=input'>Change</a><BR>"
|
||||||
|
|
||||||
|
|||||||
@@ -231,10 +231,10 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
|||||||
message_admins("[feature]")
|
message_admins("[feature]")
|
||||||
var/feature_type = features[feature]
|
var/feature_type = features[feature]
|
||||||
if(feature_type)
|
if(feature_type)
|
||||||
var/ref_list = GLOB.mutant_reference_list[feature_type]
|
var/ref_list = GLOB.mutant_reference_list[feature]
|
||||||
if(ref_list)
|
if(ref_list)
|
||||||
message_admins("ref list found [ref_list]")
|
message_admins("ref list found [ref_list]")
|
||||||
var/datum/sprite_accessory/accessory = ref_list[feature]
|
var/datum/sprite_accessory/accessory = ref_list[feature_type]
|
||||||
if(accessory)
|
if(accessory)
|
||||||
var/primary_string = "[feature_type]_primary"
|
var/primary_string = "[feature_type]_primary"
|
||||||
var/secondary_string = "[feature_type]_secondary]"
|
var/secondary_string = "[feature_type]_secondary]"
|
||||||
|
|||||||
Reference in New Issue
Block a user