Skip to content

Commit

Permalink
Added Install defaults button
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinFunk committed Jul 23, 2014
1 parent d3d56ab commit c8417c6
Show file tree
Hide file tree
Showing 8 changed files with 3,294 additions and 2,810 deletions.
8 changes: 8 additions & 0 deletions lua/ps2/modules/pointshop2/sh_module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ MODULE.SettingButtons = {
label = "Reset All",
icon = "pointshop2/restart1.png",
control = "DPointshopReset"
},
{
label = "Install Default Items",
icon = "pointshop2/download7.png",
onClick = function( )
Pointshop2View:getInstance( ):installDefaults( )
Derma_Message( "We're installing the default items for you. Please give us about a minute, your shop will update automatically once the items are installed", "Information" )
end
}
}

Expand Down
124 changes: 123 additions & 1 deletion lua/ps2/server/sv_pointshop2_defaults_categories.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,125 @@
Pointshop2.DefaultCategories = {

[99] = {
["self"] = {
["icon"] = "materials/pointshop2/wizard.png",
["label"] = "Pets",
["id"] = 99,
},
["items"] = {
[1] = "2347648841",
[2] = "1175234661",
[3] = "370122214",
[4] = "155962296",
[5] = "3051076921",
},
["subcategories"] = {
},
},
[100] = {
["self"] = {
["icon"] = "materials/pointshop2/briefcase3.png",
["label"] = "Accessories",
["id"] = 100,
},
["items"] = {
[1] = "895604306",
[2] = "710126713",
[3] = "1569846628",
[4] = "1602075951",
[5] = "1194497265",
[6] = "988671342",
[7] = "2599050048",
[8] = "551724184",
[9] = "4218219074",
[10] = "1505502208",
[11] = "1007171176",
[12] = "1992973450",
[13] = "3495013946",
},
["subcategories"] = {
[101] = {
["self"] = {
["icon"] = "pointshop2/folder62.png",
["label"] = "Badges",
["id"] = 101,
},
["items"] = {
[1] = "2067737015",
[2] = "2165385669",
[3] = "4214505326",
},
["subcategories"] = {
},
},
},
},
[97] = {
["self"] = {
["icon"] = "materials/pointshop2/winner2.png",
["label"] = "Trails",
["id"] = 97,
},
["items"] = {
[1] = "1258384964",
[2] = "668876467",
[3] = "1336884910",
[4] = "4100505186",
[5] = "3371876194",
[6] = "1860848674",
[7] = "3437687428",
[8] = "3956810156",
},
["subcategories"] = {
},
},
[98] = {
["self"] = {
["icon"] = "materials/pointshop2/cowboy5.png",
["label"] = "Hats",
["id"] = 98,
},
["items"] = {
[1] = "2150966891",
[2] = "1572772150",
[3] = "1671491196",
[4] = "1135551334",
[5] = "2723904288",
[6] = "385347938",
[7] = "4118525593",
[8] = "1772308534",
[9] = "187832581",
[10] = "3572952100",
[11] = "1416370780",
[12] = "1519553184",
[13] = "687886117",
[14] = "1522469805",
[15] = "737118149",
[16] = "3414829960",
[17] = "2015824183",
[18] = "3405159942",
},
["subcategories"] = {
},
},
[96] = {
["self"] = {
["icon"] = "materials/pointshop2/playermodel.png",
["label"] = "Player Models",
["id"] = 96,
},
["items"] = {
[1] = "1471290215",
[2] = "2128663016",
[3] = "4193657210",
[4] = "758693",
[5] = "1927687137",
[6] = "3045068691",
[7] = "3071368555",
[8] = "3097832476",
[9] = "709619383",
[10] = "3486995054",
},
["subcategories"] = {
},
},
}
Loading

0 comments on commit c8417c6

Please sign in to comment.