mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 22:17:32 +01:00
HUD Update
TG: - User interface updates. Revision: r3646 Author: baloh.matevz TG: - Added a character setup option which allows you to pick between the Midnight, Orange and Old icon sets for the user interface. - Deleted most of the unneeded icons from screen1_Midnight.dmi Use that as the reference for making new icon sets. Revision: r3647 Author: baloh.matevz
This commit is contained in:
@@ -47,95 +47,95 @@ var/const
|
||||
|
||||
|
||||
datum/preferences
|
||||
var
|
||||
real_name
|
||||
be_random_name = 0
|
||||
gender = MALE
|
||||
age = 30.0
|
||||
b_type = "A+"
|
||||
var/real_name
|
||||
var/be_random_name = 0
|
||||
var/gender = MALE
|
||||
var/age = 30.0
|
||||
var/b_type = "A+"
|
||||
|
||||
//Special role selection
|
||||
be_special = 0
|
||||
var/be_special = 0
|
||||
//Play admin midis
|
||||
midis = 1
|
||||
var/midis = 1
|
||||
//Toggle ghost ears
|
||||
ghost_ears = 1
|
||||
ghost_sight = 1
|
||||
var/ghost_ears = 1
|
||||
var/ghost_sight = 1
|
||||
//Play pregame music
|
||||
pregame_music = 1
|
||||
var/pregame_music = 1
|
||||
//Saved changlog filesize to detect if there was a change
|
||||
lastchangelog = 0
|
||||
var/lastchangelog = 0
|
||||
|
||||
//Just like it sounds
|
||||
ooccolor = "#b82e00"
|
||||
underwear = 1
|
||||
list/underwear_m = list("White", "Grey", "Green", "Blue", "Black", "None") //Curse whoever made male/female underwear diffrent colours
|
||||
list/underwear_f = list("Red", "White", "Yellow", "Blue", "Black", "None")
|
||||
backbag = 2
|
||||
list/backbaglist = list("Nothing", "Backpack", "Satchel", "Satchel Alt")
|
||||
var/ooccolor = "#b82e00"
|
||||
var/underwear = 1
|
||||
var/list/underwear_m = list("White", "Grey", "Green", "Blue", "Black", "None") //Curse whoever made male/female underwear diffrent colours
|
||||
var/list/underwear_f = list("Red", "White", "Yellow", "Blue", "Black", "None")
|
||||
var/backbag = 2
|
||||
var/list/backbaglist = list("Nothing", "Backpack", "Satchel", "Satchel Alt")
|
||||
|
||||
//Hair type
|
||||
h_style = "Short Hair"
|
||||
datum/sprite_accessory/hair/hair_style
|
||||
var/h_style = "Short Hair"
|
||||
var/datum/sprite_accessory/hair/hair_style
|
||||
//Hair color
|
||||
r_hair = 0
|
||||
g_hair = 0
|
||||
b_hair = 0
|
||||
var/r_hair = 0
|
||||
var/g_hair = 0
|
||||
var/b_hair = 0
|
||||
|
||||
//Face hair type
|
||||
f_style = "Shaved"
|
||||
datum/sprite_accessory/facial_hair/facial_hair_style
|
||||
var/f_style = "Shaved"
|
||||
var/datum/sprite_accessory/facial_hair/facial_hair_style
|
||||
//Face hair color
|
||||
r_facial = 0
|
||||
g_facial = 0
|
||||
b_facial = 0
|
||||
var/r_facial = 0
|
||||
var/g_facial = 0
|
||||
var/b_facial = 0
|
||||
|
||||
//Species
|
||||
species = "Human"
|
||||
var/species = "Human"
|
||||
|
||||
//Skin color
|
||||
s_tone = 0
|
||||
var/s_tone = 0
|
||||
|
||||
//Eye color
|
||||
r_eyes = 0
|
||||
g_eyes = 0
|
||||
b_eyes = 0
|
||||
var/r_eyes = 0
|
||||
var/g_eyes = 0
|
||||
var/b_eyes = 0
|
||||
|
||||
//UI style
|
||||
UI = UI_OLD
|
||||
//UI = UI_OLD
|
||||
var/UI_style = "Midnight"
|
||||
|
||||
//Mob preview
|
||||
icon/preview_icon = null
|
||||
preview_dir = SOUTH
|
||||
var/icon/preview_icon = null
|
||||
var/preview_dir = SOUTH
|
||||
|
||||
//Jobs, uses bitflags
|
||||
job_civilian_high = 0
|
||||
job_civilian_med = 0
|
||||
job_civilian_low = 0
|
||||
var/job_civilian_high = 0
|
||||
var/job_civilian_med = 0
|
||||
var/job_civilian_low = 0
|
||||
|
||||
job_medsci_high = 0
|
||||
job_medsci_med = 0
|
||||
job_medsci_low = 0
|
||||
var/job_medsci_high = 0
|
||||
var/job_medsci_med = 0
|
||||
var/job_medsci_low = 0
|
||||
|
||||
job_engsec_high = 0
|
||||
job_engsec_med = 0
|
||||
job_engsec_low = 0
|
||||
var/job_engsec_high = 0
|
||||
var/job_engsec_med = 0
|
||||
var/job_engsec_low = 0
|
||||
|
||||
list/job_alt_titles = new() // the default name of a job like "Medical Doctor"
|
||||
var/list/job_alt_titles = new() // the default name of a job like "Medical Doctor"
|
||||
|
||||
flavor_text = ""
|
||||
var/flavor_text = ""
|
||||
|
||||
// slot stuff (Why were they var/var? --SkyMarshal)
|
||||
slotname
|
||||
curslot = 0
|
||||
disabilities = 0
|
||||
var/slotname
|
||||
var/curslot = 0
|
||||
var/disabilities = 0
|
||||
|
||||
used_skillpoints = 0
|
||||
skill_specialization = null
|
||||
list/skills = list() // skills can range from 0 to 3
|
||||
var/used_skillpoints = 0
|
||||
var/skill_specialization = null
|
||||
var/list/skills = list() // skills can range from 0 to 3
|
||||
|
||||
// OOC Metadata:
|
||||
metadata = ""
|
||||
var/metadata = ""
|
||||
|
||||
|
||||
New()
|
||||
@@ -262,7 +262,7 @@ datum/preferences
|
||||
dat += "<b>Age:</b> <a href='byond://?src=\ref[user];preferences=1;age=input'>[age]</a>"
|
||||
|
||||
dat += "<br>"
|
||||
//dat += "<b>UI Style:</b> <a href=\"byond://?src=\ref[user];preferences=1;UI=input\"><b>[UI == UI_NEW ? "New" : "Old"]</b></a><br>" -- UI Style no longer a thing
|
||||
dat += "<b>UI Style:</b> <a href=\"byond://?src=\ref[user];preferences=1;UI=input\"><b>[UI_style]</b></a><br>"
|
||||
dat += "<b>Play admin midis:</b> <a href=\"byond://?src=\ref[user];preferences=1;midis=input\"><b>[midis == 1 ? "Yes" : "No"]</b></a><br>"
|
||||
dat += "<b>Ghost ears:</b> <a href=\"byond://?src=\ref[user];preferences=1;ghost_ears=input\"><b>[ghost_ears == 0 ? "Nearest Creatures" : "All Speech"]</b></a><br>"
|
||||
dat += "<b>Ghost sight:</b> <a href=\"byond://?src=\ref[user];preferences=1;ghost_sight=input\"><b>[ghost_sight == 0 ? "Nearest Creatures" : "All Emotes"]</b></a><br>"
|
||||
@@ -270,7 +270,7 @@ datum/preferences
|
||||
if(config.allow_Metadata)
|
||||
dat += "<b>OOC Notes:</b> <a href='byond://?src=\ref[user];preferences=1;OOC=input'> Edit </a><br>"
|
||||
|
||||
if((user.client) && (user.client.holder) && (user.client.holder.rank) && (user.client.holder.rank == "Game Master"))
|
||||
if((user.client) && (user.client.holder) && (user.client.holder.rank) && (user.client.holder.level >= 5))
|
||||
dat += "<hr><b>OOC</b><br>"
|
||||
dat += "<a href='byond://?src=\ref[user];preferences=1;ooccolor=input'>Change colour</a> <font face=\"fixedsys\" size=\"3\" color=\"[ooccolor]\"><table style='display:inline;' bgcolor=\"[ooccolor]\"><tr><td>__</td></tr></table></font>"
|
||||
|
||||
@@ -847,10 +847,15 @@ datum/preferences
|
||||
gender = MALE
|
||||
|
||||
if(link_tags["UI"])
|
||||
if(UI == UI_OLD)
|
||||
UI = UI_NEW
|
||||
else
|
||||
UI = UI_OLD
|
||||
switch(UI_style)
|
||||
if("Midnight")
|
||||
UI_style = "Orange"
|
||||
if("Orange")
|
||||
UI_style = "old"
|
||||
if("old")
|
||||
UI_style = "Midnight"
|
||||
else
|
||||
UI_style = "Midnight"
|
||||
|
||||
if(link_tags["midis"])
|
||||
midis = !midis
|
||||
@@ -983,7 +988,8 @@ datum/preferences
|
||||
b_eyes = 0.0
|
||||
s_tone = 0.0
|
||||
b_type = "A+"
|
||||
UI = UI_OLD
|
||||
//UI = UI_OLD
|
||||
UI_style = "Midnight"
|
||||
midis = 1
|
||||
ghost_ears = 1
|
||||
disabilities = 0
|
||||
@@ -1028,11 +1034,15 @@ datum/preferences
|
||||
character.h_style = h_style
|
||||
character.f_style = f_style
|
||||
|
||||
switch (UI)
|
||||
if(UI_OLD)
|
||||
switch(UI_style)
|
||||
if("Midnight")
|
||||
character.UI = 'screen1_Midnight.dmi'
|
||||
if("Orange")
|
||||
character.UI = 'screen1_Orange.dmi'
|
||||
if("old")
|
||||
character.UI = 'screen1_old.dmi'
|
||||
if(UI_NEW)
|
||||
character.UI = 'screen1.dmi'
|
||||
else
|
||||
character.UI = 'screen1_Midnight.dmi'
|
||||
|
||||
character.hair_style = hair_style
|
||||
character.facial_hair_style = facial_hair_style
|
||||
@@ -1093,4 +1103,4 @@ datum/preferences
|
||||
character.disabilities = disabilities
|
||||
|
||||
#undef UI_OLD
|
||||
#undef UI_NEW
|
||||
#undef UI_NEW
|
||||
@@ -139,7 +139,10 @@ datum/preferences/proc/savefile_save(mob/user, slot)
|
||||
|
||||
|
||||
F["be_special"] << src.be_special
|
||||
F["UI"] << src.UI
|
||||
//F["UI"] << src.UI
|
||||
if(isnull(UI_style))
|
||||
UI_style = "Midnight"
|
||||
F["UI_style"] << UI_style
|
||||
F["midis"] << src.midis
|
||||
F["ghost_ears"] << src.ghost_ears
|
||||
F["ghost_sight"] << src.ghost_sight
|
||||
@@ -222,7 +225,10 @@ datum/preferences/proc/savefile_load(mob/user, slot)
|
||||
if(isnull(ghost_sight)) ghost_sight = 1 //Hotfix
|
||||
F["ooccolor"] >> src.ooccolor
|
||||
F["lastchangelog"] >> src.lastchangelog
|
||||
F["UI"] >> src.UI
|
||||
//F["UI"] >> src.UI
|
||||
F["UI_style"] >> src.UI_style
|
||||
if(isnull(UI_style))
|
||||
UI_style = "Midnight"
|
||||
F["be_special"] >> src.be_special
|
||||
|
||||
F["job_civilian_high"] >> src.job_civilian_high
|
||||
|
||||
Reference in New Issue
Block a user