Skip to content
Snippets Groups Projects
Commit 94301e74 authored by dg's avatar dg
Browse files

More pace for price in shops

git-svn-id: http://svn.net-core.org/repos/t-engine4@5535 51575b47-30f0-44d4-a5cc-537603b46e54
parent f8b6bdef
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ function _M:init(title, store_inven, actor_inven, store_filter, actor_filter, ac
{name="", width={24,"fixed"}, display_prop="object", direct_draw=function(item, x, y) item.object:toScreen(nil, x+4, y, 16, 16) end},
{name="Inventory", width=80, display_prop="name", sort="name"},
{name="Category", width=20, display_prop="cat", sort="cat"},
{name="Price", width={50,"fixed"}, display_prop=function(item) return self.descprice("sell", item.object) end, sort=function(a, b) return descprice("sell", a.object) < descprice("sell", b.object) end},
{name="Price", width={70,"fixed"}, display_prop=function(item) return self.descprice("sell", item.object) end, sort=function(a, b) return descprice("sell", a.object) < descprice("sell", b.object) end},
},
fct=function(item, sel, button, event) self:use(item, button, event) end,
select=function(item, sel) self:select(item) end,
......@@ -78,7 +78,7 @@ function _M:init(title, store_inven, actor_inven, store_filter, actor_filter, ac
{name="", width={24,"fixed"}, display_prop="object", direct_draw=direct_draw},
{name="Store", width=80, display_prop="name"},
{name="Category", width=20, display_prop="cat"},
{name="Price", width={50,"fixed"}, display_prop=function(item) return self.descprice("buy", item.object) end, sort=function(a, b) return descprice("buy", a.object) < descprice("buy", b.object) end},
{name="Price", width={70,"fixed"}, display_prop=function(item) return self.descprice("buy", item.object) end, sort=function(a, b) return descprice("buy", a.object) < descprice("buy", b.object) end},
},
fct=function(item, sel, button, event) self:use(item, button, event) end,
select=function(item, sel) self:select(item) end,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment