Jump to content



Photo
- - - - -

I Don't Understand Decals -- Can I change the text?

decals

  • Please log in to reply
4 replies to this topic

#1 CrimsonTurtle8

CrimsonTurtle8

    Enthusiast

  • Members
  • PipPipPip
  • 386 posts
  • Location:US

  • Flag: ---------

  • Favorite Pinball: Theatre of Magic

Posted 09 January 2025 - 01:35 AM

Despite having made many tables now, I've never used decals. I looked at the command text and I don't understand how to apply it to a decal. 

 

So I see: *Text(string)

 

So I thought Decal.Text(blah blah blah)

 

or 

 

DecalText(blah)

 

or 

 

Decal.Text = "blah"

 

but none of that works.

 

Is it possible to change the text any time in the script based on what the player is doing?? It seems like it should be but I can't figure it out. The table crashes almost no matter what I try.

 

Also all my decals insist on having the same name? Don't get that. How do I change anything about them if they don't have distinct names?

 

Thanks!



#2 bluenmaize

bluenmaize

    Hobbyist

  • Members
  • PipPip
  • 25 posts

  • Flag: United States of America

  • Favorite Pinball: Attack from Mars

Posted 09 January 2025 - 02:33 AM

Not exactly sure what you are trying to do, but decals don't appear to be an option.

 

 

Variables starting with a (*) can't be changed by the script (most can be read though) or don't have an effect.

 
DECAL
==============================================================================================================================================
 
Variables
---------
 
*Rotation(float)
*Width(float)
*Height(float)
*X(float)
*Y(float)
*Type(DecalType) - 0=Text, 1=Image
*Image(string) - texture name
*Text(string)
*SizingType(SizingType) - 0=AutoSize, 1=AutoWidth, 2=ManualSize
*FontColor(OLE_COLOR)
*Font(IFontDisp)
*HasVerticalText(bool)
*Surface(string)


#3 CrimsonTurtle8

CrimsonTurtle8

    Enthusiast

  • Members
  • PipPipPip
  • 386 posts
  • Location:US

  • Flag: ---------

  • Favorite Pinball: Theatre of Magic

Posted 09 January 2025 - 02:49 AM

 

Not exactly sure what you are trying to do, but decals don't appear to be an option.

 

 

Variables starting with a (*) can't be changed by the script (most can be read though) or don't have an effect.

 
DECAL
==============================================================================================================================================
 
Variables
---------
 
*Rotation(float)
*Width(float)
*Height(float)
*X(float)
*Y(float)
*Type(DecalType) - 0=Text, 1=Image
*Image(string) - texture name
*Text(string)
*SizingType(SizingType) - 0=AutoSize, 1=AutoWidth, 2=ManualSize
*FontColor(OLE_COLOR)
*Font(IFontDisp)
*HasVerticalText(bool)
*Surface(string)

 

Gotcha. Well darn.

 

What good is a decal then to just display static bland text in a rectangle? Lol I mean an image, sure, but the text function seems useless then.


Edited by CrimsonTurtle8, 09 January 2025 - 02:50 AM.


#4 jpsalas

jpsalas

    Grand Schtroumpf

  • VIP
  • 7,288 posts
  • Location:I'm Spanish, but I live in Oslo (Norway)

  • Flag: Norway

  • Favorite Pinball: I like both new and old, but I guess I prefer modern tables with some rules and goals to achieve.



Posted 09 January 2025 - 09:36 AM

20 years ago, decals were used to add the text on top of the light inserts, as the lights didn't blend with the playfield image.  But we stopped using them, as people didn't want to install fonts, and they looked weird without the fonts installed.  Also VP got update with new lights which could blend with the playfield. I guess decals are only useful now for adding some extra images.

But since we have very good developers now, it is always possible to ask them to update the decals to be able to change the text, more like a text box for the game window and not only the backdrop.


If you want to check my latest uploads then click on the image below:

 

vp.jpg

 

Next table? A tribute table to Stern's Foo Fighters


#5 CrimsonTurtle8

CrimsonTurtle8

    Enthusiast

  • Members
  • PipPipPip
  • 386 posts
  • Location:US

  • Flag: ---------

  • Favorite Pinball: Theatre of Magic

Posted 09 January 2025 - 04:23 PM

20 years ago, decals were used to add the text on top of the light inserts, as the lights didn't blend with the playfield image.  But we stopped using them, as people didn't want to install fonts, and they looked weird without the fonts installed.  Also VP got update with new lights which could blend with the playfield. I guess decals are only useful now for adding some extra images.

But since we have very good developers now, it is always possible to ask them to update the decals to be able to change the text, more like a text box for the game window and not only the backdrop.

A-ha yeah that makes a lot of sense. Thanks for the context!







Also tagged with one or more of these keywords: decals