Cooldown particles! lol

* Changed some ui details in cooldown module.
master
BeniS 11 years ago
parent 60986eb80f
commit 377c013dfe

@ -1,35 +1,36 @@
Particle Particle
name: default_particle name: groupcooldown_particle
duration: 10 duration: 0.4
min-position-radius: 0 min-position-radius: 0
max-position-radius: 256 max-position-radius: 32
min-position-angle: 0 min-position-angle: 0
max-position-angle: 360 max-position-angle: 360
velocity: 10 velocity: 10
min-velocity-angle: 0 min-velocity-angle: 0
max-velocity-angle: 360 max-velocity-angle: 360
colors: #ffffff00 #ffffffff #00000000 colors: #ffffff00 #ffffffff #fff13000
colors-stops: 0 0.1 1 colors-stops: 0 0.1 1
size: 24 24 size: 1 1
texture: /particles/particle texture: /particles/particle
composition-mode: normal composition-mode: normal
Effect Effect
name: background-effect name: groupcooldown-effect
description: Effect for the game background description: Effect for group cooldowns in the cooldown module
System System
position: 0 0 position: 0 0
Emitter Emitter
position: 0 0 position: 0 0
delay: 0 delay: 0.06
duration: 0 duration: 0.2
burst-rate: 50 burst-rate: 350
burst-count: 1 burst-count: 50
particle-type: default_particle particle-type: groupcooldown_particle
AttractionAffector AttractionAffector
position: 0 0 position: 0 0
acceleration: 1000 acceleration: 1000

@ -76,6 +76,11 @@ function turnOffCooldown(progressRect)
progressRect.icon:setOn(false) progressRect.icon:setOn(false)
progressRect.icon = nil progressRect.icon = nil
end end
-- create particles
local particle = g_ui.createWidget('GroupCooldownParticles', progressRect)
particle:fill('parent')
progressRect = nil progressRect = nil
end end

@ -6,27 +6,25 @@ SpellGroupIcon < UIWidget
margin-top: 3 margin-top: 3
SpellIcon < UIWidget SpellIcon < UIWidget
size: 22 22 size: 24 24
image-size: 22 22 image-size: 24 24
margin-left: 2
anchors.top: prev.top
anchors.left: prev.right
focusable: false focusable: false
$first: $!first:
margin-top: 3 margin-left: 1
anchors.top: parent.top
anchors.left: parent.left
SpellProgressRect < UIProgressRect SpellProgressRect < UIProgressRect
background: #585858AA background: #585858AA
percent: 100 percent: 100
focusable: false focusable: false
GroupCooldownParticles < UIParticles
effect: groupcooldown-effect
MiniWindow MiniWindow
id: cooldownWindow id: cooldownWindow
!text: tr('Spell Cooldowns') !text: tr('Spell Cooldowns')
height: 85 height: 82
icon: /images/topbuttons/cooldowns icon: /images/topbuttons/cooldowns
@onClose: modules.game_cooldown.onMiniWindowClose() @onClose: modules.game_cooldown.onMiniWindowClose()
&save: true &save: true
@ -37,7 +35,7 @@ MiniWindow
image-clip: 0 0 20 20 image-clip: 0 0 20 20
anchors.top: parent.top anchors.top: parent.top
anchors.left: parent.left anchors.left: parent.left
margin-left: 3 margin-left: 2
$on: $on:
image-clip: 0 20 20 20 image-clip: 0 20 20 20
@ -90,13 +88,16 @@ MiniWindow
Panel Panel
id: spellCooldownPanel id: spellCooldownPanel
margin-top: 5 layout:
type: horizontalBox
height: 30
margin-top: 3
padding: 3
anchors.top: groupIconSpecial.bottom anchors.top: groupIconSpecial.bottom
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
height: 30 //border-width: 1
padding: 1 //border-color: #00000077
margin-left: 2 background-color: #ffffff11
margin-right: 2
border: 1 #444444
Loading…
Cancel
Save