mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-23 10:47:06 +01:00
- separates the composition of cyborgs into modules, iconsets, chassis, upgrades - modules / chassis atm can provide items, so can upgrades; in the future we will want to probably generalize the item API a bit so components can work - chassis now can (unimplemented) easily be made to give different stats - reorganizes all the cyborg sprites - adds generalized item mounts with redirection support and tears out legacy cyborg items - entirely rebalances modules & writes some new lawsets in for future use --------- Co-authored-by: silicons <silicons@silicons.dev>
165 lines
6.2 KiB
Plaintext
165 lines
6.2 KiB
Plaintext
//* All static screen_loc of UI objects are in here! *//
|
|
|
|
/*
|
|
These defines specificy screen locations. For more information, see the byond documentation on the screen_loc var.
|
|
|
|
The short version:
|
|
|
|
Everything is encoded as strings because apparently that's how Byond rolls.
|
|
|
|
"1,1" is the bottom left square of the user's screen. This aligns perfectly with the turf grid.
|
|
"1:2,3:4" is the square (1,3) with pixel offsets (+2, +4); slightly right and slightly above the turf grid.
|
|
Pixel offsets are used so you don't perfectly hide the turf under them, that would be crappy.
|
|
|
|
The size of the user's screen is defined by client.view (indirectly by world.view), in our case "15x15".
|
|
Therefore, the top right corner (except during admin shenanigans) is at "15,15"
|
|
*/
|
|
|
|
//! RESIST THE URGE TO DO Y,X.
|
|
//! BYOND will 100% allow you to.
|
|
//! DO NOT DO THIS.
|
|
|
|
//* General HUD positions *//
|
|
//* These should be as widescreen-agnostic as possible. *//
|
|
|
|
/// Fill screen
|
|
#define SCREEN_LOC_FULLSCREEN "LEFT,BOTTOM to RIGHT,TOP"
|
|
|
|
//* Mob HUD positions *//
|
|
//* These should be widescreen-agnostic and use anchorings *//
|
|
//* to the sides of the screen / center. *//
|
|
|
|
// -- Inventory is in `code/game/rendering/actor_huds/huds/inventory.dm` -- //
|
|
|
|
//! < legacy stuff below > !//
|
|
|
|
/// Hands
|
|
|
|
#define ui_smallquad "RIGHT-4:18,BOTTOM:4"
|
|
|
|
///same height as humans, hugging the right border
|
|
#define ui_construct_health "RIGHT:00,CENTER:15"
|
|
#define ui_construct_purge "RIGHT:00,CENTER-1:15"
|
|
///above health, slightly to the left
|
|
#define ui_construct_fire "RIGHT-1:16,CENTER+1:13"
|
|
///above the zone_sel icon
|
|
#define ui_construct_pull "RIGHT-1:28,BOTTOM+1:10"
|
|
//Lower right, persistant menu
|
|
#define ui_dropbutton "RIGHT-4:22,BOTTOM:5"
|
|
#define ui_drop_throw "RIGHT-1:28,BOTTOM+1:7"
|
|
#define ui_pull_resist "RIGHT-2:26,BOTTOM+1:7"
|
|
#define ui_acti "RIGHT-2:26,BOTTOM:5"
|
|
#define ui_movi "RIGHT-3:24,BOTTOM:5"
|
|
#define ui_zonesel "RIGHT-1:28,BOTTOM:5"
|
|
///alternative intent switcher for when the interface is hidden (F12)
|
|
#define ui_acti_alt "RIGHT-1:28,BOTTOM:5"
|
|
#define ui_borg_pull "RIGHT-3:24,BOTTOM+1:7"
|
|
#define ui_borg_module "RIGHT-2:26,BOTTOM+1:7"
|
|
#define ui_borg_panel "RIGHT-1:28,BOTTOM+1:7"
|
|
|
|
#define ui_ai_core "LEFT:16,BOTTOM:6"
|
|
#define ui_ai_camera_list "BOTTOM:6,LEFT+1:16"
|
|
#define ui_ai_track_with_camera "BOTTOM:6,LEFT+2:16"
|
|
#define ui_ai_camera_light "BOTTOM:6,LEFT+3:16"
|
|
#define ui_ai_crew_monitor "BOTTOM:6,LEFT+4:16"
|
|
#define ui_ai_crew_manifest "BOTTOM:6,LEFT+5:16"
|
|
#define ui_ai_alerts "BOTTOM:6,LEFT+6:16"
|
|
#define ui_ai_announcement "BOTTOM:6,LEFT+7:16"
|
|
#define ui_ai_shuttle "BOTTOM:6,LEFT+8:16"
|
|
#define ui_ai_state_laws "BOTTOM:6,LEFT+9:16"
|
|
#define ui_ai_pda_send "BOTTOM:6,LEFT+10:16"
|
|
#define ui_ai_pda_log "BOTTOM:6,LEFT+11:16"
|
|
#define ui_ai_take_picture "BOTTOM:6,LEFT+12:16"
|
|
#define ui_ai_view_images "BOTTOM:6,LEFT+13:16"
|
|
#define ui_ai_multicam "BOTTOM+1:6,LEFT+11:16"
|
|
#define ui_ai_add_multicam "BOTTOM+1:6,LEFT+12:16"
|
|
#define ui_ai_updown "BOTTOM+1:6,LEFT+13:16"
|
|
|
|
//Upper-middle right (alerts)
|
|
#define ui_alert1 "RIGHT-1:28,CENTER+5:27"
|
|
#define ui_alert2 "RIGHT-1:28,CENTER+4:25"
|
|
#define ui_alert3 "RIGHT-1:28,CENTER+3:23"
|
|
#define ui_alert4 "RIGHT-1:28,CENTER+2:21"
|
|
#define ui_alert5 "RIGHT-1:28,CENTER+1:19"
|
|
|
|
//Gun buttons
|
|
#define ui_gun1 "RIGHT-2:26,BOTTOM+2:7"
|
|
#define ui_gun2 "RIGHT-1:28, BOTTOM+3:7"
|
|
#define ui_gun3 "RIGHT-2:26,BOTTOM+3:7"
|
|
#define ui_gun_select "RIGHT-1:28,BOTTOM+2:7"
|
|
#define ui_gun4 "RIGHT-3:24,BOTTOM+2:7"
|
|
|
|
//Upper-middle right (damage indicators)
|
|
#define ui_toxin "RIGHT-1:28,TOP-2:27"
|
|
#define ui_fire "RIGHT-1:28,TOP-3:25"
|
|
#define ui_oxygen "RIGHT-1:28,TOP-4:23"
|
|
#define ui_pressure "RIGHT-1:28,TOP-5:21"
|
|
|
|
#define ui_alien_toxin "RIGHT-1:28,TOP-2:25"
|
|
#define ui_alien_fire "RIGHT-1:28,TOP-3:25"
|
|
#define ui_alien_oxygen "RIGHT-1:28,TOP-4:25"
|
|
|
|
//Middle right (status indicators)
|
|
#define ui_nutrition "RIGHT-1:28,CENTER-2:11"
|
|
#define ui_nutrition_small "RIGHT-1:28,CENTER-2:24"
|
|
#define ui_temp "RIGHT-1:28,CENTER-1:13"
|
|
#define ui_health "RIGHT-1:28,CENTER:15"
|
|
#define ui_internal "RIGHT-1:28,CENTER+1:17"
|
|
//borgs
|
|
///borgs have the health display where humans have the pressure damage indicator.
|
|
#define ui_borg_health "RIGHT-1:28,CENTER-1:13"
|
|
///aliens have the health display where humans have the pressure damage indicator.
|
|
#define ui_alien_health "RIGHT-1:28,CENTER-1:13"
|
|
#define ui_ling_chemical_display "RIGHT-1:28,CENTER-3:15"
|
|
#define ui_wiz_energy_display "RIGHT-1:28,CENTER-3:15"
|
|
//#define ui_wiz_instability_display "RIGHT-2:28,CENTER-3:15"
|
|
#define ui_wiz_instability_display "RIGHT-1:28,TOP-2:27"
|
|
|
|
//Intent small buttons
|
|
#define ui_help_small "RIGHT-3:8,BOTTOM:1"
|
|
#define ui_disarm_small "RIGHT-3:15,BOTTOM:18"
|
|
#define ui_grab_small "RIGHT-3:32,BOTTOM:18"
|
|
#define ui_harm_small "RIGHT-3:39,BOTTOM:1"
|
|
|
|
//#define ui_swapbutton "6:-16,1:5" //Unused
|
|
|
|
#define ui_sleep "RIGHT+1,TOP-13"
|
|
#define ui_rest "RIGHT+1,TOP-14"
|
|
|
|
#define ui_spell_master "RIGHT-1:16,TOP-1:16"
|
|
#define ui_genetic_master "RIGHT-1:16,TOP-2:16"
|
|
#define ui_ability_master "RIGHT-1:16,TOP-3:16"
|
|
|
|
#define ui_shadekin_display "RIGHT-1:28,CENTER-3:15"
|
|
#define ui_xenochimera_danger_display "RIGHT-1:28,CENTER-3:15"
|
|
|
|
// Ghost ones
|
|
#define ui_ghost_returntomenu "CENTER-3:24,BOTTOM:6"
|
|
#define ui_ghost_jumptomob "CENTER-2:24,BOTTOM:6"
|
|
#define ui_ghost_orbit "CENTER-1:24,BOTTOM:6"
|
|
#define ui_ghost_reenter_corpse "CENTER:24,BOTTOM:6"
|
|
#define ui_ghost_teleport "CENTER+1:24,BOTTOM:6"
|
|
#define ui_ghost_pai "CENTER+2:24,BOTTOM:6"
|
|
#define ui_ghost_updown "CENTER+3:24,BOTTOM:6"
|
|
#define ui_ghost_spawners "CENTER+4:24,BOTTOM:6"
|
|
|
|
// Hardsuit panel
|
|
#define ui_hardsuit_deco1 "LEFT:-7,BOTTOM+5"
|
|
#define ui_hardsuit_deco2 "LEFT:-7,BOTTOM+6"
|
|
#define ui_hardsuit_pwr "LEFT+1:-7,BOTTOM+6"
|
|
#define ui_hardsuit_health "LEFT+1:-7,BOTTOM+6"
|
|
#define ui_hardsuit_air "LEFT+1:-7,BOTTOM+5"
|
|
#define ui_hardsuit_airtoggle "LEFT+1:-7,BOTTOM+5"
|
|
#define ui_hardsuit_deco1_f "LEFT+2:-7,BOTTOM+5"
|
|
#define ui_hardsuit_deco2_f "LEFT+2:-7,BOTTOM+6"
|
|
|
|
// Mech panel
|
|
#define ui_mech_deco1 "LEFT:-7,BOTTOM+8"
|
|
#define ui_mech_deco2 "LEFT:-7,BOTTOM+9"
|
|
#define ui_mech_pwr "LEFT+1:-7,BOTTOM+9"
|
|
#define ui_mech_health "LEFT+1:-7,BOTTOM+9"
|
|
#define ui_mech_air "LEFT+1:-7,BOTTOM+8"
|
|
#define ui_mech_airtoggle "LEFT+1:-7,BOTTOM+8"
|
|
#define ui_mech_deco1_f "LEFT+2:-7,BOTTOM+8"
|
|
#define ui_mech_deco2_f "LEFT+2:-7,BOTTOM+9"
|