-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
port: tgui loadout + tgui color picker (#6280)
* finish * port fix * some runtimes fixes + input list replace * Update code/modules/asset_cache/asset_list.dm Co-authored-by: Antoonij <[email protected]> * Update code/game/objects/items/devices/window_painter.dm Co-authored-by: Antoonij <[email protected]> * Update code/game/objects/structures/dresser.dm Co-authored-by: Antoonij <[email protected]> * Update code/game/objects/structures/dresser.dm Co-authored-by: Antoonij <[email protected]> * Update code/game/objects/items/crayons.dm Co-authored-by: Antoonij <[email protected]> * Update code/__HELPERS/global_lists.dm Co-authored-by: Antoonij <[email protected]> * fix * Update tgui.bundle.js * Update tgui-panel.bundle.js --------- Co-authored-by: Antoonij <[email protected]>
- Loading branch information
1 parent
c2c4e3a
commit fef0557
Showing
64 changed files
with
3,920 additions
and
1,091 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
GLOBAL_DATUM_INIT(is_http_protocol, /regex, regex("^https?://")) | ||
GLOBAL_DATUM_INIT(filename_forbidden_chars, /regex, regex(@{""|[\\\n\t/?%*:|<>]|\.\."}, "g")) | ||
GLOBAL_DATUM_INIT(is_color, /regex, regex("^#\[0-9a-fA-F]{6}$")) | ||
GLOBAL_PROTECT(filename_forbidden_chars) |
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
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,24 @@ | ||
/// Maps icon names to ref values | ||
/datum/asset/json/icon_ref_map | ||
name = "icon_ref_map" | ||
early = TRUE | ||
|
||
/datum/asset/json/icon_ref_map/generate() | ||
var/list/data = list() //"icons/obj/drinks.dmi" => "[0xc000020]" | ||
//var/start = "0xc000000" | ||
var/value = 0 | ||
while(TRUE) | ||
value += 1 | ||
var/ref = "\[0xc[num2text(value,6,16)]\]" | ||
var/mystery_meat = locate(ref) | ||
if(isicon(mystery_meat)) | ||
if(!isfile(mystery_meat)) // Ignore the runtime icons for now | ||
continue | ||
var/path = get_icon_dmi_path(mystery_meat) //Try to get the icon path | ||
if(path) | ||
data[path] = ref | ||
else if(mystery_meat) | ||
continue; //Some other non-icon resource, ogg/json/whatever | ||
else //Out of resources end this, could also try to end this earlier as soon as runtime generated icons appear but eh | ||
break; | ||
return data |
Oops, something went wrong.