-
Notifications
You must be signed in to change notification settings - Fork 565
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'cmss13-devs:master' into scatter-spit-a-bit-more-consis…
…tent
- Loading branch information
Showing
28 changed files
with
371 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/datum/body_picker/ui_static_data(mob/user) | ||
. = ..() | ||
|
||
.["icon"] = /datum/species::icobase | ||
|
||
.["body_types"] = list() | ||
for(var/key in GLOB.body_type_list) | ||
var/datum/body_type/type = GLOB.body_type_list[key] | ||
.["body_types"] += list( | ||
list("name" = type.name, "icon" = type.icon_name) | ||
) | ||
|
||
.["skin_colors"] = list() | ||
for(var/key in GLOB.skin_color_list) | ||
var/datum/skin_color/color = GLOB.skin_color_list[key] | ||
.["skin_colors"] += list( | ||
list("name" = color.name, "icon" = color.icon_name, "color" = color.color) | ||
) | ||
|
||
.["body_sizes"] = list() | ||
for(var/key in GLOB.body_size_list) | ||
var/datum/body_size/size = GLOB.body_size_list[key] | ||
.["body_sizes"] += list( | ||
list("name" = size.name, "icon" = size.icon_name) | ||
) | ||
|
||
/datum/body_picker/ui_data(mob/user) | ||
. = ..() | ||
|
||
.["body_type"] = GLOB.body_type_list[user.client.prefs.body_type].icon_name | ||
.["skin_color"] = GLOB.skin_color_list[user.client.prefs.skin_color].icon_name | ||
.["body_size"] = GLOB.body_size_list[user.client.prefs.body_size].icon_name | ||
|
||
/datum/body_picker/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state) | ||
. = ..() | ||
|
||
var/datum/preferences/prefs = ui.user.client.prefs | ||
|
||
switch(action) | ||
if("type") | ||
if(!GLOB.body_type_list[params["name"]]) | ||
return | ||
|
||
prefs.body_type = params["name"] | ||
|
||
if("size") | ||
if(!GLOB.body_size_list[params["name"]]) | ||
return | ||
|
||
prefs.body_size = params["name"] | ||
|
||
if("color") | ||
if(!GLOB.skin_color_list[params["name"]]) | ||
return | ||
|
||
prefs.skin_color = params["name"] | ||
|
||
prefs.ShowChoices(ui.user) | ||
return TRUE | ||
|
||
/datum/body_picker/tgui_interact(mob/user, datum/tgui/ui) | ||
. = ..() | ||
|
||
ui = SStgui.try_update_ui(user, src, ui) | ||
|
||
if(!ui) | ||
ui = new(user, src, "BodyPicker", "Body Picker") | ||
ui.open() | ||
ui.set_autoupdate(FALSE) | ||
|
||
winset(user, ui.window.id, "focus=true") | ||
|
||
/datum/body_picker/ui_state(mob/user) | ||
return GLOB.always_state |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
author: "Nanu, HarryOb" | ||
delete-after: True | ||
changes: | ||
- code_imp: "Adds some code so if you're above the pointcap on your loadout, items will be removed to put you at the point cap limit." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
author: "Drathek" | ||
delete-after: True | ||
changes: | ||
- code_imp: "Enabled 3 more OD pragmas for linting and fixed some ambiguous usage of In" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.