Jump to content
  • 0

Is there a way to make a button that opens a text file?


Gianluco

Question

I'm trying to make a button that makes the game open a text file with all the credits for the mod, so the user doesn't have to go to the mod's folder to open it, is there a way to do it? Maybe with MENUDEF?

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 0
Posted (edited)
1 hour ago, Gianluco said:

I'm trying to make a button that makes the game open a text file with all the credits for the mod, so the user doesn't have to go to the mod's folder to open it, is there a way to do it? Maybe with MENUDEF?


This is a copy of my MENUDEF from Dissension.
Feel free to copy and edit as you require.

ListMenu "MainMenu"
{
	IfGame(Doom)
	{
		font "DBIGFONT", "silver", "red"
		StaticPatch 32, 24, "DISSHD"
		Position 97, 72
		Selector "PENTA1", -32, -6
	}
	
	IfGame(Doom)
	{
		TextItem "New Game", "n", "PlayerclassMenu"
		ifOption(SwapMenu)
		{
			TextItem "Load Game", "l", "LoadGameMenu"
			TextItem "Save Game", "s", "SaveGameMenu"
			TextItem "Options", "o", "OptionsMenu"/////////////
			TextItem "Credits", "c", "CreditsMenu"
		}
		else
		{
			TextItem "Options", "o", "OptionsMenu"/////////////////////
			TextItem "Load Game", "l", "LoadGameMenu"
			TextItem "Save Game", "s", "SaveGameMenu"
			TextItem "Credits", "c", "CreditsMenu"
		}
		ifOption(ReadThis)
		{
			TextItem "Read This!","r", "ReadThisMenu"
		}
		TextItem "Quit Game", "q", "QuitMenu"
	}
}

OptionMenu "CreditsMenu"
{
Title "Doom: Dissension v1.666 by Doom-X-Machina"
   StaticText ""
   StaticText "=*=*=*=*=*=*=*=-- Credits And Thankyous --=*=*=*=*=*=*=*=",1
   StaticText ""
   StaticText "id Software for the greatest game EVER!"
   StaticText "Graf Zhal for GZDoom."
   StaticText "ukiro for the incredible OTEX texture pack."
   StaticText "Sgt. Mark IV for Brutal Doom and the Micro-Nuke."
   StaticText "scalliano for the zombie scientists."
   StaticText "Ben2k9 for the CyberBaron."
   StaticText "Virtue for the CyberImp." 
   StaticText "Captain Toenail for the ZSec, Railbot, Necrodome barrels, strobe lights." 
   StaticText "Jimmy for the ceiling and floor lanterns."
   StaticText "Captain Awesome for the box."
   StaticText "Ghastly_dragon for the chair." 
   StaticText "DavidRaven for the food and lab glasses."
   StaticText "Mor'ladim for the tech pillars." 
   StaticText "Gothic for the junk piles and UAC holograms."
   StaticText "zrrion the insect for the specimen tanks."
   StaticText "FuzzyBlaze for the toilet." 
   StaticText "Solarsnowfall, Tormentor667, Ghastly_dragon for the fire and spark spawners."
   StaticText "Tormentor667 for the steam spawner."
   StaticText "Tormentor667 for the Duke3D textures."
   StaticText "ShadowCaster, Captain Toenail, Gez for the bonepile."
   StaticText "Captain Toenail for the hanging Imps." 
   StaticText "ETTiNGRiNDER for the impaled corpses."
   StaticText "scalliano for the impaled scientists."
   StaticText "Yuraofthehairfan, MagicWazard, Dreadopp, MagicWazard, Graf Zahl for the Aracnorb Queen."
   StaticText "Captain Toenail, CroTeam for the bubbles." 
   StaticText "hnsolo77, Ghastly_Dragon, Partners in Rhyme & Jobro for the boiling bubbles."
   StaticText "Steve5563 for the Liquid Textures Pack."
   StaticText ""
   StaticText "3D MODELS BY:"
   StaticText "ECELON, GLOWBOX 3D, SENJEN, VIVIEN DEROCHE, RANDOM, SUTINOER, QW2, CARROTMAN42,"
   StaticText "RETR0R4CER, KYRALAUTIER, MEHDI MIRZAIE, MODELS124717, ANSH_SINGLA, MARTINJARIO, BOXY,"
   StaticText "INCG5764, ARTIK, RUBYKAMEN, RK8359041, SLIGOCREATURES, THE_STRUCTURE_WORLD, SOUSINHO,"
   StaticText "JANESBT, DESVAT & NITUSEBASTIAN."
   StaticText ""
   StaticText "Apologies to anyone I missed. It was NOT intentional."
}
Edited by Doom-X-Machina

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...