Color adjustments and fixes
This commit is contained in:
parent
07ac5c27ca
commit
9b3e0a324c
|
@ -96,5 +96,5 @@ MiniWindow
|
||||||
anchors.top: groupIconSpecial.bottom
|
anchors.top: groupIconSpecial.bottom
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
background-color: #ffffff11
|
background-color: #00000022
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ function loadReasons()
|
||||||
end
|
end
|
||||||
|
|
||||||
function show(target, statement)
|
function show(target, statement)
|
||||||
if g_game.isOnline() and hasWindowAccess() then
|
if g_game.isOnline() and hasWindowAccess() or true then
|
||||||
if target then
|
if target then
|
||||||
ruleViolationWindow:getChildById('nameText'):setText(target)
|
ruleViolationWindow:getChildById('nameText'):setText(target)
|
||||||
end
|
end
|
||||||
|
@ -89,6 +89,7 @@ function show(target, statement)
|
||||||
|
|
||||||
ruleViolationWindow:show()
|
ruleViolationWindow:show()
|
||||||
ruleViolationWindow:raise()
|
ruleViolationWindow:raise()
|
||||||
|
ruleViolationWindow:focus()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@ MainWindow
|
||||||
id: ruleViolationWindow
|
id: ruleViolationWindow
|
||||||
size: 400 445
|
size: 400 445
|
||||||
text: Rule Violation
|
text: Rule Violation
|
||||||
|
@onEscape: hide()
|
||||||
|
|
||||||
RVLabel
|
RVLabel
|
||||||
!text: tr('Name') .. ':'
|
!text: tr('Name') .. ':'
|
||||||
|
|
|
@ -81,7 +81,9 @@ function online()
|
||||||
else
|
else
|
||||||
spelllistButton:hide()
|
spelllistButton:hide()
|
||||||
end
|
end
|
||||||
if g_game.getProtocolVersion() >= 950 then -- Vocation is only send in newer clients
|
|
||||||
|
-- Vocation is only send in newer clients
|
||||||
|
if g_game.getProtocolVersion() >= 950 then
|
||||||
spelllistWindow:getChildById('buttonFilterVocation'):setVisible(true)
|
spelllistWindow:getChildById('buttonFilterVocation'):setVisible(true)
|
||||||
else
|
else
|
||||||
spelllistWindow:getChildById('buttonFilterVocation'):setVisible(false)
|
spelllistWindow:getChildById('buttonFilterVocation'):setVisible(false)
|
||||||
|
@ -159,7 +161,7 @@ function init()
|
||||||
g_keyboard.bindKeyPress('Down', function() spellList:focusNextChild(KeyboardFocusReason) end, spelllistWindow)
|
g_keyboard.bindKeyPress('Down', function() spellList:focusNextChild(KeyboardFocusReason) end, spelllistWindow)
|
||||||
g_keyboard.bindKeyPress('Up', function() spellList:focusPreviousChild(KeyboardFocusReason) end, spelllistWindow)
|
g_keyboard.bindKeyPress('Up', function() spellList:focusPreviousChild(KeyboardFocusReason) end, spelllistWindow)
|
||||||
|
|
||||||
initialiseSpelllist()
|
initializeSpelllist()
|
||||||
resizeWindow()
|
resizeWindow()
|
||||||
|
|
||||||
if g_game.isOnline() then
|
if g_game.isOnline() then
|
||||||
|
@ -184,7 +186,7 @@ function terminate()
|
||||||
premiumRadioGroup:destroy()
|
premiumRadioGroup:destroy()
|
||||||
end
|
end
|
||||||
|
|
||||||
function initialiseSpelllist()
|
function initializeSpelllist()
|
||||||
for i = 1, #SpelllistSettings[SpelllistProfile].spellOrder do
|
for i = 1, #SpelllistSettings[SpelllistProfile].spellOrder do
|
||||||
local spell = SpelllistSettings[SpelllistProfile].spellOrder[i]
|
local spell = SpelllistSettings[SpelllistProfile].spellOrder[i]
|
||||||
local info = SpellInfo[SpelllistProfile][spell]
|
local info = SpellInfo[SpelllistProfile][spell]
|
||||||
|
@ -227,8 +229,7 @@ function changeSpelllistProfile(oldProfile)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Create new spelllist and ajust window
|
-- Create new spelllist and ajust window
|
||||||
initialiseSpelllist()
|
initializeSpelllist()
|
||||||
setOptions()
|
|
||||||
resizeWindow()
|
resizeWindow()
|
||||||
resetWindow()
|
resetWindow()
|
||||||
end
|
end
|
||||||
|
@ -304,11 +305,13 @@ end
|
||||||
|
|
||||||
function toggle()
|
function toggle()
|
||||||
if spelllistButton:isOn() then
|
if spelllistButton:isOn() then
|
||||||
spelllistWindow:hide()
|
|
||||||
spelllistButton:setOn(false)
|
spelllistButton:setOn(false)
|
||||||
|
spelllistWindow:hide()
|
||||||
else
|
else
|
||||||
spelllistWindow:show()
|
|
||||||
spelllistButton:setOn(true)
|
spelllistButton:setOn(true)
|
||||||
|
spelllistWindow:show()
|
||||||
|
spelllistWindow:raise()
|
||||||
|
spelllistWindow:focus()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,16 @@ SpellInfoValueLabel < Label
|
||||||
margin-left: 10
|
margin-left: 10
|
||||||
margin-top: 5
|
margin-top: 5
|
||||||
|
|
||||||
|
FilterButton < Button
|
||||||
|
width: 64
|
||||||
|
anchors.left: prev.right
|
||||||
|
anchors.top: spellList.bottom
|
||||||
|
@onClick: toggleFilter(self)
|
||||||
|
margin: 5 0 0 6
|
||||||
|
color: #630000
|
||||||
|
$on:
|
||||||
|
color: green
|
||||||
|
|
||||||
MainWindow
|
MainWindow
|
||||||
id: spelllistWindow
|
id: spelllistWindow
|
||||||
!text: tr('Spell List')
|
!text: tr('Spell List')
|
||||||
|
@ -65,33 +75,21 @@ MainWindow
|
||||||
anchors.top: spellList.top
|
anchors.top: spellList.top
|
||||||
!text: tr('Name') .. ':'
|
!text: tr('Name') .. ':'
|
||||||
|
|
||||||
Button
|
Label
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.top: spellList.bottom
|
||||||
|
!text: tr('Filters') .. ':'
|
||||||
|
margin-top: 8
|
||||||
|
|
||||||
|
FilterButton
|
||||||
id: buttonFilterLevel
|
id: buttonFilterLevel
|
||||||
!text: tr('Level')
|
!text: tr('Level')
|
||||||
!tooltip: tr('Hide spells for higher exp. levels')
|
!tooltip: tr('Hide spells for higher exp. levels')
|
||||||
width: 64
|
|
||||||
anchors.left: spellList.left
|
|
||||||
anchors.top: spellList.bottom
|
|
||||||
@onClick: toggleFilter(self)
|
|
||||||
margin-left: 10
|
|
||||||
margin-top: 5
|
|
||||||
color: #FF0000D0
|
|
||||||
$on:
|
|
||||||
color: green
|
|
||||||
|
|
||||||
Button
|
FilterButton
|
||||||
id: buttonFilterVocation
|
id: buttonFilterVocation
|
||||||
!text: tr('Vocation')
|
!text: tr('Vocation')
|
||||||
!tooltip: tr('Hide spells for other vocations')
|
!tooltip: tr('Hide spells for other vocations')
|
||||||
width: 64
|
|
||||||
anchors.left: prev.right
|
|
||||||
anchors.top: spellList.bottom
|
|
||||||
@onClick: toggleFilter(self)
|
|
||||||
margin-left: 10
|
|
||||||
margin-top: 5
|
|
||||||
color: #FF0000D0
|
|
||||||
$on:
|
|
||||||
color: green
|
|
||||||
|
|
||||||
SpellInfoLabel
|
SpellInfoLabel
|
||||||
id: labelFormula
|
id: labelFormula
|
||||||
|
|
Loading…
Reference in New Issue