January 18, 2018, 05:52:42 AMLatest Member: Wundermax

Author Topic: Screenshot notification  (Read 1670 times)

0 Members and 1 Guest are viewing this topic.

Grimdoc

  • Moderator
  • ***
  • Posts: 243
  • Translator & Superman
    • View Profile
Screenshot notification
« on: June 18, 2011, 11:33:56 PM »
As mentioned in this thread, it would be nice if the adviser would tell you that the screenshot has been saved when you press Ctrl+S.

Just something like this: "A screenshot has been saved to your game folder", to let the player know that the screenshot actually was taken.
Do you have a question or want to report a bug? CorsixTH newbie guide

Do you want to make (or improve) a translation? CorsixTH translation guide

Grimdoc

  • Moderator
  • ***
  • Posts: 243
  • Translator & Superman
    • View Profile
Re: Screenshot notification
« Reply #1 on: June 21, 2011, 10:57:46 PM »
PS: Lego3 told me that this probably only works with the SDL version of the game.
Do you have a question or want to report a bug? CorsixTH newbie guide

Do you want to make (or improve) a translation? CorsixTH translation guide

Ben Dyson

  • Registered member
  • *
  • Posts: 27
    • View Profile
Re: Screenshot notification
« Reply #2 on: June 26, 2011, 01:03:30 PM »
I'm new to learning lua, but would't something like this work;
Code: [Select]
self.ui.adviser:say("Screenshot Taken")Just wondering because if it did it would be a handy little notification and it didn't take much

Lego3

  • Project Owner
  • *****
  • Posts: 398
    • View Profile
Re: Screenshot notification
« Reply #3 on: June 26, 2011, 05:12:46 PM »
Yes, but you also need to check so that the screenshot really was successfully saved and otherwise say "Could not take screenshot".
For the end of the world spell, press Control, Alt, Delete.

tobylane

  • Registered member
  • *
  • Posts: 53
    • View Profile
Re: Screenshot notification
« Reply #4 on: June 27, 2011, 07:45:35 PM »
 
Code: [Select]
local tmpfilename=io.open(filename,"r")
   if tmpfilename~=nil then io.close(tmpfilename) self.ui.adviser:say("Screenshot Taken")
   else self.ui.adviser:say("Screenshot not taken") end
I would have hoped that works. ui.lua:577-9