Commit 5d88fea73cb0795082e85762861dd5400e92a923

Authored by DarkGod
1 parent c08f1060

more UI

... ... @@ -35,6 +35,16 @@ dark = {
35 35 frame_oy1 = -42,
36 36 frame_oy2 = 42,
37 37 title_bar = {x=0, y=-18, w=4, h=25},
  38 + dropdown_ui = "darksimple",
  39 +}
  40 +
  41 +darksimple = {
  42 + frame_shadow = nil,
  43 + frame_alpha = 0.82,
  44 + frame_ox1 = -2,
  45 + frame_ox2 = 2,
  46 + frame_oy1 = -2,
  47 + frame_oy2 = 2,
38 48 }
39 49
40 50 stone = {
... ...
... ... @@ -64,8 +64,10 @@ function _M:positioned(x, y, sx, sy)
64 64 self:sound("button")
65 65 self.fct(self.c_list.list[self.c_list.sel])
66 66 end}
67   - self.popup = Dialog.new(nil, self.w, self.c_list.h, sx, sy + self.h, nil, nil, false, "simple")
68   - self.popup.frame.a = 0.7
  67 + local dui = "simple"
  68 + if self.ui_conf[self.ui] and self.ui_conf[self.ui].dropdown_ui then dui = self.ui_conf[self.ui].dropdown_ui end
  69 + self.popup = Dialog.new(nil, self.w, self.c_list.h, sx, sy + self.h, nil, nil, false, dui)
  70 + if dui == "simple" then self.popup.frame.a = 0.7 end
69 71 self.popup:loadUI{{left=0, top=0, ui=self.c_list}}
70 72 self.popup:setupUI(true, true)
71 73 self.popup.key:addBind("EXIT", function()
... ...