Commit c8f99f9225532117663f2d52eb91b15831f7a7ad

Authored by DarkGod
1 parent b7bba2cd

plop

... ... @@ -41,6 +41,8 @@ function _M:init(mode)
41 41 if not mode then mode = core.steam and "steam" or "te4" end
42 42 self.mode = mode
43 43
  44 + self.ui = "microtxn"
  45 +
44 46 self.cart = {}
45 47
46 48 self.base_title_text = game.__mod_info.long_name.." #GOLD#Online Store#LAST#"
... ... @@ -117,6 +119,7 @@ function _M:init(mode)
117 119 elseif mode == "te4" then
118 120 uis[#uis+1] = {right=0, bottom=self.c_do_purchase, ui=self.c_coins_available}
119 121 end
  122 +
120 123 self:loadUI(uis)
121 124
122 125 self:setupUI(false, false)
... ...
1 1 -- ToME - Tales of Maj'Eyal
2   --- Copyright (C) 2009 - 2017 Nicolas Casalini
  2 +-- Copyright (C) 2009 - 2018 Nicolas Casalini
3 3 --
4 4 -- This program is free software: you can redistribute it and/or modify
5 5 -- it under the terms of the GNU General Public License as published by
... ... @@ -17,15 +17,13 @@
17 17 -- Nicolas Casalini "DarkGod"
18 18 -- darkgod@te4.org
19 19
20   -return {
21   - id = "BEARSCAPE",
22   - name = "The Bearscape (server-wide)",
23   - image = "/data/gfx/achievements/bearscape.png",
24   - desc = [[The Bearscape is a level 15+ zone that spawns on the worldmap.
25   -This legendary place is said to be filled with powerful bears, all very hungry!
26   -Will you survive this place? Can you #{bold}#bear#{italic}# it?!
27   -#GREEN#Server-wide:#LAST# This event will trigger for your character and every other player currently playing.]],
28   -
29   - price = 20,
30   - multi_pruchase = true,
31   -}
  20 +microtxn = {
  21 + frame_shadow = {x=15, y=15, a=0.5},
  22 + frame_alpha = 1,
  23 + frame_darkness = 0.6,
  24 + frame_ox1 = -60,
  25 + frame_ox2 = 60,
  26 + frame_oy1 = -60,
  27 + frame_oy2 = 60,
  28 +-- title_bar = {x=0, y=-17, w=4, h=25},
  29 +}
\ No newline at end of file
... ...
1   --- ToME - Tales of Maj'Eyal
2   --- Copyright (C) 2009 - 2017 Nicolas Casalini
3   ---
4   --- This program is free software: you can redistribute it and/or modify
5   --- it under the terms of the GNU General Public License as published by
6   --- the Free Software Foundation, either version 3 of the License, or
7   --- (at your option) any later version.
8   ---
9   --- This program is distributed in the hope that it will be useful,
10   --- but WITHOUT ANY WARRANTY; without even the implied warranty of
11   --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12   --- GNU General Public License for more details.
13   ---
14   --- You should have received a copy of the GNU General Public License
15   --- along with this program. If not, see <http://www.gnu.org/licenses/>.
16   ---
17   --- Nicolas Casalini "DarkGod"
18   --- darkgod@te4.org
19   -
20   -return {
21   - id = "POOSH",
22   - name = "Lost Land of Poosh (server-wide)",
23   - image = "/data/gfx/achievements/land_poosh.png",
24   - desc = [[The Bearscape is a level 15+ zone that spawns on the worldmap.
25   -Poosh has gone missing! But what is poosh? Who stole it? And most importantly, what deliciously terrible deaths will it give your character?
26   -Will you survive and claim your rewards? Or will you die forever lost in a lost land?
27   -#GREEN#Server-wide:#LAST# This event will trigger for your character and every other player currently playing.]],
28   -
29   - price = 20,
30   - multi_pruchase = true,
1   --- ToME - Tales of Maj'Eyal
2   --- Copyright (C) 2009 - 2017 Nicolas Casalini
3   ---
4   --- This program is free software: you can redistribute it and/or modify
5   --- it under the terms of the GNU General Public License as published by
6   --- the Free Software Foundation, either version 3 of the License, or
7   --- (at your option) any later version.
8   ---
9   --- This program is distributed in the hope that it will be useful,
10   --- but WITHOUT ANY WARRANTY; without even the implied warranty of
11   --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12   --- GNU General Public License for more details.
13   ---
14   --- You should have received a copy of the GNU General Public License
15   --- along with this program. If not, see <http://www.gnu.org/licenses/>.
16   ---
17   --- Nicolas Casalini "DarkGod"
18   --- darkgod@te4.org
19   -
20   -if mode == "steam" then
21   -
22   -return {
23   - id = "VAULT_SPACE",
24   - name = "Storage Vault Space (+2)",
25   - image = "/data/gfx/shockbolt/terrain/padlock2.png",
26   - desc = [[Unsure what to do with your huge collection of coins?
27   -Feeling a bit tight on the online vault storage?
28   -
29   -For every of purchase of a DLC or on the online store you also gain a new free vault slot for 2€ of purchased value.]],
30   -
31   - price = 10,
32   - multi_pruchase = true,
33   -}
34   -
35   -else
36   -
37   -return {
38   - id = "VAULT_SPACE",
39   - name = "Storage Vault Space (+2)",
40   - image = "/data/gfx/shockbolt/terrain/padlock2.png",
41   - desc = [[Unsure what to do with your huge collection of coins?
42   -Feeling a bit tight on the online vault storage?
43   -
44   -Remember that for every 2 euro of donations you also gain a new free vault slot.]],
45   -
46   - price = 10,
47   - multi_pruchase = true,
48   -}
49   -