forked from GambitER/GUIFlash
-
Notifications
You must be signed in to change notification settings - Fork 2
Example #2 Display a text with GlowFilter
CH4MPi edited this page Nov 7, 2021
·
1 revision
# import the guiflash module
from gambiter import g_guiFlash
from gambiter.flash import COMPONENT_TYPE
# create a label component (which automatically sets a dropshadow filter under the text)
g_guiFlash.createComponent('labelAlias', COMPONENT_TYPE.LABEL, {'text': 'Hello, world!'})
# update the component to set the new glowfilter for the textfield
g_guiFlash.updateComponent('labelAlias', {'glowfilter': { 'alpha': 0.6,
'blurX': 3,
'blurY': 3,
'color': 0xFF0000,
'inner': False,
'knockout': False,
'quality': 2,
'strength': 5}})© since 2020 by CHAMPi