-
-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: silicons <[email protected]>
- Loading branch information
Showing
585 changed files
with
4,828 additions
and
3,890 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
8 changes: 8 additions & 0 deletions
8
code/__DEFINES/dcs/signals/signals_item/signals_item_mouse.dm
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,8 @@ | ||
//* This file is explicitly licensed under the MIT license. *// | ||
//* Copyright (c) 2023 Citadel Station developers. *// | ||
|
||
/// from base of item/MouseEntered: (usr) | ||
#define COMSIG_ITEM_MOUSE_ENTERED "item_mouse_enter" | ||
|
||
/// from base of item/MouseExited: (usr) | ||
#define COMSIG_ITEM_MOUSE_EXITED "item_mouse_exit" |
5 changes: 5 additions & 0 deletions
5
code/__DEFINES/dcs/signals/signals_item/signals_item_storage.dm
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,5 @@ | ||
|
||
/// From base of obj/item/on_enter_storage(): (datum/object_system/storage/storage) | ||
#define COMSIG_STORAGE_ENTERED "storage_entered" | ||
/// From base of obj/item/on_exit_storage(): (datum/object_system/storage/storage) | ||
#define COMSIG_STORAGE_EXITED "storage_exited" |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// proc: dropped() on /obj/item | ||
// todo: this should be in procs.dm and the names need to be changed probably | ||
/// relocated; return false | ||
#define ITEM_RELOCATED_BY_DROPPED -1 |
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,91 @@ | ||
//* This file is explicitly licensed under the MIT license. *// | ||
//* Copyright (c) 2023 Citadel Station developers. *// | ||
|
||
//* Storage UI defines *// | ||
|
||
/// Size of volumetric box icon | ||
#define VOLUMETRIC_STORAGE_BOX_ICON_SIZE 32 | ||
/// Size of EACH left/right border icon for volumetric boxes | ||
#define VOLUMETRIC_STORAGE_BOX_BORDER_SIZE 2 | ||
/// Minimum pixels an item must have in volumetric scaled storage UI | ||
/// This must not be smaller than BOX_BORDER_SIZE * 2. | ||
#define VOLUMETRIC_STORAGE_MINIMUM_PIXELS_PER_ITEM 6 | ||
/// Maximum number of objects that will be allowed to be displayed using the volumetric display system. Arbitrary number to prevent server lockups. | ||
#define VOLUMETRIC_STORAGE_MAX_ITEMS 128 | ||
/// How much padding to give between items | ||
#define VOLUMETRIC_STORAGE_ITEM_PADDING 1 | ||
/// How much padding to give to edges | ||
#define VOLUMETRIC_STORAGE_EDGE_PADDING 0 | ||
/// Standard pixel width ratio for volumetric storage; 1 volume converts into this many pixels. | ||
#define VOLUMETRIC_STORAGE_STANDARD_PIXEL_RATIO 8 | ||
|
||
//* Storage access *// | ||
|
||
#define STORAGE_REACH_DEPTH 3 | ||
|
||
//* Storage quick gather modes *// | ||
|
||
/// one at a time on click | ||
#define STORAGE_QUICK_GATHER_COLLECT_ONE 1 | ||
/// all on tile | ||
#define STORAGE_QUICK_GATHER_COLLECT_ALL 2 | ||
/// same typepath | ||
#define STORAGE_QUICK_GATHER_COLLECT_SAME 3 | ||
|
||
//* Storage UI - we shouldn't hardcode this but I don't care. *// | ||
// todo: we should care | ||
|
||
#define STORAGE_UI_START_TILE_X 3 | ||
#define STORAGE_UI_START_TILE_Y 1 | ||
#define STORAGE_UI_START_PIXEL_X 16 | ||
#define STORAGE_UI_START_PIXEL_Y 16 | ||
#define STORAGE_UI_TILES_FOR_SCREEN_VIEW_X(X) max(4, X - 8) | ||
#define STORAGE_UI_MAX_ROWS 5 | ||
|
||
//* w_class *// | ||
|
||
// ITEM INVENTORY WEIGHT, FOR w_class | ||
// todo: lmao this is so outdated, semantically | ||
// keep this 1 to n, and make sure w_class_to_volume is updated. | ||
|
||
#define WEIGHT_CLASS_MIN 0 | ||
#define WEIGHT_CLASS_MAX 6 | ||
|
||
/// Usually items smaller then a human hand, ex: Playing Cards, Lighter, Scalpel, Coins/Money | ||
#define WEIGHT_CLASS_TINY 1 | ||
/// Pockets can hold small and tiny items, ex: Flashlight, Multitool, Grenades, GPS Device | ||
#define WEIGHT_CLASS_SMALL 2 | ||
/// Standard backpacks can carry tiny, small & normal items, ex: Fire extinguisher, Stunbaton, Gas Mask, Metal Sheets | ||
#define WEIGHT_CLASS_NORMAL 3 | ||
/// Items that can be weilded or equipped but not stored in a normal bag, ex: Defibrillator, Backpack, Space Suits | ||
#define WEIGHT_CLASS_BULKY 4 | ||
/// Usually represents objects that require two hands to operate, ex: Shotgun, Two Handed Melee Weapons - Can not fit in Boh | ||
#define WEIGHT_CLASS_HUGE 5 | ||
/// Essentially means it cannot be picked up or placed in an inventory, ex: Mech Parts, Safe - Can not fit in Boh | ||
#define WEIGHT_CLASS_GIGANTIC 6 | ||
|
||
//* Volumetrics - Default Item Volumes *// | ||
|
||
#define WEIGHT_VOLUME_TINY 1 | ||
#define WEIGHT_VOLUME_SMALL 2 | ||
#define WEIGHT_VOLUME_NORMAL 4 | ||
#define WEIGHT_VOLUME_BULKY 8 | ||
#define WEIGHT_VOLUME_HUGE 16 | ||
#define WEIGHT_VOLUME_GIGANTIC 32 | ||
|
||
GLOBAL_REAL_LIST(w_class_to_volume) = list( | ||
WEIGHT_VOLUME_TINY, | ||
WEIGHT_VOLUME_SMALL, | ||
WEIGHT_VOLUME_NORMAL, | ||
WEIGHT_VOLUME_BULKY, | ||
WEIGHT_VOLUME_HUGE, | ||
WEIGHT_VOLUME_GIGANTIC, | ||
) | ||
|
||
//* Volumetrics - Storage Volumes *// | ||
|
||
#define STORAGE_VOLUME_BOX (WEIGHT_VOLUME_SMALL * 7) | ||
#define STORAGE_VOLUME_BACKPACK (WEIGHT_VOLUME_NORMAL * 7) | ||
#define STORAGE_VOLUME_DUFFLEBAG (WEIGHT_VOLUME_NORMAL * 9) | ||
|
||
//* Volumetrics - Item Volumes *// |
Oops, something went wrong.