Some fixes

* Scrollbar on hotkeys window
* Guild channel will appears on channel list but not yet working properly
This commit is contained in:
AndreFaramir 2012-04-24 00:19:01 -03:00
parent dcefeb134c
commit c903cc7ec4
3 changed files with 15 additions and 6 deletions

View File

@ -148,7 +148,7 @@ local function onChannelList(channelList)
local channelId = v[1]
local channelName = v[2]
if channelId ~= 0 and #channelName > 0 then
if #channelName > 0 then
local label = createWidget('ChannelListLabel', channelListPanel)
label.channelId = channelId
label:setText(channelName)

View File

@ -286,7 +286,7 @@ end
function HotkeysManager.call(keyCombo)
if g_game.isOnline() then
local hotKey = hotkeyList[keyCombo]
if hotKey.itemId == nil and hotKey.value ~= '' then
if hotKey ~= nil and hotKey.itemId == nil and hotKey.value ~= '' then
if hotKey.autoSend then
g_game.talk(hotKey.value)
else

View File

@ -23,12 +23,21 @@ MainWindow
anchors.right: parent.right
anchors.top: parent.top
VerticalScrollBar
id: currentHotkeysScrollBar
height: 150
anchors.top: parent.top
anchors.right: parent.right
step: 14
pixels-scroll: true
TextList
id: currentHotkeys
vertical-scrollbar: currentHotkeysScrollBar
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
height: 150
anchors.right: prev.left
anchors.top: prev.top
anchors.bottom: prev.bottom
margin-top: 2
padding: 1
focusable: false