...
|
...
|
@@ -37,15 +37,15 @@ function _M:makeUI() |
37
|
37
|
|
38
|
38
|
self.c_desc = Textzone.new{font=self.chat.dialog_text_font, width=self.iw - 10 - xoff, height=1, auto_height=true, text=self.text.."\n", can_focus=false}
|
39
|
39
|
self.c_list = VariableList.new{font=self.chat.dialog_answer_font, width=self.iw - 10 - xoff, max_height=game.h * 0.70 - self.c_desc.h, list=self.list, fct=function(item) self:use(item) end, select=function(item) self:select(item) end}
|
40
|
|
- local npc_frame = ActorFrame.new{actor=self.npc.chat_display_entity or self.npc, w=64, h=64}
|
41
|
|
- local player_frame = ActorFrame.new{actor=self.player.chat_display_entity or self.player, w=64, h=64}
|
|
40
|
+ local npc_frame = ActorFrame.new{actor=self.npc.chat_display_entity or self.npc, w=128, h=128, allow_shader=false, allow_cb=false}
|
|
41
|
+ local player_frame = ActorFrame.new{actor=self.player.chat_display_entity or self.player, w=128, h=128, allow_shader=false, allow_cb=false}
|
42
|
42
|
|
43
|
43
|
local uis = {
|
44
|
44
|
{left=0, top=0, ui=self.c_desc},
|
45
|
45
|
{right=0, bottom=math.max(self.c_desc.h, npc_frame.h) + 5, ui=self.c_list},
|
46
|
46
|
{left=5, top=self.c_desc.h - 10, ui=Separator.new{ui="simple", dir="vertical", size=self.iw - 10}},
|
47
|
|
- {right=-64, top=-64, ui=npc_frame, ignore_size=true},
|
48
|
|
- {left=-64, top=-64, ui=player_frame, ignore_size=true},
|
|
47
|
+ {right=-128, vcenter=0, ui=npc_frame, ignore_size=true},
|
|
48
|
+ {left=-128, vcenter=0, ui=player_frame, ignore_size=true},
|
49
|
49
|
}
|
50
|
50
|
|
51
|
51
|
self:loadUI(uis)
|
...
|
...
|
|