create journal (SOLVED) for those who want to try I put the procedure

Started by katie08cd, Tue 21/01/2020 17:15:26

Previous topic - Next topic

katie08cd

for those who want to try I put the procedure, my result in photos (forget the graphics)

first you create a new gui, inside this gui1 we put a slide and button, second thing we create a gui2 and inside we put a label, now we need to create a txt text file to be inserted in the "Compiled \ Windows" folder of the your AGS,
for the button we put this command

Code: ags
File*output = File.Open("Readme.txt", eFileRead); // reads the file under the Compiled folder
	String readmetxt = "";
	if (output != null) {
		String temp;
		while (!output.EOF) { // make sure there's a "Readme.txt" in the Compiled folder
			temp = output.ReadRawLineBack();
			readmetxt = readmetxt.Append(temp);
			readmetxt = readmetxt.Append("[");
		}
		output.Close();
	}
	lblReadme.Text = readmetxt;


in the slide that we will call sldReadme, this command must be inserted
Code: ags
lblReadme.Y = sldReadme.Value;


the label should be called lblReadme

we must position the gui2 above the gui with the same number Z ORDER, so that then the text does not come out, after using slide values, label height, and font size, we can create our text to scroll in the photo I put
sldReadme min value -1000
lblReadme h 6000
font 18pt

if someone wants to make some changes, go ahead



I forgot, for each button we put the same code, but we change the name of the text file, so that more buttons are created and each button reads the text in the label

bye bye


SMF spam blocked by CleanTalk