Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sandbag preview image, proper editor category #6008

Merged
merged 1 commit into from
Jan 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions addons/sandbag/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

class CBA_Extended_EventHandlers;
class CBA_Extended_EventHandlers_base;

class CfgVehicles {
class Man;
Expand All @@ -25,6 +25,9 @@ class CfgVehicles {
scopeCurator = 2;
displayName = CSTRING(sandbagEmpty_displayName);
vehicleClass = "Items";
editorCategory = "EdCat_Equipment";
editorSubcategory = "EdSubcat_InventoryItems";
editorPreview = QPATHTOF(data\preview_sandbag.jpg);
class TransportItems {
MACRO_ADDITEM(ACE_Sandbag_empty,1);
};
Expand All @@ -47,7 +50,7 @@ class CfgVehicles {
class ThingX;
class ACE_SandbagObject: ThingX {
class EventHandlers {
class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers {};
class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
};

author = ECSTRING(common,ACETeam);
Expand Down Expand Up @@ -79,7 +82,7 @@ class CfgVehicles {
class ACE_MainActions {
selection = "";
distance = 5;
condition = "true";
condition = "(true)";

class ACE_PickUp {
selection = "";
Expand All @@ -94,6 +97,10 @@ class CfgVehicles {
};
};
};

editorCategory = "EdCat_Supplies";
editorSubcategory = QEGVAR(main,subcategory);
editorPreview = QPATHTOF(data\preview_sandbag.jpg);
};

class ACE_SandbagObject_NoGeo: ACE_SandbagObject {
Expand Down
Binary file added addons/sandbag/data/preview_sandbag.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.