mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-18 18:46:24 +01:00
Replace the alt click menu with the RPG Lootpanel (#17938)
* Port lootpanel without removing old obj panel * Rip out the loot panel leaving examine tab intact * some fixes * we want nice icons * that * Switch to more robust hotkey detection * Add a reminder to ctrl-r --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -183,3 +183,6 @@
|
||||
|
||||
/// The DPI scale of the client. 1 is equivalent to 100% window scaling, 2 will be 200% window scaling
|
||||
var/window_scaling
|
||||
|
||||
/// Loot panel for the client
|
||||
var/datum/lootpanel/loot_panel
|
||||
|
||||
@@ -302,6 +302,8 @@
|
||||
tgui_say.initialize()
|
||||
tgui_shocker.initialize()
|
||||
|
||||
loot_panel = new(src)
|
||||
|
||||
connection_time = world.time
|
||||
connection_realtime = world.realtime
|
||||
connection_timeofday = world.timeofday
|
||||
@@ -388,6 +390,7 @@
|
||||
GLOB.directory -= ckey
|
||||
GLOB.clients -= src
|
||||
|
||||
QDEL_NULL(loot_panel)
|
||||
..()
|
||||
return QDEL_HINT_HARDDEL_NOW
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
|
||||
/datum/category_item/player_setup_item/general/nif/copy_to_mob(var/mob/living/carbon/human/character)
|
||||
//If you had a NIF...
|
||||
if(istype(character) && ispath(pref.nif_path) && pref.nif_durability)
|
||||
if(istype(character) && ispath(pref.nif_path) && pref.nif_durability && !ismannequin(character))
|
||||
new pref.nif_path(character, pref.nif_durability, pref.nif_savedata)
|
||||
|
||||
/datum/category_item/player_setup_item/general/nif/tgui_data(mob/user, datum/tgui/ui, datum/tgui_state/state)
|
||||
|
||||
Reference in New Issue
Block a user