• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

CheTranqui

Corporal
30 Badges
Mar 9, 2018
45
2
  • Age of Wonders: Planetfall
  • Cities: Skylines - Snowfall
  • Hearts of Iron IV: Cadet
  • Pillars of Eternity
  • Europa Universalis III: Collection
  • Cities: Skylines
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Surviving Mars
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Magicka 2
  • Stellaris
  • Cities in Motion 2
  • Semper Fi
  • Majesty 2 Collection
  • Heir to the Throne
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Divine Wind
  • Europa Universalis III
  • Crusader Kings II: The Old Gods
  • Crusader Kings II
I want to create a daily newspaper. I want it to show up as a notification that you could ignore if you like... and once you click on the notification, you'll get a pop up with text. Since a newspaper always has more than one story, I would like that pop-up window to show multiple boxes/stories.

I've learned through the documentation how to call to most of the functions that I'll require... I have even figured out how to call up a pop-up window. ...but that pop-up window has the generic picture of a rover landing on Mars. I think that's because (for testing purposes) I'm creating the pop-up as a result of the OnMsg.RocketLanding() function... but what I would like to do, is change that picture. Ideally, after changing the picture, I would load text on top of it, too.

1. How do I change the picture associated with a pop-up?
2. Would it be possible to remove that picture altogether?
3. Would it be possible, after inserting a custom picture, to draw my text on top of the picture itself?

The snag that I ran into is that while there's a ton of excellent documentation, I don't see anything related to choosing the dimensions or characteristics of a pop-up window. I can change the text itself, and the end-user options, etc, but I can't figure out how to change that picture.

The function that I'm tinkering with at the moment is shared below.

Which leads to just one more question.
4. How do I use 'Return' appropriately? The documentation states that Return will give you back an INT value, since 4 options are available, it should register as 1, 2, 3, or 4... but an IF statement doesn't produce the appropriate response for me. How would I use the information gathered via 'return'? If someone presses #1, or clicks the 1st option, I want it to forward them to another function, but I don't know how to access that INT.

function OnMsg.RocketLanded(rocket)
CreateRealTimeThread(WaitCustomPopupNotification,
T{"A rocket has landed!"},
T{"More stuff, <president_name> ", president_name = "Mike"},
{ T{"Next Story"} ,T{"Close"} }
)
return
end

Thanks for taking the time to help me figure this out! :)

(For the record: no, my name is not Mike... and yes, that gave me the in-game text of "More stuff, Mike". Yay for figuring out how to use variables within text!)
 
Last edited: