|
|
|
@ -349,6 +349,7 @@ plugin material NelMaterial
|
|
|
|
|
cSelfIllumColor type:#color
|
|
|
|
|
pSelfIllumAmount type:#percent
|
|
|
|
|
bUseSelfIllumColor type:#boolean
|
|
|
|
|
sMaterialFile type:#string default:""
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
parameters main rollout:NelParams
|
|
|
|
@ -548,6 +549,12 @@ plugin material NelMaterial
|
|
|
|
|
Label lblNlbpB "http://dev.ryzom.com/" align:#center
|
|
|
|
|
CheckBox cbTwoSided "2-Sided" checked:false align:#right
|
|
|
|
|
|
|
|
|
|
group "Material file"
|
|
|
|
|
(
|
|
|
|
|
edittext mfEdit
|
|
|
|
|
button materialButton "browse"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
group "Standard Lighting"
|
|
|
|
|
(
|
|
|
|
|
-- Label lblNlbpslA "Diffuse is the color in light, ambient in the dark." align:#right
|
|
|
|
@ -574,6 +581,49 @@ plugin material NelMaterial
|
|
|
|
|
CheckBox cbUseSelfIllumColor "Use Color" checked:false align:#right
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
on materialButton pressed do
|
|
|
|
|
(
|
|
|
|
|
fname = getOpenFileName caption:"Open material file" types:"Nel material (*.nelmat)"
|
|
|
|
|
if fname == undefined then (
|
|
|
|
|
if mfEdit.text == "" then
|
|
|
|
|
sMaterialFile = ""
|
|
|
|
|
)
|
|
|
|
|
else
|
|
|
|
|
sMaterialFile = fname
|
|
|
|
|
|
|
|
|
|
mfEdit.text = sMaterialFile
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
on cbTwoSided changed bval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
on cpAmbient changed cval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
on cpDiffuse changed cval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
on spOpacity changed pval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
on cpSpecular changed cval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
on spSpecularLevel changed pval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
on spGlossiness changed pval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
on cpSelfIllumColor changed cval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
on spSelfIllumAmount changed bval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
on cbUseSelfIllumColor changed bval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
Fn updateUI update =
|
|
|
|
|
(
|
|
|
|
|
if (version >= 14) then
|
|
|
|
@ -581,6 +631,7 @@ plugin material NelMaterial
|
|
|
|
|
if update == true then
|
|
|
|
|
(
|
|
|
|
|
cbTwoSided.checked = bTwoSided
|
|
|
|
|
mfEdit.text = sMaterialFile
|
|
|
|
|
cpAmbient.color = cAmbient
|
|
|
|
|
cpDiffuse.color = cDiffuse
|
|
|
|
|
spOpacity.value = pOpacity
|
|
|
|
@ -597,6 +648,7 @@ plugin material NelMaterial
|
|
|
|
|
else
|
|
|
|
|
(
|
|
|
|
|
bTwoSided = cbTwoSided.checked
|
|
|
|
|
sMaterial = mfEdit.text
|
|
|
|
|
cAmbient = cpAmbient.color
|
|
|
|
|
cDiffuse = cpDiffuse.color
|
|
|
|
|
pOpacity = spOpacity.value
|
|
|
|
@ -625,36 +677,6 @@ plugin material NelMaterial
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
on cbTwoSided changed bval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
on cpAmbient changed cval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
on cpDiffuse changed cval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
on spOpacity changed pval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
on cpSpecular changed cval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
on spSpecularLevel changed pval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
on spGlossiness changed pval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
on cpSelfIllumColor changed cval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
on spSelfIllumAmount changed bval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
on cbUseSelfIllumColor changed bval do
|
|
|
|
|
updateUI false
|
|
|
|
|
|
|
|
|
|
on nelBasicParameters open do
|
|
|
|
|
(
|
|
|
|
|
updateUI true
|
|
|
|
|